Sui icon indicating copy to clipboard operation
Sui copied to clipboard

adbd root 无法调试 App

Open 5ec1cff opened this issue 2 years ago • 1 comments

开启 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

https://github.com/5ec1cff/Sui/commit/a81035b23188bcbb35baa1b007a05e4efde5e7f1

5ec1cff avatar Sep 24 '22 02:09 5ec1cff

..

Maniana777 avatar Dec 24 '22 06:12 Maniana777