Update to 5.1 with locked bootloader, without losing root? - Xperia Z2 Q&A, Help & Troubleshooting

I'm running stock 5.0.2 Build 23.1.A.1.28. My bootloader is locked again (was unlocked for CM 12), TA Partition is woking. Can I update to latest 5.1 Build 23.4.A.0.546 without loosing root?

[email protected] said:
I'm running stock 5.0.2 Build 23.1.A.1.28. My bootloader is locked again (was unlocked for CM 12), TA Partition is woking. Can I update to latest 5.1 Build 23.4.A.0.546 without loosing root?
Click to expand...
Click to collapse
There is a way
Use PRF creator to create a pre-rooted zip of your chosen update
Make sure to install recovery for LB and also to add it to your PRF zip
Flash it and enjoy your new update.

Something gone wrong.
I downloaded Sony PC Companion to get the update files.
Then I created FTF following this tutorial:
http://forum.xda-developers.com/xperia-z/development/noobs-guide-create-stock-firmware-ftf-t2188129
I choosed to include all: Kernel, FOTAKernel, Modem and LTALabel
At Step 3 I selected
Device: Sony Xperia Z2 D6503
Version: 23.4.A.0.546
Branding: Unbranded
Then I created a PRF
http://forum.xda-developers.com/crossdevice-dev/sony/tool-prfcreator-easily-create-pre-t2859904
I used:
New created FTF
philz_touch_6.41.6-sirius-v01-FW_402-DooMLoRD.zip
UPDATE-SuperSU-v2.46.zip
Then I put flashable-prerooted.zip to external SD, rebooted to philz Touch and installed ZIP from SD. Recovery finished without error, so I rebooted my device.
But after reboot it still show Android 5.02 under Settings -> About device, root seems to work, but busybox doesn't work anymore and worst of all, I don't have recovery anymore.
Any idea, what happend?

[email protected] said:
I'm running stock 5.0.2 Build 23.1.A.1.28. My bootloader is locked again (was unlocked for CM 12), TA Partition is woking. Can I update to latest 5.1 Build 23.4.A.0.546 without loosing root?
Click to expand...
Click to collapse
Do You have already 23.4.A.0.546 ftf for z2?

mr.loverlover said:
Do You have already 23.4.A.0.546 ftf for z2?
Click to expand...
Click to collapse
Damn. I didn't look at this while converting to ftf, thought pc companion will always load the latest regardless of provider when choosing the repair option.
Ok that was my fault. But why did this break my busybox and recovery?
I got it fixed with Z2-lockeddualrecovery2.8.15-RELEASE.installer, which also flashed busybox.

Related

[Q] Dead Z2

Hi gusy, yesterday i received my vodafone Z2, 6503, DE. I succeeded in taking an backup of that TA partitions, unlocked my bootloader and had root afterwards on firmware .323.
In Detail:
->stock D6503_17.1.2.A.0.323_Vodafone DE
->root by Easy Root Kit
->TA Backup
->unlocked bootloader
->TA Recovery
->Installed Z2-lockeddualrecovery2.7.XXX-BETA.installer.zip from here :
So far so good. Stock rom with root (checked with root checker) and able to enter the recovery using quickboot
-> copied newest CM11 nightly + gapps
-> entered TWRP Recovery
-> Factory Reset (ink wipe)
-> flashed CM11
and now... not even a SONY Logo, only vibrating. Ideas? Thanks a lot!
Edit: I was able to restore the 323 FW with the flashtool and stock image. The question is... how to get CM11 now without bricking the device
Krautmaster said:
Hi gusy, yesterday i received my vodafone Z2, 6503, DE. I succeeded in taking an backup of that TA partitions, unlocked my bootloader and had root afterwards on firmware .323.
In Detail:
->stock D6503_17.1.2.A.0.323_Vodafone DE
->root by Easy Root Kit
->TA Backup
->unlocked bootloader
->TA Recovery
->Installed Z2-lockeddualrecovery2.7.XXX-BETA.installer.zip from here :
So far so good. Stock rom with root (checked with root checker) and able to enter the recovery using quickboot
-> copied newest CM11 nightly + gapps
-> entered TWRP Recovery
-> Factory Reset (ink wipe)
-> flashed CM11
and now... not even a SONY Logo, only vibrating. Ideas? Thanks a lot!
Edit: I was able to restore the 323 FW with the flashtool and stock image. The question is... how to get CM11 now without bricking the device
Click to expand...
Click to collapse
You can use flashtool, but you needed before a ftf rom.
Find a guide how to flash a rom with flashtool
giancaleone said:
You can use flashtool, but you needed before a ftf rom.
Find a guide how to flash a rom with flashtool
Click to expand...
Click to collapse
thx, I already found out and its good to know that reverting to stock is that easy ^^ ill keep the stock with root for now. thx a lot
Krautmaster said:
Hi gusy, yesterday i received my vodafone Z2, 6503, DE. I succeeded in taking an backup of that TA partitions, unlocked my bootloader and had root afterwards on firmware .323.
In Detail:
->stock D6503_17.1.2.A.0.323_Vodafone DE
->root by Easy Root Kit
->TA Backup
->unlocked bootloader
->TA Recovery
->Installed Z2-lockeddualrecovery2.7.XXX-BETA.installer.zip from here :
So far so good. Stock rom with root (checked with root checker) and able to enter the recovery using quickboot
-> copied newest CM11 nightly + gapps
-> entered TWRP Recovery
-> Factory Reset (ink wipe)
-> flashed CM11
and now... not even a SONY Logo, only vibrating. Ideas? Thanks a lot!
Edit: I was able to restore the 323 FW with the flashtool and stock image. The question is... how to get CM11 now without bricking the device
Click to expand...
Click to collapse
->TA Backup
->unlocked bootloader
->TA Recovery
Recovering yout TA locks your bootloader again... and you can't use CM11 on locked bl keep your BL unlocked for CM, restore TA only if you need to go to stock or send phone to warranty.

flash older kernel in order to root latest firmware (23.0.1.A.0.167)?

Hi!
Somebody in a different forum suggested that it might be possible to root the latest firmware (23.0.1.A.0.167) by downgrading the kernel (http://forum.xda-developers.com/showpost.php?p=56590546&postcount=1224).
Can anybody confirm this method to work?
I purchased my Z2 tablet yesterday and was foolish enough to believe that I can upgrade to the latest firmware and still root my device (with a locked bootloader).
Greetings
MJFox
MJFox78 said:
Hi!
Somebody in a different forum suggested that it might be possible to root the latest firmware (23.0.1.A.0.167) by downgrading the kernel (http://forum.xda-developers.com/showpost.php?p=56590546&postcount=1224).
Can anybody confirm this method to work?
I purchased my Z2 tablet yesterday and was foolish enough to believe that I can upgrade to the latest firmware and still root my device (with a locked bootloader).
Greetings
MJFox
Click to expand...
Click to collapse
It doesn't work. You end up to bootloop. However you can flash prerooted firmware in custom recovery and have fully rooted device.
kulvertti said:
It doesn't work. You end up to bootloop. However you can flash prerooted firmware in custom recovery and have fully rooted device.
Click to expand...
Click to collapse
In order to do so I have to unlock my bootloader and with that I'm going to lose my drm keys, right?
MJFox78 said:
In order to do so I have to unlock my bootloader and with that I'm going to lose my drm keys, right?
Click to expand...
Click to collapse
No. If you easy root and install the dual recovery beforehand you flash from that.
But easy root doesn't seem to work with the latest firmware, they closed the vulnerability that easy root is using
MJFox78 said:
But easy root doesn't seem to work with the latest firmware, they closed the vulnerability that easy root is using
Click to expand...
Click to collapse
Easy Root Tool works just fine with .314 firmware. So if you are now on latest .167 firmware, downgrade to .314, root it, install custom recovery and flash prerooted flashable.zip in custom recovery. Done.
kulvertti said:
Easy Root Tool works just fine with .314 firmware. So if you are now on latest .167 firmware, downgrade to .314, root it, install custom recovery and flash prerooted flashable.zip in custom recovery. Done.
Click to expand...
Click to collapse
Ah, I didn't know it's possible to downgrade the firmware
So I need the firmware flash tool and a ftf file of the 167 firmware, right?
And it can be done without root and a locked bootloader?
Sorry for all the newbie questions, I'm coming from HTC devices and it's a little different there
Greetings
MJFox
MJFox78 said:
Ah, I didn't know it's possible to downgrade the firmware
So I need the firmware flash tool and a ftf file of the 167 firmware, right?
And it can be done without root and a locked bootloader?
Sorry for all the newbie questions, I'm coming from HTC devices and it's a little different there
Greetings
MJFox
Click to expand...
Click to collapse
You need:
- latest Flashtool with drivers installed correctly for your device
- some working custom recovery
- Easy root tool
- ftf file you need is 314 firmware of you device where you have to downgrade to easily root it
- prerooted zip file included you device 167 firmware, SuperSu install files and latest dualrecovery install files.
You don´t need unlocked bootloader for this. Point of downgrading is to achieve root easily that you can have root with 167 firmware? Or do you mean that can you achieve root on 314 firmware without having it before? If so, yes you can with Easy root tool.
kulvertti said:
You need:
- latest Flashtool with drivers installed correctly for your device
- some working custom recovery
- Easy root tool
- ftf file you need is 314 firmware of you device where you have to downgrade to easily root it
- prerooted zip file included you device 167 firmware, SuperSu install files and latest dualrecovery install files.
You don´t need unlocked bootloader for this. Point of downgrading is to achieve root easily that you can have root with 167 firmware? Or do you mean that can you achieve root on 314 firmware without having it before? If so, yes you can with Easy root tool.
Click to expand...
Click to collapse
thanks for your efforts!
in the meantime I managed to downgrade the firmware to 314, successfully root and backup TA
I installed superSU from the play store and it is telling me that I need to update the binaries and I can choose between "normal" (which doesn't work) or through "twrp/cwm"
I didn't install any custom recovery yet, so I'm not sure how to move on from now
should I install dual recovery (from here: http://forum.xda-developers.com/showthread.php?t=2785598), after flash the latest supersu from recovery and finally flash prerooted zip file?
do I need custom recovery to flash the prerooted 167 firmware?
or should I just run the OTA to get 167 firmware (will the device still be rooted after the update)?
please advice
MJFox
MJFox78 said:
thanks for your efforts!
in the meantime I managed to downgrade the firmware to 314, successfully root and backup TA
superSU is telling me that I need to update the binaries and I can choose between "normal" (which doesn't work) or through "twrp/cwm"
I didn't install any custom recovery yet, so I'm not sure how to move on from now
should I install dual recovery (from here: http://forum.xda-developers.com/showthread.php?t=2785598), after flash the latest supersu from recovery and finally flash prerooted zip file?
or should I just run the OTA to get 167?
please advice
MJFox
Click to expand...
Click to collapse
Good to here you achievment. If you can´t update SuperSu binaries by "normal" way easiest might be to flash SuperSu latest update from custom recovery. I recommend dual recovery from your link and when installed use TWRP.
So install dualrecovery, flash latest SuperSu and then prerooted zip. If you end up without write permissions to system here might be solution for that.
http://forum.xda-developers.com/showpost.php?p=56616135&postcount=52
kulvertti said:
Good to here you achievment. If you can´t update SuperSu binaries by "normal" way easiest might be to flash SuperSu latest update from custom recovery. I recommend dual recovery from your link and when installed use TWRP.
So install dualrecovery, flash latest SuperSu and then prerooted zip. If you end up without write permissions to system here might be solution for that.
http://forum.xda-developers.com/showpost.php?p=56616135&postcount=52
Click to expand...
Click to collapse
I installed dual recovery and flashed your prerooted zip from the other thread - everything works perfect, thanks a lot for your efforts! :good:
greetings
MJFox

some flashing questions

I have some questions regarding flashing new firmwares on the phone.
Currently I have firmware version 23.0.1.A.0.167, if I downgrade to 17.1.A.2.69 firmware using Flashtool, do I exclude the TA partition from being flashed? If I don't exclude the TA partition while downgrading will it wipe my DRM keys?
If I install custom recovery, will I still be able to receive OTA updates or updates via PC Companion? If I do receive them will they install successfully?
If I downgrade, root, install custom recovery and flash back to the 4.4.4 firmware, when 5.0x firmware is released, will I be able to install that without losing my data and root? Or will I be able to keep both?
The general steps to gaining root on the Z2 now with .167 firmware is to downgrade to .69 (exclude TA partition), run towelroot/easy root, install custom recovery, flash pre-rooted .167 (exclude TA again). Will I have to repeat them for 5.0 update? Does root persist between firmware updates?
If anyone can confirm my thoughts it would be great. Thank you guys!
chaose said:
I have some questions regarding flashing new firmwares on the phone.
Currently I have firmware version 23.0.1.A.0.167, if I downgrade to 17.1.A.2.69 firmware using Flashtool, do I exclude the TA partition from being flashed? If I don't exclude the TA partition while downgrading will it wipe my DRM keys?
If I install custom recovery, will I still be able to receive OTA updates or updates via PC Companion? If I do receive them will they install successfully?
If I downgrade, root, install custom recovery and flash back to the 4.4.4 firmware, when 5.0x firmware is released, will I be able to install that without losing my data and root? Or will I be able to keep both?
The general steps to gaining root on the Z2 now with .167 firmware is to downgrade to .69 (exclude TA partition), run towelroot/easy root, install custom recovery, flash pre-rooted .167 (exclude TA again). Will I have to repeat them for 5.0 update? Does root persist between firmware updates?
If anyone can confirm my thoughts it would be great. Thank you guys!
Click to expand...
Click to collapse
flashing TA with a FTF doesnt wipe your DRM keys
recovery i dont know if OTA verifies the fotakernel partition
it will fail anyways if you have a custom kernel or modified system
you cant update if your bootloader is unlocked but relocked you can for some reason regardless of if you restored your TA backup
you wont be able to upgrade without losing root because after upgrading you will have to reroot
downgrade to 314 or before, root, backup your DRM keys, do what you want
you dont have to keep updating your drm keys because they never change
got it. thanks !!
For downgrading to 4.4.2, is it possible to do it without an wipe of the apps and data?
Which partitions should I exclude when downgrading to 4.4.2?
Envious_Data said:
you wont be able to upgrade without losing root because after upgrading you will have to reroot
Click to expand...
Click to collapse
That really depends on how you want to upgrade, right?
The magical thing about the z2 is we'll always have root. once lollipop comes out we would just need to create a rooted flashable zip and flash in recovery.
o0 Matt 0o said:
That really depends on how you want to upgrade, right?
The magical thing about the z2 is we'll always have root. once lollipop comes out we would just need to create a rooted flashable zip and flash in recovery.
Click to expand...
Click to collapse
Yup
Im going to have my phone rooted nearly imediately after lolipop comes anyway

Want rooted Marshmallow...helf plz

hi ..
i m on official unrooted MM..i want rooted MM ..
if i flash a pre rooted tft in flashtool directly without downgrading,will it work for me or give me bootloop etc?
help plz
You must downgrade. It is fast and easy. Also, you CANNOT flash a modified .ftf firmware.
cachanilla86 said:
You must downgrade. It is fast and easy. Also, you CANNOT flash a modified .ftf firmware.
Click to expand...
Click to collapse
downgrading only to lollipop will work or i have to must downgrade to kitkat?
saayil said:
downgrading only to lollipop will work or i have to must downgrade to kitkat?
Click to expand...
Click to collapse
It is easier on kit kat build 314, because the old XZDR (Z2-lockeddualrecovery2.8.21-RELEASE.installer) roots and installs the recovery in one step. When the phone reboots you can install a Marshmallow ROM and that's it.
cachanilla86 said:
It is easier on kit kat build 314, because the old XZDR (Z2-lockeddualrecovery2.8.21-RELEASE.installer) roots and installs the recovery in one step. When the phone reboots you can install a Marshmallow ROM and that's it.
Click to expand...
Click to collapse
i have downgraded to ,314 but now unable to download Z2-lockeddualrecovery2.8.21 from nut website,,,plz give me some other link
Required Bootloader Unlocked! This process deletes the DRM
download kernel, supersu and DRM
kernel: https://drive.google.com/file/d/0Bwn7bAJ-USZjZzg0Q2I2RWlWa1U/view
supersu: https://download.chainfire.eu/932/SuperSU/BETA-SuperSU-v2.71-20160331103524.zip
DRM: http://forum.xda-developers.com/crossdevice-dev/sony/xperia-z1-z2-z3-series-devices-drm-t2930672
first install kernel
*unpack and flash boot.img via fastboot
*run cmd
cmd Code:
fastboot flash boot boot.img
after flash supersu and drm keys
start recovery and flash zip files

How to aproach update to 34.A.0.228

I have Sony Xperia F5122 model.
Phone has TWRP and it's rooted. It has Magisk 14.0 for hidden root. I don't remember if I installed a kernel.
It's curently running build 34.2.A.2.69. version. Now xperia system update is getting all up in my nortification bar to update the software to 34.A.0.228. When I try to update it trough the phone it fails every time. I assume this is because I have TWRP not original recovery. How do I update without losing my data? I was thinking of flashtool but I don't know which boxes to tick for wipe and exclude. I have original firmware from xperifirm and compiled with flashtool.
Leonardsleim said:
I have Sony Xperia F5122 model.
Phone has TWRP and it's rooted. It has Magisk 14.0 for hidden root. I don't remember if I installed a kernel.
It's curently running build 34.2.A.2.69. version. Now xperia system update is getting all up in my nortification bar to update the software to 34.A.0.228. When I try to update it trough the phone it fails every time. I assume this is because I have TWRP not original recovery. How do I update without losing my data? I was thinking of flashtool but I don't know which boxes to tick for wipe and exclude. I have original firmware from xperifirm and compiled with flashtool.
Click to expand...
Click to collapse
you can use flashtool, exclude fotakernel so you'll keep twrp. After flashing rom use magisk app to get root or create and flash a rooted kernel
kistigun said:
you can use flashtool, exclude fotakernel so you'll keep twrp. After flashing rom use magisk app to get root or create and flash a rooted kernel
Click to expand...
Click to collapse
I realized that I can't or don't know how to get into fastboot because I have TWRP.
Ok now I remembered how to get into fastboot. Now I don't have root. Twrp asks for a decryption password which I don't know. Installing supersu from flash didn't do anything.

Categories

Resources