Full Update Guide - ADP1 Firmware to CyanogenMod
From CyanogenMod Wiki
This is a guide to upgrade your Android Dev Phone 1 from the Stock OTA update to CyanogenMod 4.2.x. If you are upgrading a Magic32A/32B/MyTouch3G, see this page.
Contents |
[edit] Flashing the Recovery Image
You need to replace the standard Recovery Image with a customized Recovery Image. This will give you the physical ability to install a custom ROM.
- Download the latest Cyanogen Recovery Image (1.4)
-
Boot your phone into fastboot mode and flash the Cyanogen Recovery Image:
fastboot flash recovery cm-recovery-1.4.img
fastboot reboot
If fastboot completes WITHOUT errors, but after reboot you are back to the old recovery, there is a script which runs in /init.rc which seems to be restoring the old recovery by patching it. This worked for a stock 1.6 ADP1 phone:
-
Place phone into fastboot mode.
fastboot boot cm-recovery-1.4.img
adb shell mount -a
adb shell
mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.disabled
-
Reboot back to fastboot mode.
fastboot flash recovery cm-recovery-1.4.img
fastboot reboot
- You should now have your old recovery definitely replaced.
[edit] File Download
Due to recent events, CyanogenMod can no longer distribute Google specific apps with its ROMS. The way around this is to download and install the legal Google apps and then install CyanogenMod on top of those apps. The good news is that it works, the bad news is that it requires an extra step or two in the install process.
- Download the Android 1.6 Recovery Image:
- http://developer.htc.com/adp.html#s3 (mirror,alternative download instructions using wget) [currently signed-dream_devphone_userdebug-ota-14721.zip]
-
Download the latest CyanogenMod ROM for your device:
- Dream (G1): Latest version (stable)
- Put all necessary files on your SD card:
adb push <androidrecoveryimage>.zip /sdcard
adb push <cyanogenmodrom>.zip /sdcard
adb shell sync
[edit] Flash Android 1.6 & the Latest version (stable)
You will now install the actual OS of the phone. First you will install the legal Google apps, and then you will install CyanogenMod on top of those apps.
- Turn your phone off.
- Hold the Home button while booting to get to Recovery mode.
- If you wish to have an option to return to your factory settings, select nandroid backup now. If not, continue.
- Press Alt-W (or select "wipe data/factory reset"). Press home to confirm.
- Press Alt-A (or select "apply any zip from sd").
- Pick signed-dream_devphone_userdebug-ota-14721.zip.
- Press home to confirm and let installation complete.
- STOP - DO NOT REBOOT YOUR PHONE
- Once again, press Alt-A (or select "apply any zip from sd").
- Pick update-cm-4.2.x-signed.zip.
- Press home to confirm and let installation complete
- When this is complete, reboot your phone by pressing Home & Back. [release buttons to start reboot]
- Wait. Your phone will say installing radio and then reboot. This will take a couple of minutes. Be patient!
- (When rebooting it may boot back to the recovery screen and say Formating CACHE. That's normal, just reboot again.)
If that's all you wanted to do, you're done! You should now have a fully functional phone.
[edit] Hard SPL (optional)
If you choose, you can install a custom SPL. As of CyanogenMOD 4.2.4, this is not necessary as the ADP1 comes with an engineering bootloader that is already fastboot compatible
ONLY follow these steps if you've followed the previous steps on this page (or if you manually flashed your radio with the latest version). Otherwise, you will break your phone.
- Go to http://code.google.com/p/android-roms/wiki/Install_Hard_SPL and download the SPL File
- Place the SPL file on the root of your SD card.
- Power off your phone.
- Press and hold Home and then press Power to boot into recovery mode.
- Once in recovery mode, Press ALT+A (or select "apply any zip from sd") and select the SPL file you downloaded to apply the update from the SD card. (If you do not see a menu / text on screen, ie - you see an exclamation mark, press ALT+L to show the menu.)
- After the update is complete, hold Home + Back to restart.
- Once your phone has booted up, turn your phone off so that we can make sure the update worked.
- Press and hold the Camera and Power buttons to boot into your SPL. It should have three androids on skateboards at the bottom, with a white background. If you still have the four-color rainbow, go back and try again. If you press HOME you will start this all over again.So DO NOT. Press Action. Then either way, press Call, Menu and End at the same time to reboot.
[edit] Apps2SD Fix (optional)
Apps2SD moves your apps to the SD card, freeing up more room on your phone. As of 4.2.4, this is not necessary, however, this may become a requirement in the future.
This is not recommended if using less than a Class 4 SD card, as it may randomly eject and cause all sorts of issues.
This will erase EVERYTHING from your SD card, so make sure to back it up!
These instructions are for Cyanogen's latest recovery console (version 1.4)
- Power off your phone.
- Press and hold Home and then press Power to boot into recovery mode.
- Once in recovery mode, Press ALT+X (or select "go to console") to enter the command line.
- Once in the command line, press [enter] to continue.
- Type the following two commands to find the size of the SD card:
parted /dev/block/mmcblk0 [enter]
print [enter]
- Find the line that says "Disk /dev/block/mmcblk0: xxxxMB". Write this down!
- The next step is to delete all existing partitions.
rm 1 [enter]
rm 2 [enter]
etc... - Check to make sure all of the partitions were deleted.
print [enter]
- Once the SD card is blank, create the primary partition. (This is the amount of space you want for your music, pictures, etc.)
mkpartfs primary fat32 0 XXXX [enter]
- (XXXX = How many MB of storage you would like. Remember to leave 256-512 MB for your app partition, and optionally 64 MB for swap.)
-
Create the ext2 (application) partition.
mkpartfs primary ext2 XXXX YYYY [enter]- (XXXX = This will be the same XXXX number from step 9)
- (YYYY = XXXX + [256 or 512] (or whatever size you want to make this partition)
- (Optional) Create a swap partition. (Large sizes are unlikely to be useful, try 64MB or so.)
mkpartfs primary linux-swap YYYY ZZZZ [enter]
- (YYYY = This will be the same YYYY number from step 10)
- (ZZZZ = The end of your SD card (the initial size you wrote in step 6)
- Check to see that the SD card was partitioned properly.
print [enter]
-
If everything is correct, exit parted, and run upgrade_fs to upgrade from ext2 to ext3
quit [enter]
upgrade_fs [enter]
-
(Optional) If you want, you can now upgrade from ext3 to ext4
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2 [enter]
e2fsck -fpDC0 /dev/block/mmcblk0p2 [enter]
- Once that is finished, reboot the phone
reboot [enter]
Congratulations! Now your SD card is ready to use Apps2SD (CyanogenMod does the rest automatically).
Full instructions can be found here:
[edit] Audio Resources (optional)
CyanogenMod only includes a few ringtones for space considerations. This file has many, many more.
- All phones, Download:
- http://n0rp.chemlab.org/android/audio-resources.zip
- MD5Sum: 7340ba86ddd4fba918ef97601c675ef9
- Unzip contents to root of SD Card
- The phone will automatically recognize the audio files
