红米6A升级miui12无望
为了适当保护自己隐私
安装权限狗, 不想Root,使用用adb给权限狗授权读取AppOps权限
红米6A手机进入开发者选项,开启USB调试
按手机权限狗提示,
在电脑端第一步adb shell sh /storage/emulated/0/Android/data/com.web1n.permissiondog/files/starter.sh过了
然后第二步
权限狗显示第二步adb shell pm grant com.web1n.permissiondog android.permission.GET_APP_OPS_STATS
电脑显示以下结果,应该没过,因为手机权限狗一直停在 adb shell pm grant com.web1n.permissiondog android.permission.GET_APP_OPS_STATS
手机配置,安卓9,miui 11,已退出小米账号,
以下是执行第二部结果
.\adb shell pm grant com.web1n.permissiondog android.permission.GET_APP_OPS_STATS
Security exception: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.
java.lang.SecurityException: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.
at android.app.ContextImpl.enforce(ContextImpl.java:1823)
at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1851)
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:1433)
at com.android.server.pm.permission.PermissionManagerService.access$900(PermissionManagerService.java:93)
at com.android.server.pm.permission.PermissionManagerService$PermissionManagerInternalImpl.grantRuntimePermission(PermissionManagerService.java:2210)
at com.android.server.pm.PackageManagerService.grantRuntimePermission(PackageManagerService.java:5667)
at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:1730)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:217)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21993)
at android.os.Binder.shellCommand(Binder.java:634)
at android.os.Binder.onTransact(Binder.java:532)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2809)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4070)
at android.os.Binder.execTransact(Binder.java:731)