简体   繁体   English

在 android 中从我们的应用更改另一个应用的权限

[英]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+?此外,您还可以知道另一个应用程序的所有权限(以及授予哪些权限以及自动授予哪些权限) - 请参阅以下答案的已接受答案: Is it possible to check if another app has been granted a permission on Android 6.0+?

Now you can create permission manager app:)现在您可以创建权限管理器应用程序:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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