在Android上以编程方式打开应用程序权限? [英] Open App Permissions on Android programmatically?

查看:239
本文介绍了在Android上以编程方式打开应用程序权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过列表从系统向用户显示所有应用程序和权限.我知道此设置可用于API> = 23的不同位置.

I want to show all apps and permissions via list from the system to the user. I know that this setting available for API >= 23 in different locations.

对于API> = 26,它处于启用状态:

For API >= 26 it is on:

设置/应用程序和通知/高级/应用权限

Settings / Apps & Notifications / Advanced / App permissions

对于API> = 23,它处于打开状态:

For API >= 23 it is on:

设置/应用程序/配置应用程序(设置"菜单项)/应用程序权限

Settings / Apps / Configure Apps (Setting menu item) / App permissions

是否可以使用意图打开 应用权限 屏幕?

Is there any way to open App permissions screen using intent?

推荐答案

也许您会很幸运,并且有人可以证明我错了,但是在最新版本的Android上,您似乎仅限于应用程序设置"-无法直接访问App通过Intent进行许可.

Maybe you will be lucky and someone can prove me wrong, but it seems on recent version of Android you are limited to App Settings only - no direct access to App Permissions via Intent.

我认为这与安全性和自动化有关,这也符合Google的决定,即在尝试请求权限时显示检测到覆盖"警告

I believe this is related to Security and Automation which would also align with Googles decision to show an 'overlay detected' warning when trying to request permissions as outlined on this non-Google article

这篇关于在Android上以编程方式打开应用程序权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆