简体   繁体   中英

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.

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:)

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM