[Xperia Tablet Z General] najoor:
Root Lollipop for Xperia tablet Z & add SuperSU without downgrading to Kitkat + ftf

** DISCLAIMER: I AM NOT A DEVELOPER. I DO THIS AS A HOBBY AND SHARE MY FINDINGS IN CASE SOMEONE ELSE FINDS THEM USEFUL. **

** THIS WORKED ON MY DEVICE BUT IT MAY NOT WORK ON YOURS. APPLY AT YOUR OWN RISK **​

You don't need to have root to apply this procedure. Your bootloader doesn't have to be unlocked.

This has been tested with SGP311, 10.6.A.0.454, Lollipop 5.0.2, Customized TW version, but it should work fine on any other customization of 10.6.A.0.454.

This procedure installs superSU root binaries and busybox on your system.

Requirements

1- Upgrade to Lollipop 5.0.2. Either flash an ftf using flashtool or if you are in a region where the update is available take the OTA. You can get the unmodified Customized TW version from here.

2- Make sure your PC can communicate with your tablet via adb.

The success of this method depends on following the procedure very carefully. So read the instructions and make sure you understand every step before you try it.

Procedure

1- Install and run Kingroot 4.0. You can google and download it or you can use the one in the attached zip file. When Kingroot runs it is all in Chinese, but basically you need to be connected to the internet for it to work. It will do its thing and show progress up to 100% after which you can exit the program. Now your phone is rooted. The following steps replaces the Kinguser with SuperSU.

2- Unzip the attached file in your adb directory and then open an adb terminal and make sure the PC can see your phone (you can check that by typing adb devices). Then type the following:

adb push su /data/local/tmp
adb push busybox /data/local/tmp
adb shell

3- In the shell that you get type the following and make sure you give the access permission when the tablet prompts you:

su

4- Continue by typing the following commands:

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 &

The key is to keep this session running while you continue with the rest, so be careful with typos and monitor this window for any errors.

5- At this point, leave the adb terminal window running and go to your tablet, open the Kinguser app, open settings (the wheel at the top right corner of the screen), Root authorization setting, and Remove Root permission. The app may self-uninstall.

6- In any case, after this is done, uninstall the two or three remaining Kingroot apps that are still on your tablet (Kinguser, KingRoot, and the other one with the blue icon and Chinese text under it).

7- Back to the adb terminal, and type the following:

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
mv /system/bin/debuggerd_real /system/bin/debuggerd
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

rm -rf /data/data-lib/com.kingroot.RushRoot
rm -rf /data/data-lib/com.kingroot.kinguser
rm -rf /data/data-lib/king

Again, leave the adb terminal window running and go to your tablet.

8- Install superSU (from the attached file) on your phone, run it, and let it update the SU binary.

9- Reboot the tablet. After about 5 minutes your root is ready.

Troubleshooting

If you get this error: "can't stat /system/bin/debuggerd no such file or directory" the solution is here: http://xdaforums.com/showpost.php?p=61386604&postcount=31

Download link

http://xdaforums.com/attachment.php?attachmentid=3307248&d=1431343293