I want to test my app and I have a device with root access to test on.
Can I be confident the the behavoir of the app is not affected by the root access?
If it is affected are the specific areas of behavoir in which root access may cause different/unexpected behavior?
Is there a way to retrieve files (logs, test results) from a device without root access?
Thanks
AFIAK there really aren’t any APIs that require root permissions. Apps that require root permissions execute system commands using the
Runtime.getRuntime().exec(commandStringHere);If you try to execute commands that you don’t have permissions to run then the execution will fail. To get around the permissions problem you can execute the commands as
rootusingsu.So if you aren’t doing any of this you app should run exactly the same on rooted and non-rooted phones.