FORUMS
Remove All Ads from XDA

Alarm stats APPOPS_USAGE_STATS permission unknown

22 posts
Thanks Meter: 2
 
By mannixita, Junior Member on 18th September 2019, 07:03 AM
Post Reply Email Thread
Any idea why the alarm stats permission is unknown?
Phone is a Huawei P Smart 2019 with EMUI 9.1.0.264 (Android 9.0).

Code:
adb -d shell pm grant com.asksven.betterbatterystats android.permission.APPOPS_USAGE_STATS

Exception occurred while executing:
java.lang.IllegalArgumentException: Unknown permission: android.permission.APPOPS_USAGE_STATS
        at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:1417)
        at com.android.server.pm.permission.PermissionManagerService.access$900(PermissionManagerService.java:93)
        at com.android.server.pm.permission.PermissionManagerService$PermissionManagerInternalImpl.grantRuntimePermission(PermissionManagerService.java:2112)
        at com.android.server.pm.PackageManagerService.grantRuntimePermission(PackageManagerService.java:6057)
        at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:1773)
        at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:239)
        at android.os.ShellCommand.exec(ShellCommand.java:103)
        at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:23637)
        at android.os.Binder.shellCommand(Binder.java:642)
        at android.os.Binder.onTransact(Binder.java:540)
        at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2804)
        at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4427)
        at com.android.server.pm.HwPackageManagerService.onTransact(HwPackageManagerService.java:432)
        at android.os.Binder.execTransact(Binder.java:739)
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes