RikkaApps / Sui

Modern super user interface implementation on Android.
GNU General Public License v3.0
2.39k stars 129 forks source link

adbd root 无法调试 App #42

Open 5ec1cff opened 1 year ago

5ec1cff commented 1 year ago

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

Maniana777 commented 1 year ago

..