DINC Unlock Root and Recovery - bibanon/android-development-codex GitHub Wiki
Now we are back to square one, except that you have just downgraded to Froyo! We will need to unlock, install recovery, and root the phone all over again. Find the unlock code you had from the first time (if you didn't save it, you will have to get it all over again), and copy it back into the folder:
- Open a cmd window, if it's not still open from unlocking.
- If you had to re-open a cmd window, don't forget to change back to your directory using
- Once again, enable usb debugging, plug in your phone, and run these commands (don't include the comments after )
adb devices # check conectivity adb reboot bootloader # boot to fastboot fastboot devices # check connectivity fastboot flash unlocktoken Unlock_code.bin # re-unlock
Like the first time, on your phone select yes to unlock. Your phone will reboot.
Now that the bootloader is unlocked for development, we need a way to flash ROMs and modifications, and easily recover from bad flashes. This is where the recovery comes in.
You have two choices for recovery, ClockworkMod and TWRP. ClockworkMod is tried and true software that was the face of Android Developement. TWRP is the preferred recovery on the Droid Incredible for it's nice touch interface and newer features. Try both, and use whatever works for you.
- ClockworkMod Droid Incredible - MD5:
- TWRP - Go to the download section, and click the link to download. Please make note of the MD5 sum number.
- Enable usb debugging once again. Open a cmd window, if it's not still open from unlocking.
- if you had to re-open a cmd window,dont forget to change back to your miniadb_inc directory:
cd c:_inc
- Make sure you're connected correctly by typing:
adb devices
- This should return the serial number of your phone.
- Check the md5 of your recovery image. If you are using TWRP, replace the below with TWRP's image filename.
md5sum recovery-clockwork-5.0.2.0-inc.img
- make sure the resulting md5 matches the one you saw above or on the download page!
- Reboot directly to bootloader:
adb reboot bootloader
- Check for connectivity with this command:
fastboot devices
- This should return the serial number of your phone.
- Flash your recovery image to the phone's recovery partition: If you are using TWRP, replace the below with TWRP's image filename.
- You might see a (really fast) green status bar on the top right as your PC sends the recovery to your phone,then a (really,really fast) red bar as it flashes it. Once it's done, your recovery is now installed on your phone.
fastboot reboot
- Your phone will soon reboot.
Now we will get root privileges again and finally flash the Unrevoked Forever Patch to get S-OFF. You're almost done!
- Place and unrevoked-forever.zip onto the root of your sd card.
- Enter recovery via the hboot menu(power off,power on while holding vol down. once in hboot,wait for white screen with text, then select recovery with power button and vol rocker)
- Use the recovery menu on your phone to:
- Make a backup of your stock,unrooted rom. Completely optional, but it's recommended in case problems happen.
- wipe cache
- wipe dalvik cache(youll find this in the advanced menu)
- install both zips from sd card(chose your superuser file)
- reboot