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

前端 未结 3 1266
生来不讨喜
生来不讨喜 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条回答
  •  闹比i
    闹比i (楼主)
    2021-02-04 09:46

    The text relocations is a warning, not an error. It was only added to Android comparatively recently.

    As it appears that the program in question (app_process) was one furnished with the system rather than compiled by you, there is nothing you can or need to do about it, unless you feel like rebuilding/replacing the system component in question.

    Were you building your own program, your question could be marked as a duplicate of

    mylib.so has text relocations. This is wasting memory and is a security risk. Please fix

    However, that would only apply to software you were compiling yourself.

    In this case, you will probably just have to ignore it, unless you are somehow (?) using app_process to launch something with a custom native library that you did build, in which case you should update your NDK as explained in the other question.


    Your permissions denied is unrelated to the previous error message, and most likely a problem with the command you are trying to run (for example, you think you are root but you are not). If you want help with that, you are going to have to be more specific about the command you are running and the mechanism used to launch it.

提交回复
热议问题