Víctor Martín
Víctor Martín

Reputation: 3450

How to use root privileges in my app

I'm trying to develop an app in android and I want to give the option of delete a file that is in a data, system folder which needs root privileges. How I can give access root to my app?

Thanks.

Upvotes: 0

Views: 1351

Answers (2)

Víctor Martín
Víctor Martín

Reputation: 3450

For the people how search the same.

Root Tools Library

With RootTools we can make that type of operations.

Thanks.

Upvotes: 1

Sieryuu
Sieryuu

Reputation: 1521

This is what I have found

you must specify android.permission.FACTORY_TEST permission. docs here

For accessing root permission you can use

p = Runtime.getRuntime().exec("su");

Source : Here

Upvotes: 4

Related Questions