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


Some devices do not have removable SD cards. Regardless, there should still be a partition on the device named "/sdcard" that can be used for flashing purposes, even though the contents of /sdcard may actually be in internal storage.

  1. Download the prebuilt release of CyanogenMod you wish to install. (Or if you've built CM yourself, look in the $OUT directory for the .zip.)
    Optional: Download any supplemental 3rd-party applications packages for the device you wish to use.
  2. Place the CyanogenMod rom .zip file on the root of the SD card using adb:
    • Transfer your file(s): adb push /sdcard/
      • If you boot directly to recovery and have an internal sdcard, you may need to run adb shell mount /sdcard or mount data through the recovery menu before transferring.
      • If you see "error: device not found" there is likely a driver issue on the PC.
      • If you see "error: insufficient permissions for device", try "adb kill-server" and then run "adb devices" to see if the device is attached.
      • On some devices, the zip file can be copied to the device using standard USB Mass Storage or MTP support. Boot the device normally and transfer the file to it.
    Optional: Place any supplemental packages (e.g. Google Apps[1] or kernel) .zip file(s) on the root of the SD card.
  3. Boot to recovery mode on the device by holding Vol Down & Power.
  4. Once the device boots into the ClockworkMod Recovery, use the physical volume buttons to move up and down. On most devices, the power button is used to confirm your selection, although for some devices the power button is used as a "back" button to go up one level, in which case the home button is used to confirm the selection.
    Optional/Recommended: Select backup and restore to create a backup of the current installation on the device. If this option is missing, it's likely because the stock ROM has overwritten your custom recovery on boot.
  5. Select the option to wipe data/factory reset.
  6. Select install zip from sdcard.
  7. Select choose zip from sdcard.
  8. Select the CyanogenMod file you placed on the sdcard. You will then need to then confirm that you do wish to flash this file.
    Optional: Install any additional packages you wish using the same method.
  9. Once the installation has finished, return back to the main menu, and select the reboot system now option. The device should now boot into CyanogenMod.