How to go to the management permission page in the Settings application with the code?

Way:

Settings β†’ Applications β†’ (list of applications) XXX Application β†’ Permissions.

The following is the log when I manually enter the Rights Management page.

08-11 02: 36: 02.327: I / ActivityManager (775): START u0 {act = android.intent.action.MANAGE_APP_PERMISSIONS cmp = com.android.packageinstaller / .permission.ui.ManagePermissionsActivity (has additional functions)} from uid 1000 on display 0

And besides, I searched for two keywords MANAGE_APP_PERMISSIONS and ManagePermissionsActivity in the Android source code β€œM” preview1, both were not found.
Can someone help?

+4
source share
1 answer

It is not possible to call startActivity() with this intent because it requires android.permission.GRANT_REVOKE_PERMISSIONS , and this permission may not be available for third-party applications. You can use the intent APPLICATION_DETAILS_SETTINGS .

+8
source

All Articles