警告:链接器:app_process具有文本重定位.这浪费了内存,并且存在安全风险.请修复.权限被拒绝 [英] Warning: linker: app_process has text relocations. This is wasting memory and is a security risk. Please fix. Permissions denied

查看:36
本文介绍了警告:链接器:app_process具有文本重定位.这浪费了内存,并且存在安全风险.请修复.权限被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过Android终端运行命令,但是当我执行命令时:

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

启用/禁用svc数据"出现此错误:

"svc data enable/disable" this error appears:

"警告:链接器:app_process具有文本重定位.这很浪费内存,并且存在安全风险.请修复.权限被拒绝"

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

我受过htc one(安卓4.4.2 kitkat,5.5感)支持,安装了Venom rom 5.7.0和xposed框架.

I'm under htc one(android 4.4.2 kitkat, sense 5.5) rooted , with Venom rom 5.7.0 and xposed framework installed.

如何避免此问题并顺利运行命令?

How can I avoid this problem and run the command smoothly?

P.s.我已经向终端发送了具有SuperUser权限的命令.

P.s. I have sent the command with SuperUser permissions given to the terminal.

推荐答案

重定位错误是由以下事实引起的:xposed框架使用自定义的app_process替换了真正的app_process,由于在每种现代版本上都可以正常工作,因此未进行优化(好吧,几乎每个...)android设备/系统.

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.

卸载/恢复为库存后(通过xposed安装程序或通过闪烁闪烁在安装过程中在sdcard上创建的卸载zip),您将发现该警告已消失(以及所有与xposed相关的自定义设置).

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).

如果您正在编写脚本并且不想看到警告,则将错误输出转发到STDERR以外的其他地方,即: svc数据启用2>/dev/null

If you are 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

是否拒绝启用svc数据的权限?这似乎是没有原因的,因为即使发生故障(显示适当的输出),它也应每隔1秒重试一次.从来没有htc,所以我不知道它是否可能受到某种方式的保护...但是,在很多情况下非常受限制的android终端会在根本找不到任何东西的情况下打印出权限被拒绝的错误(而不是未找到").但是,在这里,如果您拥有4.4.2,则更可能是selinux上下文问题阻止了某件事的发生,它通常在修改时发生,通常不会导致任何问题(有时会导致bootloop).您可以尝试:

Permission denied for svc data enable? That seems uncausal, as it shall retry in 1sec intervals even if failed (displaying appropriate output). Didn't have htc ever, so I don't know 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 you have 4.4.2, it is 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仅用于非详细/静默模式)

(-R only for non-verbose/silent mode)

这是一次操作,一直持续到再次弄乱文件为止.之后尝试命令(我不知道是否需要重新启动).

It is a one time operation, persistent until messing with files again. Try the command after that (I don't know if reboot is needed).

PS:这是一个冒险的操作,请在/system之前进行一次nand备份,并在引导循环后恢复(并且不要怪我).

PS: it is a risky operation, do a nand backup of /system before and restore if bootlooped (and don't blame me).

PS2:它将不设置su二进制上下文,因为它会很忙(因为您正在运行root shell atm),显示警告.那不是问题.实际上,这是完美的!更改su上下文将导致失去root特权(似乎stock config会强制上下文防止PRETENTING root可用性-至少是三星).但是,您可能会失去根目录,因此,我强烈建议您将最近的supersu可闪存zip保留在附近,例如sdcard,并在需要时进行恢复闪存.SuperSU安装程序会使用chcon为已安装文件设置适当的上下文,并且root将再次返回.

PS2: it shall NOT set su binary context as it will be busy (as you are 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, though, that you 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:请勿在自定义恢复(twrp控制台/芳香终端)中运行该设备,其开发人员提供的上下文配置可能与设备的库存有所不同,并可能引起麻烦.通过Android内核启动后,请使用adb或终端.

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.

这篇关于警告:链接器:app_process具有文本重定位.这浪费了内存,并且存在安全风险.请修复.权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆