Download the prerequisites
The biggest problem of all the “easy root your phone” guides and HOWTOs that ship pre-packaged software is the fact that you may never be sure if the author has not tampered with the files you are about to burn your phone with. You might be leaving things rather vulnerable if they did.
So, the best is to get the files directly from the respected sources. To root your phone, you’ll need to files:
- Download the Recovery Manager file from ClockworkMod. The file should have a name recovery-clockwork-XX_VER.img
- Download the superSU zip file from from chainfire. The file is named: CWM-SuperSU-v0.98.zip
- If you do not have, then install Android SDK from Google
Unlock the phone
To do this, you’ll need to have Android SDK installed on your computer (see point 3 above). You actually do not need the full SDK, you just need one utility program: fastboot. Find it. On my mac, it is located at: YOUR_ANDROID_SDK_ROOT/platform-tools/fastboot
In your terminal window, go to SDK platform-tools folder, and execute this command:
./fastboot oem unlock
This should reboot your phone. If it doesn’t, then reboot manually, while the terminal displays the message <waiting for device>
Then just unlock your phone, and reboot bootloader. Done with volume UP and DOWN buttons, select with Power button.
Execute this command to install the recovery manager. Instead of 188.8.131.52 version, type the actual name of the file that you have downloaded in step 1 above:
./fastboot flash recovery recovery-clockwork-184.108.40.206-mako.img
Now, copy the CWM-SuperSU-v0.98.zip file to your phone (on MacOSX using the Android File Transfer utility for example).
Then, boot to recovery, by booting first to the bootloader: press Volume UP and DOWN and press the Power, when the phone shakes, release the Power button but keep Volume UP and DOWN. Then, pick Recovery and you should go into ClockworkMod recovery menu. Pick “Install ZIP file from SDCARD” option, navigate to where you have placed the file from step 2, and install the ZIP.