Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when granting permission with Shizuku on Android 12 #1001

Closed
5 tasks
sds100 opened this issue May 17, 2022 · 1 comment
Closed
5 tasks

Crash when granting permission with Shizuku on Android 12 #1001

sds100 opened this issue May 17, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@sds100
Copy link
Collaborator

sds100 commented May 17, 2022

Developer TODO (don't remove)

  • create new branch. put issue number at start of name if not a very quick fix.
  • write tests. put issue number in comment
  • update documentation
  • squash and merge
  • delete branch
java.lang.NoSuchMethodError: No interface method grantRuntimePermission(Ljava/lang/String;Ljava/lang/String;I)V in class Landroid/content/pm/IPackageManager; or its super classes (declaration of 'android.content.pm.IPackageManager' appears in /system/framework/framework.jar)
        at io.github.sds100.keymapper.system.apps.AndroidPackageManagerAdapter.grantPermission(AndroidPackageManagerAdapter.kt:232)
        at io.github.sds100.keymapper.system.permissions.AutoGrantPermissionController$start$1.invokeSuspend(AutoGrantPermissionController.kt:31)
        at io.github.sds100.keymapper.system.permissions.AutoGrantPermissionController$start$1.invoke(Unknown Source:15)
        at io.github.sds100.keymapper.system.permissions.AutoGrantPermissionController$start$1.invoke(Unknown Source:24)
@sds100 sds100 added the bug Something isn't working label May 17, 2022
@sds100 sds100 self-assigned this May 17, 2022
@sds100 sds100 moved this to Todo in Key Mapper 2.4 May 20, 2022
sds100 added a commit that referenced this issue May 21, 2022
The cause was that the grantRuntimPermission() API was moved to PermissionManager and was hidden so had to add the Hidden API Bypass library.
sds100 added a commit that referenced this issue May 21, 2022
The cause was that the grantRuntimPermission() API was moved to PermissionManager and was hidden so had to add the Hidden API Bypass library.
@sds100
Copy link
Collaborator Author

sds100 commented May 21, 2022

fixed

@sds100 sds100 closed this as completed May 21, 2022
Repository owner moved this from Todo to Done in Key Mapper 2.4 May 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant