Install CM for blade

From CyanogenMod
Jump to: navigation, search


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.

Install a Custom Recovery on the Blade

Is it Gen1 or Gen2?

  1. Search for Ask Mr Pigfish in the Market and install the app.
  2. Open Ask Mr Pigfish.
    • If the first line says "Mr Pigfish says you have a G1 model.", then the ZTE Blade is Gen1 and you need to convert it to a Gen2, which also installs a recovery.
    • If the first line says "Mr Pigfish says you have a G2 model.", then the ZTE Blade is Gen2 and you can continue to the root and recovery portion.

Gen1 to Gen2 Conversion (Gen1 ONLY)

  1. Download the Gen1-to-Gen2 Total Phone Transfer:
    • Gen1-to-Gen2 Total Phone Transfer v7: Download
      md5: c10cd48bbfb8e2c16384ebb49e06eb5c
  2. Unzip the Gen1-to-Gen2 Total Phone Transfer and copy (including the image folder) to the root on the SD card (NOT in any folders).
  3. Power off the ZTE Blade and pull the battery.
  4. Replace the battery. Boot into bootloader mode by holding down Volume Up, the Menu & the Power buttons.
  5. This process should take about a minute or so and once done, will automatically boot into the ClockworkMod Recovery.
    NOTE: It is recommended to delete the image directory on the root of the SD card, once the conversion has completed.
  6. Skip to last section to install CM.

Gen2 Root and Recovery (Gen2 ONLY)

  1. Download rageagainstthecage-arm5, the ZTE Drivers & the Superuser package:
    • rageagainstthecage-arm5: Download
      md5: bfa28d457b54508326ab55d11399c586
    • ZTE devices drivers 5.2066.1.8 (Windows Only): Download
      md5: ce77e04d4b6fe5a4e11a922e3d82f025
    • Superuser package: Download
      md5: 43d9a40b63e916635d5ad7ca32433fab
  2. Windows Only: Install the ZTE device drivers.
  3. Unzip rageaginstthecage-arm5 & the Superuser package to the same folder as adb (the /platform-tools folder within the Android SDK folder).
  4. Connect the ZTE Blade to the computer via USB.
  5. On the computer, open terminal and run the following commands:
    adb push rageagainstthecage-arm5.bin /data/local/tmp/
    adb shell
    chmod 777 /data/local/tmp/rageagainstthecage-arm5.bin
  6. Once the exploit finishes, in terminal, run the following commands:
    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 /system
    NOTE: For Gen 2 ROM 2.2, the "mount" command above does not work. the /system is already writable to root. Hence the "mount" could be skipped. However, we need to create the /system/xbin folder manually:
    mkdir /system/xbin
    adb push su /system/xbin/
    adb shell chmod 4755 /system/xbin/su
    adb push Superuser.apk /system/app/
  7. The ZTE Blade is now rooted, please continue to the next section.

Installing CyanogenMod from recovery

  1. Make sure your computer has working adb.
  2. Download the CyanogenMod build 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.
    • Vol Down & Power (In Case of Dell XCD35: Home & Vol Up & Power )
  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.
  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 /storage/sdcard0/
    - If you mounted /sdcard or /data, then: adb push /sdcard/
    where 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 /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 /sdcard/0/
  3. If you're coming from a ROM with Android 4.2 or newer to CyanogenMod 10.1 or newer: adb push /sdcard/0/