Pittvandewitt / Wavelet

A quick rundown on each feature and its settings
https://pittvandewitt.github.io/Wavelet/
666 stars 35 forks source link

android permission. #183

Closed TheMagicianThing closed 2 years ago

TheMagicianThing commented 2 years ago

When I try to do the grant android dump permission I get java.lang.SecurityException: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS. at android.app.ContextImpl.enforce(ContextImpl.java:2028) at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:2056) at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermissionInternal(PermissionManagerService.java:1445) at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:1426) at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:2300) at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:251) at android.os.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:98) at android.os.ShellCommand.exec(ShellCommand.java:44) at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:22149) at android.os.Binder.shellCommand(Binder.java:929) at android.os.Binder.onTransact(Binder.java:813) at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4687) at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4399) at android.os.Binder.execTransactInternal(Binder.java:1159) at android.os.Binder.execTransact(Binder.java:1123)

I'm on a xiaomi redmi note 9 pro, running MIUI 12.5.11 and I've tried the beta.

Pittvandewitt commented 2 years ago

Quoting the documentation: On Xiaomi devices, it is mandatory to enable USB debugging (Security Settings)