Add 4 app op permission App List

- All files access
- Display over other apps
- Media management apps
- Modify system settings

Bug: 235727273
Test: Manual with Settings App
Change-Id: I60abb44558f535d5e26d498164d5429ede4033f8
This commit is contained in:
Chaohui Wang
2022-09-13 17:21:51 +08:00
parent 7f82ea1854
commit 186eb66c4f
7 changed files with 167 additions and 1 deletions

View File

@@ -90,7 +90,7 @@ class AppNotificationRepository(private val context: Context) {
// If the app targets T but has not requested the permission, we cannot change the
// permission state.
return app.targetSdkVersion < Build.VERSION_CODES.TIRAMISU ||
hasRequestPermission(app, Manifest.permission.POST_NOTIFICATIONS)
app.hasRequestPermission(Manifest.permission.POST_NOTIFICATIONS)
}
fun setEnabled(app: ApplicationInfo, enabled: Boolean): Boolean {