I have an Android tablet. It was not factory rooted. However, a certain application that needs an unrooted device will NOT work. So I installed a rooted rom, only to temporarily unroot it w/ the app Supersu.
The old version of Supersu that comes w/ the rooted rom says that it finds the su binary. However, this old version of Superuser cannot temporarily unroot my phone. I can use ADB to push all kinds of versions of Superuser and the su binary to the tablet. But NOTHING works. It keeps on saying "su binary not found"???!! Mind you: when I start the app Superuser itself it DOES grant me superuser rights!!!!!! So the su binary can be used, but it can not be found???!!!
I still have some roms and a utility to unpack and repack roms. So I can delete the su binaries from /system/(x)bin and the Superuser.apk from /system/app. So that way I can make my own rooted or unrooted roms.
So another trick I tried it to make a rooted ROM for my tab w/ supersu intead w/ superuser. That one cannot find the su binary either!!!. (its own
su binary that comes w/ the zip mind you!)
However, like I said, if I use an very very old version of the su bin and a very old version of the superuser.apk it DOES find and outdated version of the su bin and rooting works fine. But the old Superuser version does not have the option to unroot my tab temporarly.
What I would like to know is HOW
the hell Superuser checks for the su binary. And how the whole su thing works in Android. Linux works far more clearly! And they friggin' say that Android's Linux based? I beg to differ.
P.S. LG Android phone that works flawlessly:
uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt),3003(inet)
The troublesome tablet (even when UNrooted):
Notice that on the troublesome device I am root immediately
, no matter if I installed the su binary and the supoeruser/supersu app!!! Might my tablet be messed up concerning the UID's's and GID's? And how can I fix this??