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

怎么检查动态申请的权限是从哪里发出的 #30

Open
yuandaimaahao opened this issue Jun 14, 2023 · 1 comment
Open

怎么检查动态申请的权限是从哪里发出的 #30

yuandaimaahao opened this issue Jun 14, 2023 · 1 comment

Comments

@yuandaimaahao
Copy link
Owner

No description provided.

@df13954
Copy link

df13954 commented Jun 19, 2023

权限申请

申请是通过androidx.core.app.ActivityCompat#requestPermissions这个api申请的,就算是第三方封装的框架,也是这个api。

方案1

通过hook框架hook这个方法requestPermissions,然后打印调用堆栈。如果apk有反调试,需要先过反调试。

方案2

在AOSP源码中requestPermissions增加打印堆栈代码,编译刷机安装app运行。看堆栈log就行。

方案3

反编译apk,搜索requestPermissions,然后查看所有调用地方,如果apk加壳了需要先脱壳。

推荐

推荐方案2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants