harish kumar
harish kumar

Reputation: 9

Change permission of another app from our app in android

I want to implement a feature in which I can change permission of other app through my app like permission manager application.

Upvotes: 0

Views: 1352

Answers (1)

Shlomi Katriel
Shlomi Katriel

Reputation: 2413

It's true you cannot directly control other apps' permissions. But, there are some things you can do.

You can refer the user for specific application info screen (one click away from permissions screen):

String package = "some.app.package";
startActivity(new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS,
Uri.fromParts("package", package, null)));

Also you can know all of the permissions of another app (along with which of those are granted and which are automatically granted) - see the accepted answer for the following answer: Is it possible to check if another app has been granted a permission on Android 6.0+?

Now you can create permission manager app :)

Upvotes: 1

Related Questions