Sid
Sid

Reputation: 21

How to give su permission to a executable in android?

I have an executable which needs su permission to run on android. I have to manually give the permission on command prompt and then run the app. Is there any way to give the permission internally so that I don't have to follow the steps.

Upvotes: 0

Views: 1518

Answers (1)

Darshak
Darshak

Reputation: 2326

This will help you:

Process root = Runtime.getRuntime().exec("su");

Refer: Check it

Permission is:

android.permission.FACTORY_TEST

Upvotes: 1

Related Questions