"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;
}