Android使用adb命令时提示提示“CANNOT LINK EXECUTABLE: cannot ...”的原因及解决办法

错误提示:使用adb命令时,显示:

CANNOT LINK EXECUTABLE: cannot locate symbol "__umask_chk" referenced by "/system/bin/sh"...

或者

CANNOT LINK EXECUTABLE: could not load library "libselinux.so" needed by "df"; caused by cannot locate symbol "__strchr_chk" referenced by "libselinux.so"...

等错误信息

原因:手动多挂载了/system文件系统分区

解决办法:在init.rc或者代码里将挂载/system分区的相关代码屏蔽掉或者停止手动挂载/system。


你可能感兴趣的:(Android使用adb命令时提示提示“CANNOT LINK EXECUTABLE: cannot ...”的原因及解决办法)