This rooting method is deprecated. Use TWRP for Z5C instead.
Old post:
I have rooted my Z5 Compact and figured you might want a short how-to.
Disclaimer
I am well aware that this is not the nicest method of rooting, but I got the phone a few hours ago and haven't got the time to put together a better way.
Credits
@Tommy-Geenexus for Zombie kernel
@AndroPlus for Z5 recovery and guidance
@Chainfire for SuperSU
Guide
First, you need to unlock you bootloader (I know, I know, now stop weeping


)A rooted device does not boot using default kernel, so you need to install an insecure kernel.
I am using a repacked Zombie b1 kernel, with a small modification (wrong owner on all files in ramdisk).
All credits fly out to @Tommy-Geenexus : [Kernel][Sony5.x][Z5C]Zombie[13.10.15]
Flash using:
fastboot flash boot zombie_b1_fixed.img
fastboot reboot
Now, reboot your phone to bootloader again (see info how to at the end of post).
Then issue:
fastboot boot recovery.img
Thanks to @AndroPlus for TWRP code.
The phone will boot to a black screen, but you can connect to it using ADB.
You need to manually mount the system and userdata partition by issuing:
adb shell mount /dev/block/platform/soc.0/by-name/system /system adb shell mount /dev/block/platform/soc.0/by-name/userdata /data
mount: mounting /dev/block/platform/soc.0/by-name/system on /system failed: No such file or directory
You probably just need to wait a while and try again.
You can also try this command (and then re-enter the mount commands above):
adb shell mount adb shell cat /proc/partitions
adb push UPDATE-SuperSU-v2.46.zip /data/media/0/ adb shell twrp install /data/media/0/UPDATE-SuperSU-v2.46.zip adb shell rm /data/media/0/UPDATE-SuperSU-v2.46.zip
adb reboot
zombie_b1_fixed.img
recovery.img
Extra info
Boot to bootloader by adb command:
adb reboot bootloader





I live on a Stone Hill.
Linear Mode