I have a root application that I am trying to make. I have it so that the Launcher activity contains a ListView and when you press on an item it opens an AlertDialog and asks for confirmation. Its main feature is rebooting the device. I need to know how I can run "su" once on the startup and then when I click the other items it doesn't have to ask for su again
Thanks
If you have a SU manager application (like super su) installed in your device, you can disable prompting by selecting option "do not prompt" in the settings. But keep in mind, that you are allowing su command without prompting, it can be quite dangerous
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.