• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Recovery for commando

Nothing to coach. I used the script. Pay no mind to the error messages. Mine did not reboot to recovery, I had to call recovery in terminal emulator while in su mode. It then rebooted into recovery. I made a nandroid but that is all that I did. Hopefully my thread will get lots of attention and we will have a nice ROM to play with in a little while.
 
Upvote 0
Well that post was completely wrong...

If you were able to follow the instructions to root your phone then you should be able to use the script. Download the file from GNM and copy it to the root of your SD card. if you don't have terminal emulator, dowload it and then do it from there.

Ok, what am i doing wrong, after I followed their instructions, whenever I try to reboot into recovery, the device gets the little android with the exclamation inside the triangle (but after pulling the battery, it reboots fine)

should I do it all in terminal editor rather than adb?
 
Upvote 0
I don't think you are renaming the install-recovery.sh file and it is overwriting the custom recovery on reboot.


Thanks, that's the problem, I was in a hurry, when I get the chance, I'll post a (as close to stock as I can get) nandroid backup for anybody who might need it (also I'll look into getting a kernel dump, that should help with development...)
 
Upvote 0
Well that post was completely wrong...

If you were able to follow the instructions to root your phone then you should be able to use the script. Download the file from GNM and copy it to the root of your SD card. if you don't have terminal emulator, dowload it and then do it from there.

Help me out here:

1- The recovery file does not exist on Mediafire. When I click on it Mediafire pops up with "Invalid or deleted file".
2- I downloaded the other file referenced specifically for the commando; the .img file. I can't use it since I don't have the recovery file.

I was able to root with both 2.2.1 and with 2.3.3.....even before the script was made. They both seemed pretty simple, but I am lost on this one.

Am I wrong....do I not need both the "recoveryflash.zip" file and the .img file?
 
Upvote 0
Are these the steps you are following to accomplish it?

Directions to flash recovery:

UPDATED Easy install via script:

MUST BE ALREADY ROOTED:

1. Download & unzip recoveryflash.zip on sdcard. You should have a folder called recoveryflash on sdcard after unzipping.

2. Place the recovery.img you downloaded in this folder in /sdcard/recoveryflash and then turn off sdcard as mass storage . (Do not rename the recovery.img from the download)

3. Reboot phone and wait for sdcard to mount (about 5 - 10 seconds) after you see home screen.

4. Become root user in abd shell or terminal emulator with command without quotes "su" & you should have a # prompt

5. Enter these commands in terminal emulator or adb shell # prompt one at a time and press enter after each line. If anyone has trouble with the 1st line you can also use a root enabled explorer like root explorer or estrongs and copy/paste the recoveryflash.sh into /data/local and then start with the 2nd line.

Code:
cat /sdcard/recoveryflash/recoveryflash.sh > /data/local/recoveryflash.shchmod 0755 /data/local/recoveryflash.sh/data/local/recoveryflash.sh
6. It will automatically install & reboot you into new recovery. Using the script above your old recovery.img was copied to /sdcard/dump-recovery.img. If you had the stock recovery copy that file to a safe place as running the script again will overwrite it.
 
Upvote 0
That is what I did, in terminal emulator. After it finished it did not reboot into recovery, it rebooted regularly. I then went into terminal emulator and called reboot recovery, which I had to do in superuser. That time it rebooted into the recovery.

I did a factory wipe of the phone in recovery today and again lost superuser. Ordinarily I would just restore a nandroid. The problem with this is you have to have superuser rights to call recovery in terminal emulator. I guess this is some more of that "interesting security" that GNM spoke of so many months ago...
 
Upvote 0
That is what I did, in terminal emulator. After it finished it did not reboot into recovery, it rebooted regularly. I then went into terminal emulator and called reboot recovery, which I had to do in superuser. That time it rebooted into the recovery.

I did a factory wipe of the phone in recovery today and again lost superuser. Ordinarily I would just restore a nandroid. The problem with this is you have to have superuser rights to call recovery in terminal emulator. I guess this is some more of that "interesting security" that GNM spoke of so many months ago...


You have to have su rights to call a reboot in terminal on linux... Thus isn't really a commando specific feature
 
Upvote 0
If you have recovery installed on the phone, you should be able to call recovery with adb using the command "adb wait-for-device reboot recovery". I have done this as a test and it works. Connect the phone to your computer, enter the command, and then power on the phone. As soon as the phone makes the USB connection to the computer it will reboot into recovery. Once in recovery use the menu to restore a nandroid. If you don't have a nandroid then you will need to ask for one. If you don't have recovery on your phone then I don't know what to tell you.

For anyone who's reading and has been hesitant to install the recovery that GNM has developed for us, this is why you should have a recovery on your phone if you are planning to do any "work" on it. It's more than just being able to install ROMs, it's about being able to fix mistakes.
 
  • Like
Reactions: IDontDoItOften
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones