如何在recovery模式支持adbshell
$adb reboot recovery$adb devices
List of devices attached
19761202 recovery
$ adb shell
exec '/system/bin/sh' failed: No such file or directory (2) -
$ adb logcat
- exec '/system/bin/sh' failed: No such file or directory (2) -
有上面的错误提示,无法进入shell,如何进入recovery也能用adb shell 看到文件系统? --------------------编程问答-------------------- 系统有一个init.rc文件,修改启动次序。 --------------------编程问答-------------------- recovery的init.rc就这些
service ueventd /sbin/ueventd
critical
service recovery /sbin/recovery
service adbd /sbin/adbd recovery
# disabled
on property:persist.service.adb.enable=1
start adbd
on property:persist.service.adb.enable=0
stop adbd
而且看到说提示是正确的
Launching ADB in recovery
Currently, we don't know how it happens, but sometimes ADB starts while the system is booting in recovery. (We believe it to be a race condition at present.)
On the host, run adb shell in a loop.
On Linux, syntax will be something like while true; do adb shell; done
Repeatedly reboot your device into recovery mode (if it comes up normally, adb reboot recovery).
If the shell repeatedly says error: device not found when in recovery mode, press vol-up and power at the same time, then reboot and try again.
If the shell repeatedly says - exec '/system/bin/sh' failed: No such file or directory (2) -, then ADB is running in recovery mode; congratulations. --------------------编程问答-------------------- in 'mounts and storage', 'mount /system' --------------------编程问答-------------------- 同求啊有结果了吗
补充:移动开发 , Android