quick ref
$fastboot flash system system.img
$fastboot flash userdata data.img
$fastboot flash boot boot.img
$fastboot rebootquick ref
http://wiki.cyanogenmod.com/index.php?title=Full_UpdateGuide-_Nexus_One
Full Update Guide - Nexus OneFrom CyanogenMod WikiJump to: navigation, search
This guide will walk you through the process of taking the Nexus One from stock to having the ability to flash the latest version of CyanogenMod.
Contents [hide]- 1 Before you do anything — Make a backup
- 2 Unlocking the Bootloader
- 3 Installing a Custom Recovery Image
- 4 Flashing Radio
- 5 Flashing CyanogenMod
Don’t forget to back up your data. If you have synced your phone with your Google account, your contacts, calendar, Gmail, and some Google data will not be lost and will come back after the next sync; However, you should backup anything you want to keep that is not stored on your SD card.
- SMS/MMS messages - adb pull /data/data/com.android.providers.telephony/databases/mmssms.db. See here for restoring the messages.
- Call Log
- Bookmarks
- User dictionary (for keyboard input) - Titanium Backup lists it as a green entry named [USER DICT] com.android.providers.userdictionary.
- Applications; use Titanium Backup or the Astro file manager, for example
- Any application data not on the SD card
It would also be a good idea to back up everything stored on your SD card in the rare case the card must be formatted to resolve any major problems.
Backup for Root Users, SMS Backup & Restore, and Call Backup & Restore are all free applications that can assist with backing up your data.
Unlocking the BootloaderIn order to flash a fully stock Nexus One with any ROM, you must first unlock the bootloader of your Nexus One and install a custom recovery image. If your Nexus One’s bootloader is already unlocked, skip this section.
Note: This process will wipe your phone; if you have not yet upgraded to FRG33 and wish to backup your current rom you can root, install a custom recovery, and backup the current rom with the information on this xda thread. However as this still voids your warranty, it’s highly recommended that you still unlock your bootloader as described before installing CyanogenMod or other custom firmware as it will make it significantly easier to recovery your phone if something goes wrong in the future.
Warning: Unlocking the Nexus One’s bootloader will void the warranty.- You will need the fastboot shell on the computer to use the commands to unlock the bootloader. Follow the Android SDK guide, to get the ADB and fastboot shell on the computer. You don’t need to follow the entire guide, just the relevant portions.
- Power off the Nexus One.
- Boot into bootloader mode, by holding down the trackball, and press the power button. Do not let go of the trackball until the phone boots into bootloader mode; you will see a white screen with three skating bugdroids.
- Connect the Nexus One to the computer.
- On the computer, open the command prompt/terminal & navigate to the Android SDK Tools folder.
- Type in the following command:
-
fastboot oem unlock
-
- On the Nexus One, a prompt will open up, asking you if you are sure you want to unlock the bootloader, and again warning you that doing so will void your warranty. If you agree to these terms, press Volume Up to select Yes, and then press the Power button to confirm.
- NOTE: Unlocking the bootloader wipes the phone.
- The Nexus One will restart. Let the phone boot into Android.
For the Nexus One, there are two custom recovery images available, Amon_Ra’s Recovery & the ClockworkMod Recovery. Choose one & follow the instructions below & how to install each custom recovery image. If you have already flashed a custom recovery image, skip this section.
Amon_Ra’s Recovery- Download the latest version of Amon_Ra’s Recovery (1.7.0.1).
- Rename Amon_Ra’s Recovery Image to simply recovery.img & move it to the Android SDK Tools folder.
- Toggle on USB Debugging (Settings » Applications » Development). Power off the Nexus One.
- Boot into bootloader mode.
- Connect the Nexus One to the computer.
- On the computer, open the command prompt/terminal & navigate to the Android SDK Tools folder.
- Type in the following command:
-
fastboot flash recovery recovery.img
-
- Amon_Ra’s Recovery should now be installed on the Nexus One.
The ClockworkMod Recovery can be installed in two fashions. Follow the instructions below.
First Method (easy method)This must be done on a ROM that has root access (ie, su & Superuser.apk).
- Search for ROM Manager in the Market (free or paid) and install the app.
- Open the ROM Manager application and choose the first option in the app, Flash ClockworkMod Recovery.
- Click on your device Nexus One and then you may need to give the app root permission if it prompts you. If it does prompt for Superuser access, make sure Remember or Always is selected before you choose Allow.
- If it hangs after that and freezes up, just allow the app to Force Close. Then open it back up and repeat steps 2 & 3.
- If the flash was successful a dialog box should pop up saying "Successfully flashed ClockworkMod recovery!". Press OK.
Same method as above for Amon_Ra’s Recovery.
- Download the latest version of the ClockworkMod Recovery (2.5.1.0).
- Rename the ClockworkMod Recovery Image to simply recovery.img & move it to the Android SDK Tools folder.
- Toggle on USB Debugging (Settings » Applications » Development). Power off the Nexus One.
- Boot into bootloader mode.
- Connect the Nexus One to the computer.
- On the computer, open the command prompt/terminal & navigate to the Android SDK Tools folder.
- Type in the following command:
-
fastboot flash recovery recovery.img
-
- The ClockworkMod Recovery should now be installed on the Nexus One.
Please follow the instructions that correspond to the custom recovery image on the Nexus One to flash the radio.
Amon_Ra’s Recovery process- Download the latest version of the radio (4.06.00.12_7).
- Place the radio update.zip file on the root of your SD card.
- Boot into the Amon_Ra’s Recovery.
- Boot into bootloader mode.
- Select BOOTLOADER –> RECOVERY
- Once you enter Amon_Ra’s Recovery, scroll up & down with the trackball, and the trackball button to select.
- Select Flash zip from sdcard.
- Select the radio update.zip.
- The Nexus One will reboot during this process.
- Once the installation has finished, select Reboot system. Now the Nexus One’s Baseband version should now be 4.06.00.12_7.
- Download the latest version of the radio (4.06.00.12_7).
- Place the radio update.zip file on the root of your SD card.
- Boot into the ClockworkMod Recovery.
- Boot into bootloader mode.
- Select BOOTLOADER –> RECOVERY
- Once you enter ClockworkMod Recovery, use the side volume buttons to move around, and the trackball button to select.
- Select Install zip from sdcard.
- Select Choose zip from sdcard.
- Select the radio update.zip.
- Once the installation has finished, select Reboot system now. Now the Nexus One’s Baseband version should now be 4.06.00.12_7.
Please follow the instructions that correspond to the custom recovery image on the Nexus One to flash CyanogenMod.
Amon_Ra’s Recovery process- Download the latest version of CyanogenMod.
- Optional: Download the corresponding Google Apps for the phone.
- Place the CyanogenMod update.zip file on the root of the SD card.
- Optional: Place the Google Apps .zip on the root of the SD card also.
- Boot into Amon_Ra’s Recovery.
- Once you enter Amon_Ra’s Recovery, scroll up & down with the trackball, and the trackball button to select.
- Select Wipe, then Wipe data/factory reset
- Select Flash zip from sdcard.
- Select the CyanogenMod update.zip.
- Optional: Install the Google Apps by performing steps 6-7 again & choosing the Google Apps update.zip.
- Once the installation has finished, select Reboot system. Now the Nexus One should boot into CyanogenMod.
- Launch ROM Manager.
- Optional: Choose the first option in the app, Flash ClockworkMod Recovery to update to the latest version.
- Select the Download ROM option from the main menu in the ROM Manager.
- Select the CyanogenMod option, and then choose the latest version of CyanogenMod from the menu.
- Optional: When you select the latest version of CyanogenMod, check the Google Apps option.
- Once the ROM is finished downloading, it asks if you would like to Backup Existing ROM and Wipe Data and Cache.
- If Superuser prompts for root permissions check to Remember and then Allow.
- The Nexus One will now reboot into recovery, wipe data and cache, and then install CyanogenMod. When it’s finished installing it will reboot into CyanogenMod.
- Download the latest version of CyanogenMod.
- Optional: Download the corresponding Google Apps for the phone.
- Place the CyanogenMod update.zip file on the root of the SD card.
- Optional: Place the Google Apps .zip on the root of the SD card also.
- Boot into the ClockworkMod Recovery.
- Once you enter ClockworkMod Recovery, use the side volume buttons to move around, and either the power button or the trackball to select.
- Select the option to Wipe data/factory reset.
- Then select the option to Wipe cache partition.
- Select Install zip from sdcard.
- Select Choose zip from sdcard.
- Select the CyanogenMod update.zip.
- Optional: Install the Google Apps by performing steps 7-9 again & choosing the Google Apps update.zip.
- Once the installation has finished, select +++++Go Back+++++ to get back to the main menu, and select the Reboot system now option. Now the Nexus One should boot into CyanogenMod.
Note: Google Apps (commonly referred to as "GApps") installs applications such as Market, GMail, etc.