Add OP_GET_USAGE_STATS to APP_OP_PERMISSION_PACKAGE_OPS.

AppOp.GET_USAGE_STATS is missing from the list. So when Android role trying to grant the app-op permission. It will encounter a null exception.

Bug: 274132354
Test: manual
Change-Id: Ie2bc522cd900c8bed7af22d581e8f9324b7a6d9c
This commit is contained in:
wwtbuaa01
2023-05-15 14:30:23 +08:00
committed by Wentao Wang
parent 5f09d0981d
commit 0c984b3cc1

View File

@@ -2317,6 +2317,7 @@ public class AppOpsManager {
OP_ACCESS_NOTIFICATIONS,
OP_SYSTEM_ALERT_WINDOW,
OP_WRITE_SETTINGS,
OP_GET_USAGE_STATS,
OP_REQUEST_INSTALL_PACKAGES,
OP_START_FOREGROUND,
OP_SMS_FINANCIAL_TRANSACTIONS,