Reputation: 1426
We've bought some custom android tablets, that we're going to use as kiosk tablets. For our kiosk app to work properly the app needs root access.
How can I check if the device is rooted properly? And how can I root it if it isn't?
Things that point to that the device IS rooted:
Things that point to that the device IS NOT rooted:
When I run the following code in our app, which I know for a fact is working on other rooted devices:
Process process = Runtime.getRuntime().exec("su");
os = new DataOutputStream(process.getOutputStream());
os.writeBytes(cmd + "\n");
I get an error: "java.io.IOException: write failed: EPIPE (Broken pipe)".
Upvotes: 2
Views: 1204
Reputation: 736
There is this nice guide which you can follow to check if the phone is rooted or not.
Upvotes: 0
Reputation: 1426
Had to try a number of different root tools. Turns out KingRoot (https://kingroot.net/) did the job. Afterwards Root Checker says that it is rooted correctly and my app works again.
Upvotes: 0