Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Does anyone know if there's a way to get an Android phone to reboot into recovery mode, from the Android command line?

Note:

I do NOT have adb access.

I do NOT know the magic power-on sequence to do it from the boot loader. I've tried the common things and nothing works.

I DO have root. (And can enter commands directly on the device using a terminal emulator.)

I know it's possible, somehow, because applications like ROM Manager do it. But how?

share|improve this question
add comment

1 Answer 1

up vote 10 down vote accepted

Generally, reboot binary provides a recovery switch. After switching to root, execute this command:

/system/bin/reboot recovery

This may not work if your manufacturer doesn't support it. ROM Manager type apps uses API of Android which you can't access via Terminal Emulator directly.

share|improve this answer
1  
You shouldn't need the full path for reboot, but this is exactly right. –  Matthew Read Mar 26 '12 at 17:30
    
Thanks --- worked beautifully. –  David Given Mar 26 '12 at 17:32
1  
@MatthewRead Yup, full path is really not needed. :) But, I didn't want to leave a chance in case someone messed up with PATH variable. –  Sachin Shekhar Mar 26 '12 at 17:46
    
why can i do this?? the terminal emulator gives me a error said "operation not permitted" what can i do?? Thanks –  Otech1408 Jun 3 at 11:22
    
@Otech1408 You have to have a rooted device to do this. –  onik Jun 3 at 12:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.