This blog post explains how I managed to install CyanogenMod to a ZTE Blade phone (both Gen 1 and Gen 2). Please note that there can be multiple solutions, some of them working only on some phone submodels. The solution I give here did work on the model I had.
Pick one of the methods below.
Method one: without rooting the phone (recommended)
This method is recommended, because it is the more straightforward and safer method. Although its description is longer than of method two, doing method one is faster.
You will need a USB cable to connect the phone to a computer and an SD card in the phone.
Instructions:
- Make a backup of your data on the phone, this page has some suggestions how (don't use Titanium Backup though, because that needs a rooted phone). You may safely skip this step if you don't have any SMS, phone call log entry, application data, application configuration etc. to save (e.g. because the phone is new and you haven't customized it yet).
- Make sure you know your wifi connection credentials (e.g. network name, security type, passphrase).
- Make sure you know your Google account name (e-mail address) and password.
- On the phone: Settings » Applications » Development » enable USB Debugging.
- On the phone: Settings » Applications » enable Unknown sources – Allow installation of non-Market applications
- Install the Ask Mr Pigfish application from the Market, run Ask Mr Pigfish, and see it displaying the generation number of your phone (gen1 or gen2). Take a not on paper containing the generation number.
- Install the adb and the fastboot tools to your computer. For Linux, see How to install instructions below. For Windows or Mac, see this page. Another download for fastboot is on this page.
- The command lines in following instructions are for Linux. Do it similarly on Mac and Windows (e.g. instead of wget, use your browser or download manager to download the file).
- Download the ClockworkMod recovery with
wget -O /tmp/recovery-clockwork-3.0.1.4-blade.img http://android.d3xt3r01.tk/cyanogen/blade/recovery/recovery-clockwork-3.0.1.4-blade.img
- Download the latest version of CyanogenMod from this page. When these instructions were written, the equivalent download command was:
wget -O /tmp/update-cm-7.0.0-RC4-Blade-signed.zip http://mirror.cyanogenmod.com/get/update-cm-7.0.0-RC4-Blade-signed.zip
- Download the latest version of Google Apps from this page. When these instructions were written, the equivalent download command was:
wget -O /tmp/gapps-gb-20110307-signed.zip http://android.d3xt3r01.tk/cyanogen/gapps/gapps-gb-20110307-signed.zip
- If already connected, disconnect the phone from the computer.
- Remove the SIM card from the phone if you don't have a data plan. This is to prevent the unconfigured CyanogenMod from making expensive data transfers before the wifi is configured. This needs powering off your phone first.
- Power the phone back on and wait for it to start up.
- Connect the phone to the computer using the USB cable. The phone should display a notification that an USB cable is connected (and possibly another notification that USB debugging is enabled).
- Run
adb devices
on the computer, it should display something likeList of devices attached Blade-CM7 device
- Copy the CyanogenMod ZIP file to the SD card by running
adb push /tmp/update-cm-7.0.0-RC4-Blade-signed.zip /sdcard/cm.zip
- Copy the Google Apps ZIP file to the SD card by running
adb push /tmp/gapps-gb-20110307-signed.zip /sdcard/gapps.zip
- To prevent data loss below, make sure the phone is fully charged. You can charge it quickly if you connect it to a wall socket instead of a computer.
- If you have a gen1 phone and you want to install CyanogenMod 7.0.1 or later, then upgrade your phone to gen2 by following the How to upgrade a gen1 phone to gen2 and start ClockworkMod recovery below. Otherwise, follow these instructions:
- Reboot the phone to fastboot mode by running
adb reboot bootloader
- Wait for about 20 seconds until the phone reboots into bootloader mode, showing only the green android logo on the screen. (If your phone boots normally a few seconds later, then this method has failed for you, please choose another method to install CyanogenMod to your phone. You may try removing the battery, reinserting the battery, holding the Volume Up key on the phone, and powering on the phone while Volume Up is still held.)
- Run
fastboot flash recovery /tmp/recovery-clockwork-3.0.1.4-blade.img
- Run
fastboot reboot
- Wait for the phone to start up and detect that the USB cable is connected.
- Run
adb reboot recovery
(this should take about 5 seconds). - Wait for about 5 seconds until the phone reboots into recovery mode, running the ClockworkMod recovery.
- Reboot the phone to fastboot mode by running
- Your phone should be running ClockworkMod recovery now. It should display ClockworkMod Recovery v3.0.1.4 (or a larger version number) and a menu below, starting with reboot system now. Use the Volume Up and Volume Down keys to navigate the menu up or down. Navigate to the advanced item, use the Home button to select it. Use the Back button to go back to the main menu.
- Select the main menu option Wipe data/factory reset
- Select the main menu option Wipe cache partition
- Select the main menu option Install zip from sdcard
- Select the menu option Choose zip from sdcard
- Select cm.zip . This will install CyanogenMod.
- Go back to the main menu. Select the main menu option Install zip from sdcard
- Select the menu option Choose zip from sdcard
- Select gapps.zip . This will install Google Apps.
- Go back to the main menu.
- Select the main menu option reboot system now
- CyanogenMod should be booting now. Configure everything for your needs.
- Use the Menu button to configure the wifi first (i.e. below you enter your Google account password).
- CyanogenMod might ask you which Google applications to install. If unsure, select all of them. After you make your selection, CyanogenMod will take you the Market page of all these applications. Accept and install them one by one.
- If you don't have a data plan, make sure you configure the phone so it won't accidentally make data transfers.
- Reinsert the SIM card. This needs powering off your phone first.
How to install adb and fastboot on Linux
# You might need to use anoter package manager for installation: $ sudo apt-get install wget unzip $ wget -O /tmp/linux_adb_fastboot.zip \ http://android.d3xt3r01.tk/cyanogen/tools/linux_adb_fastboot.zip $ (cd /usr/local/bin && sudo unzip /tmp/linux_adb_fastboot.zip) $ sudo killall -9 adb # This starts the daemon. `sudo' is not necessary on some systems. $ sudo /usr/local/bin/adb devices
How to upgrade a gen1 phone to gen2 and start ClockworkMod recovery
Don't follow these steps unless you are asked to by another step in this howto.
Please note that these instructions apply only to gen1 (1st generation) ZTE Blade models. Doing it on any other phone (i.e. on a gen2 ZTE Blade or any phone other than a ZTE Blade) will most probably make the device useless beyond repair. You can use the Ask Mr Pigfish application (available from the Android Market) to check if you have a gen1 ZTE Blade.
Please note that by following these instructions, not only the configuration and user data, but the operating system will also be removed from the phone. (But the contents of the SD card will remain intact.) To make your (gen2) device useful after these instructions, you should already have an operating system installer ZIP file (e.g. cm.zip above) already on the SD card.
Instructions:
- Download the ZIP file Gen1-to-Gen2-TPT-v2.zip from here. The download link can also be found in the section Update to Gen2 Radio of this page.
- Unzip the contents of the ZIP file to the SD card, so there should be a folder named image in the root folder of the SD card, and that folder should contain 17 files, from amss.mbn to userdata.img . Make sure that the image folder is in the root folder of the SD card. The easiest way to do this is connecting your phone to the computer using the USB cable, mounting the SD card (using the notification area of the phone), and running a ZIP file extractor on the computer. Disconnect the drive from the computer, and umount the SD card when done.
- Make sure the phone is fully charged.
- Disconnect the phone from the computer and the charger.
- Turn off the phone (by long pressing the power button).
- Remove the battery.
- Reinsert the battery.
- Hold the volume up and menu buttons. Don't release them yet.
- (Before doing this, read the next instruction step.) Push the power button to turn the phone on.
- Text in green would start appearing on a black background. Release the volume up and menu buttons.
- More text in green would start appearing with some indication of progress percentage. Wait for 30 seconds until its done.
- The phone boots to ClockworkMod Recovery .
Method two: rooting the phone first
You will need an SD card in the phone.
Outline (see the detailed instructions in the links below):
- Make a backup of your data on the phone. (See in method two below.)
- Make sure you know your wifi connection credentials (e.g. network name, security type, passphrase).
- Make sure you know your Google account name (e-mail address) and password.
- Root the phone.
- Install the ROM Manager application (from the Android Market).
- Install ClockworkMod recovery using the ROM Manager application. (This step needs a rooted phone.)
- Download the CyanogenMod update ZIP file (and possibly the Google Apps ZIP file) to the
/sdcard
. - To prevent data loss below, make sure the phone is fully charged. You can charge it quickly if you connect it to a wall socket instead of a computer.
- Remove the SIM card from the phone if you don't have a data plan. This is to prevent the unconfigured CyanogenMod from making expensive data transfers before the wifi is configured. This needs powering off your phone first.
- Use the ROM Manager application to start the ClockworkMod recovery.
- Within ClockworkMod recovery, wipe the phone.
- Within ClockworkMod recovery, install the CyanogenMod update ZIP file (and possibly the Google Apps ZIP file)
- Within ClockworkMod recovery, reboot the phone.
- CyanogenMod should be booting now. Configure everything for your needs.
- If you don't have a data plan, make sure you configure the phone so it won't accidentally make data transfers.
- Reinsert the SIM card. This needs powering off your phone first.
All these steps worked for me as explained in detail on the official install CyagnogenMod to ZTE Blade page, except for rooting the phone. That page and also most other web sites instruct the user to reboot the fastboot mode by holding the Volume Up key while powering up the phone. This didn't work for me, because my ZTE Blade had fastboot disabled (so it always booted normally). So I had to find another way to root the phone. The instructions on this page (those containing tinyurl.com/urooted) worked for me. These instructions use a version of the Universal Androot application specialized to the ZTE Blade. Please note that Universal Androot claims that the phone is already rooted — just ignore this message and root it anyway. Please also note that during the installation process you have to re-root the phone using Universal Androot each time you reboot the phone. So if ROM Manager complains that your phone is not rooted, then just run Universal Androot again, and then retry in ROM Manager.
Performance
If the phone feels slow and games are not enjoyable, then tune the performance settings:
- Make sure that the latest version of CyanogenMod (at least 7.0.0 without RC in the version number) is installed. Get the newest version of the ZIP file from here. Copy the ZIP file to the (root of the) SD card. Reboot the phone to recovery mode (using
adb reboot recovery
or the ROM Manager application). In recovery mode, clear the cache and then select the update file (the ZIP file), install it, and reboot the phone. - Make sure that Application / Settings / CyanogenMOD Settings / Performance / Enable surface dithering is off.
- In Application / Spare Parts make sure that all animations are disabled.
- There seems to be no need for enabling GPU acceleration (
debug.sf.hw=1
in/system/build.prop
), CyanogenMod seems to be fast without it.
Orange is getting smart, and changed the mod to prevent the above methods to complete.
ReplyDeleteHowever after applying the Hungarian TPT (http://android.modaco.com/content/zte-blade-roms-rom-customisation/327684/28-mar-guide-update-to-unlock-256mb-devices-to-512mb-gen1/) I could perform the above steps.
I had trouble to figure where to get the fastboot binary from: http://developer.htc.com/google-io-device.html
Thanks for the great tutorial!
This comment has been removed by the author.
ReplyDeleteI installed CM 7.0.3 on my Blade, but it took me less than 24 hours to remove it. It is extremely unstable, freezing or rebooting all the time especially while charging via the USB cable...
ReplyDeleteThis is what I recommend instead:
http://android.modaco.com/content/zte-blade-roms-rom-customisation/334849/rom-froyo-swedish-spring-rls5-2011-04-19-oled-tft-gen1-gen2/
It is only Android 2.2, but it has been rock stable so far, and has many nice featues built-in, in some cases in a better way than in CM (for example: 3G data can be turned toggled from the desktop directly).
Is this guide for a gen 2 Zte Blade?
ReplyDelete@Marci: Thanks for the other link to fastboot. I would be happy to include your Hungarian TPT link to the tutorial as well, but it's not obvious for me where to insert it. So I'm keeping it as is now.
ReplyDelete