[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
2. TWRP[All Variants] v2.4.8.0 : Download 3. Motorola PC Drivers
To root your phone follow these steps:
Step 1: Go to Settings > About Phone > System Version. Note down your phone model name from the text.
Step 2: Else from ES File Explorer go to /system/build.prop and open it. Scroll down and find the line ro.product.name= and note down your phone model name.
Step 3: Download the appropriate zip file corresponding to your phone model name.
Step 4: Extract the zip on the desktop.
Step 5: Switch off the phone & enter into Fastboot mode by pressing & holding down Volume Down Key and Power Key together and releasing it after 3-4 seconds.
Step 6: Connect the phone to the PC via USB Cable.
Step 7: Go to the extracted zip folder and run the root-windows.bat file.
Step 8: Follow the instructions in the command window.
Step 7: After this is done, your phone will reboot and you will see BOOTLOADER UNLOCKED in red text.
Step 8: After booting completely, open App Drawer, you will see SuperSU app installed.
Step 9: Download Root Checker app from the Google Play Store to confirm.
TWRP Installation Steps:
Step 1: Download the TWRP recovery image file.
Step 2: Download Flashify app from the Google Play Store
Step 3: Open it Click on Accept and then grant SuperSU access. Go to Backup/Restore Tab and backup your current stock recovery.
Step 4: Go to Flash Tab, select Recovery Image, choose file and select the directory of downloaded TWRP image and select File Way and finally select Yup!
Step 5: After flashing is complete, click on Reboot Now to boot into TWRP
Congratulations ! You have successfully rooted and flashed TWRP recovery on your phone. SUCCESS :-) N