-2

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...

4

1 回答 1

3

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.

于 2015-10-05T07:53:44.783 回答