This rooting method is deprecated. Use TWRP for Z5C instead.
I have rooted my Z5 Compact and figured you might want a short how-to.
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.
@Tommy-Geenexus for Zombie kernel
@AndroPlus for Z5 recovery and guidance
@Chainfire for SuperSU
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]
fastboot flash boot zombie_b1_fixed.img
Now, reboot your phone to bootloader again (see info how to at the end of post).
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
Boot to bootloader by adb command:
adb reboot bootloader