How can I boot into the recovery from terminal? I'm using LG p970/CM10/cwm5
3 Answers
Try reboot recovery
, though it doesn't work on all devices. You might also need root for this, so first try su
.
-
1
-
CM12 and perhaps CM11 too has ADB wireless option under Developer settings, and combined with "adb connect" you can boot into Recovery mode without needing
su
. But having CM already means you'll be having root access too, so how is this comment useful? -- Well for those running stock CyanogenOS. :) // But that's just command-line way, Developer options also has Advanced boot options, so GUI will provide "reboot to recovery" option as well. -- Warren T. Voider came up with this part.– Firelord ♦Jul 14, 2015 at 14:03
It may not work if you have not-always-compatibile busybox reboot symlink in a PATH that is more privileged than /system/bin (or /system/bin toolbox symlink has been overwritten), it may lie in /sbin if using custom kernel with bb included for example. If so, try: "toolbox reboot recovery" (jb) "/system/bin/reboot recovery" (kk - however which one will work my be also dependent from the manufacturer...)
If you are running CM11 or CM12 you can simply go to Settings> About Phone> and tap Build Number 7-10 times to unlock Dev Options. Once unlocked you can go to Setting > Developer Options and select Advanced Reboot, this will add a "Reboot to Recovery" option to your reboot menu. Easiest method I have found to get unto recovery without installing a 3rd party app or using a terminal command if your phone doesn't want to accept a multi button sequence. Also note that in Cyanogenmod 12 you have to enable the Superuser root access in the Dev options first I believe.
-
2
-
-
I'm afraid this doesn't answer the question for a quite different reason: OP asks how to do that from terminal – which your post does not cover at all.– Izzy ♦Jul 17, 2015 at 13:32
adb
) or from a shell on the Android device itself?