[Xperia Z General] SurenderK:
Hi Everyone,

Recently I have updated my XZ to lollipop 5.0.2 and after updating the Root is lost. I have been struggling to Root the latest firmware and finally I managed to get it rooted. I am posting the instructions so that it might help anyone.

I have a Locked Bootlaoder but it should also work with Unlocked Bootloader.

This has been tested on Xperia Z C6602, Lollipop 5.0.2 (FW: 10.6.A.0.454) and I will not be responsible if you try it on other device and if you do not follow the instructions carefully and accidently mess up with your phone.

Prerequisites

1. Upgrade to Lollipop 5.0.2.

2. Install drivers and configure ADB on your PC.

3. Enable USB debugging on your phone and Allow installation of apps from unknown sources under security settings.

Read the instructions carefully before proceeding.

Steps:-

1. Go to my google drive link and download the data.zip file. https://drive.google.com/file/d/0B1LQ910-5UYpNk5udEF4Qnd6T2M/view

2. Extract the contents into your working ADB directory (where adb.exe is located).

3. Connect your phone to PC via USB cable.

3. Copy KingRoot-4.1.0.249.apk file to your phone. Install the apk and run it. Make sure you are connected to internet as the KingRoot tool uses internet connection to download suitable exploit for your device on the go. After you run it, click Try Root option and let it complete till 100%. It will confirm that Rooting is successful. Now your phone is rooted.

If you do not like KingRoot and KingUser (for any reason) and want to switch to SuperSU then follow these steps:

1. Make sure you have extracted all the apps from data.zip into ADB directory. Browse to your ADB directory, press & hold Shift Key on Keyboard then right click on empty space to open context menu and select Open command window here. In command windows, type “adb devices” without quotes. You should be able to see your device listed. Then type the following commands carefully in same order (copy paste is better way to prevent any typo )

adb push su /data/local/tmp

adb push busybox /data/local/tmp

adb shell

2. You will be taken to a shell prompt with $ sign. In the shell type the following commands and keep your eye on your phone, when prompted, give the access permission:

su

mount -o remount,rw /system

cat /data/local/tmp/su >/system/xbin/daemonsu && chmod 0755 /system/xbin/daemonsu

cat /data/local/tmp/busybox >/system/xbin/busybox && chmod 0755 /system/xbin/busybox

daemonsu -d &

Leave the command Window running and do not disconnect your phone while you continue with the rest of steps.

3. Open the KingUser app in your phone, open settings (at the top right corner) and click Root authorization setting and then Remove Root permission. The app will be uninstalled automatically.

4. Uninstall the other two remaining KingRoot apps from your phone (KingRoot and the other one with Chinese language and the blue icon).

5. Go back to the Command window running adb, and type the following commands:

cat /data/local/tmp/su > /system/xbin/su && chmod 0755 /system/xbin/su

busybox chattr -ia /system/xbin/ku.sud

busybox chattr -ia /system/xbin/supolicy

busybox chattr -ia /system/xbin/pidof

rm /system/xbin/ku.sud

rm /system/xbin/supolicy

rm /system/xbin/pidof

rm /system/bin/debuggerd

rm /system/bin/debuggerd_real

rm /system/bin/debuggerd64

busybox chattr -ia /system/bin/install-recovery.sh

busybox chattr -ia /system/bin/rt.sh

rm /system/bin/install-recovery.sh

rm /system/bin/rt.sh

busybox chattr -ia /system/bin/.usr/.ku

rm -rf /system/bin/.usr

rm /system/usr/icu/icusuflag.conf

busybox chattr -ia /system/usr/iku/isu

rm -rf /system/usr/iku

rm /system/kroot_*

rm /sdcard/kr-stock-conf

rm -rf /sdcard/Kingroot

Again leave this command window running and do not disconnect your phone.

6. Copy Superuser.apk file (from extracted data.zip folder) into phone’s sdcard.

7. Go to your phone and Install Superuser.apk, Run it and let it update the SU binary.

8. Reboot your phone and enjoy the ROOT access on your latest Android 5.0.2 Lollipop. :D