I want to use "su" in my app but here is some problem
Code:
String command[]={"su","-c","ls /data/data/package.name/databases"};
My phone not root, but My APP need root permission. Problem is : Is my phone need root?
Is this possible? Not root phone and APP get root permission?
By the way, my English is not very good, please forgive me...
Simple answer:
It is not possible.
Why:
The user executing your application has not root-rights. Any way to gain root access would violate the user concept and besides that be a huge security issue.
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.