tiann / KernelSU

A Kernel based root solution for Android
https://kernelsu.org
GNU General Public License v3.0
9.78k stars 1.59k forks source link

adb shell 的使用问题 #330

Closed YuushaTao closed 1 year ago

YuushaTao commented 1 year ago

使用adb执行这个命令会卡住并得不到结果adb shell su -c cat /proc/1123/maps

android studio的device file explorer 文件浏览器也拿不到root的浏览和操作权限很不方便

是我手机版本问题还是什么问题

pixel4xl android12 Kernel version:4.14.234_KernelSU-g77056a710073

natsumerinchan commented 1 year ago

试试adb shell "su -c 'cat /proc/1123/maps'"

YuushaTao commented 1 year ago

试试adb shell "su -c 'cat /proc/1123/maps'" 还是不行,但用adb shell su -c ps -A 这种命令又没问题 还有一个问题是adb shell su -c mkdir /sdcard/xxx/xxx 创建不了文件夹,用 adb shell mkdir /sdcard/xxx/xxx 反而可以 这些问题在magisk root的环境下都没出现

bugme2 commented 1 year ago

确实,试了下不支持-c参数,也不支持切换用户