im trying to find the method behind having superuser access on android devices. basically i want my app to be able to remove system files, and so asking the user if its ok after the app is launched like most other apps, and then what code exactly am i looking to use to perform these sorts of actions? cant find much on google
thanks in advance!
If the device is rooted, you can use the following code to gain access to a root shell:
Where “command” is the command that you want to execute.