Please remember to add a category to the bottom of each page that you create.
See categories help for further details, but most will probably be [[Category:HTC ModelName]].

HTC Nexus One/Recovery Images

From XDA-Developers
Jump to: navigation, search

Recovery Images

Installing a Recovery Image

There are two custom recovery images available, Amon_Ra's Recovery & ClockworkMod Recovery. Choose one & follow the instructions on how to install each custom recovery image. Each has its advantages, however the easiest (by no means the best) for the first time phone hacker is the ClockworkMod Recovery at the bottom of this page.

For SLCD Nexus One variants, the newest version of ClockworkMod (2.5.1.1) is now said to be compatible. (http://twitter.com/#!/clockworkmod/status/636608818716672) Amon_Ra's 1.8.0.1 and up or PSFreedom 1.1.1 and up are also compatible.

If you have already flashed a custom recovery image, skip this section. You can check if you have a custom one by booting your phone while holding down the Power and Volume Down buttons. In the resulting screen, use the volume buttons to scroll down to Recovery and press the power ball. If it gives you an error, then you don't have a custom recovery.

Amon_Ra's Recovery

  • Versions:
    • 1.7.0.1
      • Last stable recovery for non-SLCD devices, no problems reported, requires signing.
      • Intended for: everyone with non-SLCD screens who has problems using 1.9.0-alpha.
    • 1.8.0.1
      • First stable recovery for SLCD devices, allows turning off signature checks, problems reported in incomplete wipe of SYSTEM and DATA partitions, unable to wipe SD-EXT partitions.
      • Intended for: everyone with SLCD screens who has problems using 1.9.0-alpha.
    • PSFreedom
      • Supporting all features of 1.8.0.1 and including PSFreedom.
      • Intended for: PlayStation 3 owners who want to run PSFreedom.
    • 1.9.0-alpha
      • Alpha version of consolidated recovery with the shortcomings above fixed and ability to mount SD-EXT partition in update scripts.
      • Intended for: everyone whom it works for - including PS3 owners, SLCD Nexus owners, and those wishing to flash Desire HD ROM.
    • 2.0.0 Normal or 2.0.0 Cyanogen
      • Stable release supporting both SLCD and AMOLED versions as well as new features such as file browser, mounting, etc.
      • Intended for: Everyone with either SLCD or AMOLED Nexus Ones!
      • md5sum:
        • Normal: e5001af5b21fbf73fba0c006be5634a8
        • Cyanogen: 1a86bf9e584ddb1156648244bbfcd7d6
    • 2.2.1
      • Newest stable release supporting both SLCD and AMOLED versions as well as new features such as file browser, mounting, etc. Smaller size.
      • Intended for: Everyone with either SLCD or AMOLED Nexus Ones!

For unlocked bootloader - using fastboot

  • The following won't work unless your bootloader is unlocked.
    1. Download Amon_RA's Recovery from one of the versions above.
    2. Rename Amon_Ra's Recovery Image to simply recovery.img.
    3. Download this file - Stock Recovery Remover - and copy it to the root of SD card.
    4. Toggle on USB Debugging (Settings » Applications » Development). Power off the Nexus One.
    5. Boot into bootloader mode. (Hold volume down & power button until you see white screen with skateboarding androids)
    6. Connect the Nexus One to the computer.
    7. On the computer... Open a command prompt/terminal & navigate to the Android SDK Tools folder.
    8. Type in the following commands (assuming recovery.img is in the current directory):
fastboot flash recovery recovery.img
  • Select BOOTLOADER from menu, from the other menu that is shown, select RECOVERY.
  • The phone should boot into recovery.
  • If you want to stay with stock ROM - flash the Stock Recovery Remover file using recovery. It'll remove the files that the stock system uses to reflash the recovery each reboot.

For locked bootloader - flash_image using Terminal

  • Using flash_image method works for locked bootloaders, requires root and working phone.
    1. Download Amon_RA's Recovery from one of the versions above.
    2. Rename Amon_Ra's Recovery Image to simply recovery.img.
    3. Copy recovery.img to SD card.
    4. Download flash_image.zip extract and copy flash_image file to SD card.
    5. Unmount the SD card from your computer.
    6. Open Terminal.
    7. Type in the following commands:
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cat /sdcard/flash_image > /system/bin/flash_image
chmod 755 /system/bin/flash_image
flash_image recovery /sdcard/recovery.img
rm /system/etc/install-recovery.sh
rm /system/recovery-from-boot.p
reboot recovery
  • The phone should reboot into recovery.

For locked bootloader - flash_image using ADB only

  • Using "blind" flash_image method works for locked bootloaders, requires root and is suitable for SLCD Nexus users that lost the ability to see their screen. Adapted from here.
    1. Download Amon_RA's Recovery from one of the versions above - NOT INCLUDING 1.7.0.1 - to C:\.
    2. Rename Amon_Ra's Recovery Image to simply recovery.img.
    3. Download flash_image.zip and extract flash_image file to C:\.
    4. Turn off the phone (possible by pulling the battery).
    5. Press Volume Down + Power or Trackball + Power, the phone will boot into bootloader.
    6. Select "BOOTLOADER", press Power.
    7. Select "RECOVERY", press Power. The phone is working, but the screen shows nothing.
    8. On the computer... Open a command prompt/terminal & navigate to the Android SDK Tools folder.
    9. Type in the following commands:
adb shell
mount -o rw /system
mount -o rw /sdcard
exit
adb push C:\flash_image /system/bin/flash_image
adb push C:\recovery.img /sdcard/recovery.img
adb shell
chmod 755 /system/bin/flash_image
flash_image recovery /sdcard/recovery.img
rm /system/etc/install-recovery.sh
rm /system/recovery-from-boot.p
reboot recovery
  • The phone should reboot into recovery, and it should be visible on SLCD.


External link to XDA:

ClockworkMod Recovery

Need Root for this process

  1. Search for ROM Manager in the Market and install the app. (free or paid)
  2. Open the application and choose the first option in the app. Flash ClockworkMod Recovery.
  3. Click on your device Nexus One
  4. If it does prompts for Superuser access, make sure Remember or Always is selected before you choose Allow.
  5. If the flash was successful a dialog box should pop up saying "Successfully flashed ClockworkMod recovery!". Press OK.

External link to XDA: