我想显示所有的应用程序和权限,通过列表从系统到用户。我知道这个设置可用于API >= 23在不同的位置。
对于API >= 26,它位于:
设置/应用程序和通知/高级/应用程序权限
对于API >= 23,它位于:
设置/应用程序/配置应用程序(设置菜单项)/ App权限
是否有任何方法使用意图打开应用程序权限屏幕?

发布于 2018-10-11 11:38:42
也许你会很幸运,有人可以证明我错了,但在最近版本的Android上,你只限于应用程序设置--没有通过意图直接访问App权限。
我认为这与安全和自动化有关,这也将与谷歌在尝试请求权限时显示“覆盖检测”警告的决定保持一致,正如这篇非Google文章所概述的那样
发布于 2021-01-03 18:29:31
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.O) {
final AlertDialog.Builder adb = new AlertDialog.Builder(this);
adb.setTitle("Click on ok then app will redirect to app settings then
please click on Other Permissions and Please Allow All ");
adb.setPositiveButton("ok", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
Uri uri = Uri.fromParts("package", getPackageName(), null);
intent.setData(uri);
startActivity(intent);
}
});
adb.setNegativeButton("cancel", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
finishAffinity();
dialogInterface.dismiss();
}
});
adb.show();
}https://stackoverflow.com/questions/52758533
复制相似问题