"su: uid 100xx not allowed to su" ,然后失败退出.
解决方法原来非常简单:
android 源代码里头,打开:
system/extras/su/su.c
Modify:
/* Until we have something better, only root and the shell can use su. */
myuid = getuid();
if (myuid != AID_ROOT && myuid != AID_SHELL) {
fprintf(stderr,"su: uid %d not allowed to su\n", myuid);
return 1;
}
本文提供了一种解决SU权限问题的方法,通过修改Android源代码中的su.c文件来实现仅允许root和shell使用SU命令。适用于遇到无法使用SU命令的用户。
312

被折叠的 条评论
为什么被折叠?



