Full Update Guide - ADP1 Firmware to CyanogenMod

From CyanogenMod Wiki

Jump to: navigation, search

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.

  1. Download the latest Cyanogen Recovery Image (1.4)
  2. 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.

  1. Download the Android 1.6 Recovery Image:
  2. Download the latest CyanogenMod ROM for your device:
  3. 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.

  1. Turn your phone off.
  2. Hold the Home button while booting to get to Recovery mode.
  3. If you wish to have an option to return to your factory settings, select nandroid backup now. If not, continue.
  4. Press Alt-W (or select "wipe data/factory reset"). Press home to confirm.
  5. Press Alt-A (or select "apply any zip from sd").
    • Pick signed-dream_devphone_userdebug-ota-14721.zip.
  6. Press home to confirm and let installation complete.
  7. STOP - DO NOT REBOOT YOUR PHONE
  8. Once again, press Alt-A (or select "apply any zip from sd").
    • Pick update-cm-4.2.x-signed.zip.
  9. Press home to confirm and let installation complete
  10. When this is complete, reboot your phone by pressing Home & Back. [release buttons to start reboot]
  11. Wait. Your phone will say installing radio and then reboot. This will take a couple of minutes. Be patient!
  12. (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.

  1. Go to http://code.google.com/p/android-roms/wiki/Install_Hard_SPL and download the SPL File
  2. Place the SPL file on the root of your SD card.
  3. Power off your phone.
  4. Press and hold Home and then press Power to boot into recovery mode.
  5. 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.)
  6. After the update is complete, hold Home + Back to restart.
  7. Once your phone has booted up, turn your phone off so that we can make sure the update worked.
  8. 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)

  1. Power off your phone.
  2. Press and hold Home and then press Power to boot into recovery mode.
  3. Once in recovery mode, Press ALT+X (or select "go to console") to enter the command line.
  4. Once in the command line, press [enter] to continue.
  5. Type the following two commands to find the size of the SD card:
    parted /dev/block/mmcblk0 [enter]
    print [enter]
  6. Find the line that says "Disk /dev/block/mmcblk0: xxxxMB". Write this down!
  7. The next step is to delete all existing partitions.
    rm 1 [enter]
    rm 2 [enter]
    etc...
  8. Check to make sure all of the partitions were deleted.
    print [enter]
  9. 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.)
  10. 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)
  11. (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)
  12. Check to see that the SD card was partitioned properly.
    print [enter]
  13. If everything is correct, exit parted, and run upgrade_fs to upgrade from ext2 to ext3
    quit [enter]
    upgrade_fs [enter]
  14. (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]
  15. 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:

Apps2SD On CyanogenMod

[edit] Audio Resources (optional)

CyanogenMod only includes a few ringtones for space considerations. This file has many, many more.

  1. All phones, Download:
  2. Unzip contents to root of SD Card
  3. The phone will automatically recognize the audio files
Personal tools