FORUMS
Remove All Ads from XDA

Dirty ROOT solution - for unlocked BL

293 posts
Thanks Meter: 188
 
By nilezon, Senior Member on 25th October 2015, 09:01 PM
Post Reply Email Thread
I have ported the Z5 Compact root method to Z5.

Please note that both recovery.img and kernel img are different from the Z5 Compact thread. Do not use recovery or kernel for Z5 Compact on your regular Z5 phone.

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 have repacked stock Z5 (32.0.A.4.11) kernel to disable Sony RIC, dm verity, make it insecure, etc.
Flash using:
Code:
fastboot flash boot z5_stock_fixed.img
Reboot your phone using:
Code:
fastboot reboot
And verify that it works as expected.

Now, reboot your phone to bootloader again (see info how to at the end of post).
Then issue:
Code:
fastboot boot recovery.img
This recovery is partly broken, but it works well enough to install root.
Thanks to @AndroPlus for TWRP.

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:
Code:
adb shell mount /dev/block/platform/soc.0/by-name/system /system
adb shell mount /dev/block/platform/soc.0/by-name/userdata /data
If you get this error:
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 usually have to wait ~120 sec for the mount to work. Be patient.

If you got /system and /data to mount, you can now push SuperSU to the phone and install it:
Code:
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
If it all works, just reboot and enjoy root:
Code:
adb reboot
Files
z5_stock_fixed.img
recovery.img (for Z5)

Extra info
Boot to bootloader by adb command:
Code:
adb reboot bootloader
or by turning off the phone, and then hold down VOL UP while plugging in the USB cable.
The Following 16 Users Say Thank You to nilezon For This Useful Post: [ View ] Gift nilezon Ad-Free
 
 
25th October 2015, 09:06 PM |#2  
Azdian's Avatar
Senior Member
Thanks Meter: 74
 
More
works like a charm, finally I can use my Z5 =)
thank you mate.
25th October 2015, 10:06 PM |#3  
Senior Member
Flag NYC, PA, CT, MA
Thanks Meter: 65
 
More
Awesome, do we need to backup TA partition anymore to keep X-Reality etc?
25th October 2015, 11:04 PM |#4  
Azdian's Avatar
Senior Member
Thanks Meter: 74
 
More
Quote:
Originally Posted by komugi

Awesome, do we need to backup TA partition anymore to keep X-Reality etc?

You need to unlock the bootloader, so I don't think you can backup the TA partition.
The Following User Says Thank You to Azdian For This Useful Post: [ View ] Gift Azdian Ad-Free
26th October 2015, 07:44 AM |#5  
Jesmugge's Avatar
Member
Flag Copenhagen
Thanks Meter: 6
 
More
Does this change anything in the kernel? Will battery life be the same?
26th October 2015, 10:48 AM |#6  
rohorubo's Avatar
Senior Member
Flag Bottmingen
Thanks Meter: 327
 
Donate to Me
More
If you unlock yourbootloadeR TA partition it lost forever! You can't get it back and things like x-reality won't work anymore.

Gesendet von meinem E6653 mit Tapatalk
26th October 2015, 11:59 AM |#7  
koziakauzu's Avatar
Senior Member
Hong Kong
Thanks Meter: 27
 
More
We know that, but it must have a way (yet to find?) to backup and restore the TA partition just like previous devices (it was possible on Z and Z1, don't know about the others)

Sent from my E6653
27th October 2015, 03:29 PM |#8  
Senior Member
Thanks Meter: 14
 
More
are there unlocked bootloader Z5s? how do we check if our bootloader is locked?
27th October 2015, 07:48 PM |#9  
Duvel999's Avatar
Senior Member
Thanks Meter: 243
 
More
GOOGLE

Go to calls,enter *#*#7378423#*#* and go to service info-configuration.

Sent from my E6653 @ XDA Portal
28th October 2015, 06:07 AM |#10  
Member
Thanks Meter: 9
 
More
I ran through these instructions, and I now have root privileges, but I can't write to /system. Is there something I missed to enable this, or does this just not work?

Sent from my E6653 using Tapatalk
28th October 2015, 08:40 AM |#11  
OP Senior Member
Thanks Meter: 188
 
More
Quote:
Originally Posted by mindstormsguy

I ran through these instructions, and I now have root privileges, but I can't write to /system. Is there something I missed to enable this, or does this just not work?

Sent from my E6653 using Tapatalk

You need to mount /system as read/write (default: read-only).
You can use an app or shell command to do this.
For example:
http://forum.xda-developers.com/wiki...Terminal#Mount
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes