[TESTED ON WINDOWS 7/8/8.1]
I have made this tutorial for those users who want to root and install custom recovery like CWM/TWRP/PhilZ on their phones running on 5.0.2 Official Stock ROM. I have tried the conventional rooting method.
Download SuperSU Zip + TWRP image + Fastboot drivers > Boot into Fastboot Mode > Type fastboot flash recovery TWRP.img > Boot into TWRP > Select SuperSU zip > Flash zip > Reboot.
Unfortunately this fails in Lollipop 5.0.2. The reason is there is a script file in /system directory recovery-from-boot.p that gets executed everytime amd that flashes stock recovery after every boot. So what happens is, after flashing TWRP and booting into recovery mode, the TWRP doesnt get booted up. Instead stock recovery gets flashed. Chainfire has made a working root method to root the phone.
How does it work?
The zip contains a modified kernel (boot image) that is booted up temporarily and pushes the SU apk and SU binary into /system. After the files are pushed and the permissions are set, the phone reboots. So here the phone is 1st rooted and then TWRP is flashed via Flashify app. This method can also be used to flash other recoveries like CWM/PhilZ.
Warning:
1. For those users who have their bootloader LOCKED, this will unlock the bootloader and void your WARRANTY !
2. After unlocking the bootloader your phone will be erased. Your installed apps and data in internal storage will be wiped !
3. Before proceeding make sure you backup your apps. contacts, SMS and move your data from internal storage to external storage like sdcard or PC.
4. For those users who have their bootloader already unlocked need not worry as this process wont wipe anything from the device.
You need:
1. Chainfire Auto-Root Zips
- [XT 1063] titan_retuglb : Download
- [XT 1068] titan_retailde : Download
- [XT 1068] titan_retaildsds : Download
3. Motorola PC Drivers