Install CM for shadow

From CyanogenMod
Jump to: navigation, search

Note: DISCLAIMER

Modifying or replacing your device's software may void your device's warranty, lead to data loss, hair loss, financial loss, privacy loss, security breaches, or other damage, and therefore must be done entirely at your own risk. No one affiliated with the CyanogenMod project is responsible for your actions. Good luck.


Downgrade to the 2.3.340 Firmware

If the Motorola Droid X is running firmware newer (higher) than 2.3.340 (see Settings » About phone) you will need to downgrade the device first in order to root. If the Motorola Droid X is already running 2.3.340 or lower you can skip to the Gaining Root Access section.

WARNING: Before proceeding, check Settings » About phone » System version. If System version 4.5.621.* was installed on your device by the 2.3.4 OTA update, you cannot downgrade your firmware using either method below. The bootloader will throw an error (Bootloader 30.04 Err:A5,70,70,00,1F) and you will be unable to proceed to the factory recovery image.

Recovery from Bootloader Error: If you attempt to downgrade your firmware from 4.5.621, you will get stuck on the bootloader page. To recover you will need to download firmware version 4.5.621 (new location) (.sbf file must be extracted from .zip archive) and re-install it using RSD Lite or SBF Flash (follow the directions below). You may need to accomplish this quickly, as your device will not charge over USB while it is stuck on the bootloader page.

Downgrading the Firmware with RSD Lite (Windows)

  1. Download the Motorola Drivers, RSD Lite & the 2.3.340 firmware:
    • RSD Lite 5.7: Download
      md5: feb9a71470ee539e074bf420a2e4d8bd
    • Motorola 5.5.0 device drivers: Download
    • 2.3.340 firmware: Download
      md5: 48c0d5cb3805497a6cbaf120dfb63002
  2. Unzip the 2.3.340 firmware and place it somewhere easy to access.
  3. Install RSD Lite.
  4. Once RSD Lite is installed, install the Motorola device drivers.
  5. Power off the Motorola Droid X.
  6. Boot into bootloader mode by holding down Volume Down, the Camera & the Power buttons.
  7. Connect the Motorola Droid X to the computer via USB.
  8. Open RSD Lite.
  9. Click on the "..." button next to the filename box and select the 2.3.340 firmware .sbf file.
  10. Once it is selected, hit Start and wait for it to finish flashing the device.
  11. It should take about 20 minutes to flash the 2.3.340 firmware. Once it's finished, the Motorola Droid X will reboot itself and it will go into a bootloader. Pull the battery and power back while holding the Home button. Once you see an Android with the triangle & exclamation point, press the Search button.
  12. The Motorola Droid X is now in the factory recovery image, use the side volume buttons to move around and the Power button to select.
  13. Select the option to Wipe data/factory reset.
  14. Once the wipe is finished, select Reboot system now'.
  15. The Motorola Droid X is now downgraded to the needed firmware.

Downgrading the Firmware with sbf_flash (Linux & OS X)

  1. Download sbf_flash & the 2.3.34 firmware:
    • sbf_flash: Download
    • 2.3.340 firmware: Download
      md5: 48c0d5cb3805497a6cbaf120dfb63002
  2. Unzip the sbf_flash zipfile.
  3. Unzip the 2.3.340 firmware and place it somewhere easy to access.
  4. Power off the Motorola Droid X.
  5. Boot into bootloader mode by holding down Volume Down, the Camera & the Power buttons.
  6. Connect the Motorola Droid X to the computer via USB.
  7. On the computer, open terminal and run the following commands:
    chmod +x sbf_flash
    ./sbf_flash VRZ_MB810_2.3.34_1FF_01.sbf
  8. It should take about 20 minutes to flash the 2.3.340 firmware. Once it's finished, the Motorola Droid X will reboot itself and it will go into a bootloader. Pull the battery and power back while holding the Home button. Once you see an Android with the triangle & exclamation point, press the Search button.
  9. The Motorola Droid X is now in the factory recovery image, use the side volume buttons to move around and the Power button to select.
  10. Select the option to Wipe data/factory reset.
  11. Once the wipe is finished, select Reboot system now'.
  12. The Motorola Droid X is now downgraded to the needed firmware.


Gain Root with Framaroot

  1. Install Framaroot for one click root. http://forum.xda-developers.com/showthread.php?t=2130276 (Select Gimli.)
  2. Run adb push Framaroot_9.9.9.apk /sdcard/
  3. Open Files app, navigate to SDCard, select Framaroot, install, open, root, reboot.

Gaining Root Access with rageagainstthecage

  1. You will need ADB on the computer to root the Droid X.
  2. Download the following files:
    • rageagainstthecage-arm5: Download
      md5: bfa28d457b54508326ab55d11399c586
      (Note: Antivirus software may delete this because "it could be used by malware to root Android phones". Either turn off your antivirus, or flag this as "allowed" while you are gaining root access, and un"allow" it when done.)
    • Superuser package: Download
      md5: 43d9a40b63e916635d5ad7ca32433fab
  1. Unzip rageinthecage-arm5 & the Superuser package to the same folder as adb (the /platform-tools folder within the Android SDK folder).
  2. Connect the Droid X to the computer via USB.
  3. Allow "USB debug" on the device: Settings > Applications > Development and check USB debugging box.
  4. On the computer, open terminal and run the following commands:
    adb push rageagainstthecage-arm5.bin /data/local/tmp/
    adb shell
    chmod 755 /data/local/tmp/rageagainstthecage-arm5.bin
    /data/local/tmp/rageagainstthecage-arm5.bin
  5. Once the exploit finishes, in terminal, run the following commands:
    exit
    adb kill-server
    adb start-server
    adb shell
    NOTE: You should see a "#". If you see a "$", then the exploit didn't work, please repeat steps 4 & 5.
    mount -o rw,remount /dev/block/mtdblock1 /system
    exit
    adb push su /system/xbin/
    adb shell chmod 4755 /system/xbin/su
    adb push Superuser.apk /system/app/
  6. The Droid X is now rooted, please continue to the next section.

Install Bootstrap

  1. Download the Droid 2 Recovery Bootstrap:
    • Droid 2 Recovery Bootstrap 1.0.0.5: Download
      md5: c67a11b41f52b617d3656ba80016f003
  2. Copy the Droid 2 Recovery Bootstrap to the same folder as adb (the /platform-tools folder within the Android SDK folder).
  3. Connect the Motorola Droid 2 to the computer via USB.
  4. On the computer, open terminal and run the following command:
    adb push bootstrap-1.0.0.5-droid2.apk /system/app/
  5. The Droid 2 Recovery Bootstrap with the ClockworkMod Recovery should now be installed on the Motorola Droid 2.

Installing CyanogenMod from recovery

  1. Make sure your computer has working adb.
  2. Download the CyanogenMod package for your device that you'd like to install to your computer.
    Optional: Download 3rd party applications packages, like Google Apps which are necessary to download apps from Google Play.
  3. Boot to recovery mode, and connect the phone to your computer through USB.
    • Home & Power, then press Search twice
  4. In ClockworkMod Recovery, use the physical volume buttons to move up and down. On most devices, the power button is used to confirm a menu selection, but for some devices a physical home key acts as a selector. Some devices have touch enabled ClockworkMod Recovery, in which case you may be able to swipe to, or touch, menu selections.
  5. Optional (Recommended): Select backup and restore to create a backup of your current ROM.
  6. Select wipe data/factory reset.
  7. You have two options for transferring and installing the installation packages. The sideload method is more universal across devices, whereas the push and install method is more commonly used:
    • Sideload method: select install zip > install zip from sideload. Follow the on-screen notices to install the package. The installer does not necessarily display an "Install complete." message. You can tell the install is complete if there were no fatal error messages and you have regained control over the menu.
    • Push and install method: Open a command prompt (or Terminal on Mac and Linux) and navigate to the directory holding the package(s) you would like to install. On the device, navigate to the mounts and storage menu. If you see /storage/sdcard0 or /sdcard as a mountable volume, go ahead and mount it. If you do not see one of these partitions, then instead mount the /data partition. Take note of which volume you mounted. Now, push the package(s) to your device (also, see tip below):
    - If you mounted /storage/sdcard0, then: adb push update.zip /storage/sdcard0/
    - If you mounted /sdcard or /data, then: adb push update.zip /sdcard/
    where update.zip should be replaced with the package filename. Go back to the main menu and select install zip. Choose to install from the same directory where you pushed the package(s). If you are installing multiple packages, install CyanogenMod first and then install any subsequent packages on top of it.
  8. Once installation has finished, return to the main menu and select reboot system now. The device will now boot into CyanogenMod.

Helpful Tip– SD card folders

CyanogenMod 10.1 and newer have multi-user support (introduced in Android 4.2). If your device has storage on the /data partition, then Android actually looks in /data/media/0/ for the first user's /sdcard/ storage. ClockworkMod recovery symlinks /sdcard/ to /data/media/ though. So, if you are pushing files to internal storage in recovery and want them to be visible in Android, you should push them to /sdcard/0/ or /data/media/0/. Here's the most frequent scenarios:

  1. If you're coming from a ROM with Android 4.1 or older to CyanogenMod 10 or older: adb push update.zip /sdcard/
  2. If you're coming from a ROM with Android 4.1 or older to CyanogenMod 10.1 or newer: adb shell "mkdir /sdcard/0/" followed by adb push update.zip /sdcard/0/
  3. If you're coming from a ROM with Android 4.2 or newer to CyanogenMod 10.1 or newer: adb push update.zip /sdcard/0/