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

adbd root 无法调试 App #42

Open
5ec1cff opened this issue Sep 24, 2022 · 1 comment
Open

adbd root 无法调试 App #42

5ec1cff opened this issue Sep 24, 2022 · 1 comment

Comments

@5ec1cff
Copy link

5ec1cff commented Sep 24, 2022

开启 adbd root 并 adb root 后,Android Studio 无法找到任何可调试的 app ,一些调试功能无法正常使用。

原因似乎是 app 无法连接到 jdwp-control ,推测是 adbd root 后位于 magisk domain ,而 appdomain 无法连接 magisk 的 socket 。

image

参考修复实现:hook selinux_android_setcon ,在其后向 /proc/self/attr/sockcreate 写入 u:r:adbd:s0

5ec1cff@a81035b

@Maniana777

This comment was marked as spam.

@RikkaApps RikkaApps deleted a comment from Maniana777 Dec 24, 2022
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