Warning: linker: app_process has text relocations. This is wasting memory and is a security risk. Please fix. Permissions denied

前端 未结 3 1267
生来不讨喜
生来不讨喜 2021-02-04 09:24

I tried to run a command via Android terminal, but when I execute my command:

"svc data enable/disable" this error appears:

"Warning: l

3条回答
  •  说谎
    说谎 (楼主)
    2021-02-04 09:40

    Relocations error is caused by the fact that xposed framework replaces genuine app_process with a custom one, which is somehow unoptimized as it has been built to work on every modern (well, almost every...) android device/system. After uninstalling/reverting to stock (thru xposed installer or by flashing uninstall zip created on sdcard during installation) you'll find out that the warning is gone (as well as all xposed related customizations). If ur writing a script and don't want to see the warning, just forward the error output somewhere else than STDERR, i.e: svc data enable 2>/dev/null

    Permission denied for svc data enable...? seems uncasual, as it shall retry in 1sec intervals even if failed (displaying appropriate output). Didn't have htc ever, so dunno if it may be somehow protected by them... HOWEVER, android terminal which is quite limited in many situations manages to print permission denied error if it did not find something at all (instead of ie. "not found"). Here however, as u have 4.4.2 it's more likely selinux context issue preventing something to be done, it happens often when modding, usually not resulting in any issues (and sometimes resulting with a bootloop). You may try: su mount -o rw,remount /system restorecon -Rv /system

    (-R only for non-verbose/silent mode) It's a one time operation, persistent until messing with files again. Try the command after that (dunno if reboot is needed).

    PS: it is a risky operation, do a nand backup of /system before and restore if bootlooped (and dont blame me) PS2: it shall NOT set su binary context as it will be busy (as u r running a root shell atm), displaying warning. That's not an issue. In fact it's perfect! Changing su context will result in losing root privileges (seems that stock config forces context PREVENTING root usability - at least samsung one...). It MAY happen, thou, that u will lost root, that is why i highly recommend to keep recent supersu flashable zip nearby, on sdcard for example, and flash it with recovery if needed. SuperSU installer sets the appropriate context for installed files with chcon and root will be back again. PS3: do not run that within custom recovery (twrp console/aroma terminal), context config provided by its dev may be differ than the device's stock and may cause trouble. Use adb or terminal after booting with android kernel.

提交回复
热议问题