To clarify, the app being in the /system/app
folder does not run it as root
. Android is linux based, so having root access means that your app is able to run shell commands as the root user.
Generally speaking an app being in the /system/app
folder makes all declared permissions available to it, (for example, declaring WRITE_SECURE_SETTINGS
only does anything for system apps), and then the code that was only available to system apps is now available to yours as well.
For reliability, you should use shell commands where possible for anything that's normally unavailable. Do not use java.io.File
to access files that are normally restricted.
I would recommend using RootTools
as it makes running shell commands as root much easier. The first 3 pages on this linux command cheat sheet will probably cover everything you need.