if (myuid != AID_ROOT && myuid != AID_SHELL) {
fprintf(stderr,"su: uid %d not allowed to su\n", myuid);
return 1;
}
That didn't work. So, I tried using shareUid = "android.uid.shell" in manifest and signed the apk with platform key and cert. Both the hacks just returns "permission denied" in STDERR.
Someone in my organization told me that setuid is no longer working. So, how do I get any apk to to su or atleast ones that signed with platform keys.