FORUMS

[FTF] Sony Xperia Z Lollipop Release

Sony rolled out a Lollipop update for Xperia Z just yesterday. If you still haven’t gotten … more

Original Moto G Receives Lollipop, OTA Captured

The original Moto G was released almost two years ago. Motorola still continues to … more

Device Review: No.1 X1 Rugged Smartphone

We are almost at the end of Q2 for 2015, and we have seen most of the flagship phones for the … more

When a Friend or Family Member Asks for a Phone Recommendation, What Do You Tell Them?

The majority of us here at XDA would consider … more
Post Reply Subscribe to Thread Email Thread

[4.4.4/5.0.2][LB] Create ROOTED update package from stock FTF (Windows)

8th November 2014, 03:38 PM |#1  
norti's Avatar
OP Senior Member
Flag Budapest
Thanks Meter: 395
 
More
With the latest 4.4.4/5.0.2 firmwares not directly rootable you need to download or create an update package with root and recovery and update your system via recovery. This won't delete your data and root will be there on 4.4.4/5.0.2. I made this complete tutorial so that everyone can make an update from an FTF file.

THIS IS FOR LOCKED BOOTLOADER and/or STOCK KERNEL ONLY !!!

MAKE SURE YOU HAVE A BACKUP !!!
LOLLIPOP is new and thus not bug free !!!

1.1 You need obviously an already rooted phone with [NUT]'s DualRecovery installed and working (this can be achieved on firmwares with Android 4.4.2.)
If you don't have the recovery, you can install it from here: [Z2][TWRP][PhilZ Touch][CWM] XZDualRecovery Q&A see post #2 there for instructions. 2.8.12 and later should work on KitKat and Lollipop too!
1.2 You need Flashtool with working USB drivers (Make sure flashmode works - which means the drivers are properly installed on your system - before you start this tutorial).

2. Download the new FTF update file with 4.4.4/5.0.2 for your phone/branding. Use the same customization version (xxxx-xxxx) that is on your phone now!
This you can do with Flashtool (Devices/Check Updates menu) or download it from the [FTF] STOCK FIRMWARES for Xperia Z2/Z2a (D65x3/D6502/SO-03F) thread.
(Alternative option for advanced users: XperiFirm -> you can create an FTF from the downloaded firmware files with Flashtool.)

3.1 Download PRFCreator v0.5.zip from [TOOL] PRFCreator - easily create pre-rooted firmwares. V0.7/0.8 may work, but I couldn't test it. You are always safe with v0.5.
3.2 Download latest stable SuperSU update package from here.
3.3 Download XZDualRecovery's latest - 2.8.14 - flashable version (Z2-lockeddualrecovery2.8.x-RELEASE.flashable.zip) from here (XZDualRecovery section).

Please be aware, that the rickiller script - that makes system R/W - may only work on these firmware revisions only:
Quote:

14.2.A.0.290,14.2.A.1.114,14.2.A.1.136,14.3.A.0.68 1,14.3.A.0.757,14.4.A.0.108,14.4.A.0.157
17.1.1.A.0.402,17.1.2.A.0.314,17.1.2.A.0.323
23.0.1.A.0.167,23.0.1.A.3.9,23.0.1.A.4.30,23.0.1.A .4.44,23.0.1.A.5.77,23.0.A.2.105,23.0.A.2.106,23.0 .A.2.93,23.0.A.2.98,23.0.F.1.74
23.1.A.0.690,23.1.A.0.726


You will have 5 files so far:
Quote:

PRFCreator v0.5.zip
D650x_23.x.1.A.x.xxx_Telekom_HU.ftf (with different name and firmware version number)
UPDATE-SuperSU-v2.46.zip
Z2-lockeddualrecovery2.8.x-RELEASE.flashable.zip

4. Unzip PRFCreator and run it.

5. Load the FTF, SuperSU and Z2-lockeddualrecovery (flashable) zip files into the three section.

6. Uncheck all the Include options [ ], we don't need them, we will flash them with Flashtool after the update. I think it's still safer to flash kernel, baseband, boot and other system critical parts of the firmware from Flashtool.
(But if you want to include them anyway then you can skip part 11 and start your phone normally.)

7. Push Create. After it's finished (wait for the Create button to be available again), you'll find a flashable.zip in the folder of PRFCreator.
Check the contents of the zip file, it should look like this with PRFCreator v0.5:
Code:
META-INF
busybox
system.ext4
dualrecovery.zip
SuperSU.zip
If something is missing, redo the process from step #4 until all is there.

8. Copy flashable.zip to the internal/external SD card of your phone.

9. Boot your phone into recovery (TWRP recommended).

10. Install flashable.zip in recovery. After finished DO NOT REBOOT !!! Clear Cache/Dalvik only and go back to Home and choose Reboot/Power off.

11. Start Flashtool and with the Flash device icon flash the kernel and other baseband files from the FTF in Flashmode.

Use the following configuration (or similar):

Wipe:
Code:
[ ] APPSLOG
[ ] CACHE
[ ] DATA
Which means nothing is wiped, this is good for a system update only, that reserves your settings, applications and data. (If you want a clean system or run into errors after updating only the system, you can wipe all the three.)

Exclude:
Code:
[ ] BOOTBUNDLE
[x] PARTITION
[x] TA -> not always present in the FTF file, but if you see it, then put an x here, just to be sure, you don't simlock your device
[ ] KERNEL
[ ] FOTA
[ ] BASEBAND
[x] SYSTEM
[ ] ELABEL
Which means system, partition and ta options are unchanged and won't be wiped/overwritten. You can exclude fota, elabel and baseband too, but some phone functions may be limited. Always use your phone's original customization version when choosing FTFs. Never exclude = never check (x) kernel. It is the main reason we're flashing this.

Code:
[x] No final verification
[ ] Reset customization
Connect the micro USB to your phone and get ready with the other end of the cable in your hand
Push Flash button.
Push the Volume down button and connect the USB cable to the computer's USB port. Wait until Flashtool begins with the flashing and you can release the Volume button now.
When finished, unplug the the phone, start it and wait until it completes the first boot. After it is fully working, check SuperSU and if you can mount system R/W too (in Root Explorer or in other root file manager).

ENJOY another rooted version of Android I can give support only for this process, for the tools you need to ask your questions in the appropriate threads above.

Thanks to @zxz0O0 for creating the PRFCreator and the Lollipop fixes, it makes things easier in this process (you don't need to mess with linux mounts, virtual machines and other scripts copying system images and recovery updates to a zip).
Last edited by norti; 25th April 2015 at 08:40 AM. Reason: updated instructions for latest XZDualRecovery
The Following 134 Users Say Thank You to norti For This Useful Post: [ View ]
 
 
8th November 2014, 03:53 PM |#2  
quim-net's Avatar
Senior Member
Flag Barcelona
Thanks Meter: 137
 
More
hi
I look forward to your work to install on my z2

Last edited by quim-net; 5th May 2015 at 08:04 PM.
The Following 2 Users Say Thank You to quim-net For This Useful Post: [ View ]
8th November 2014, 05:28 PM |#3  
zxz0O0's Avatar
Senior Member
Thanks Meter: 2,793
 
Donate to Me
More
Nice guide. Please let me know the bugs in PRFCreator v0.6 (you can drop me a pm as I don't have a lot of time for xda at the moment). Also, is step 12 really necessary? Dualrecovery should already be included in the flashable zip (same for step 11 if you include those files).
8th November 2014, 05:29 PM |#4  
Senior Member
Thanks Meter: 36
 
More
Will downgrading 4.4.4 to 4.4.2 without wiping data cause a bootloop?
8th November 2014, 05:32 PM |#5  
ArbiterGR's Avatar
Senior Member
Flag Athens
Thanks Meter: 96
 
More
Quote:
Originally Posted by ravdo

Will downgrading 4.4.4 to 4.4.2 without wiping data cause a bootloop?

Yes. At least that's what i'm getting. And i'm currently stuck because my last TiBu backup is months old :/ bummer...
8th November 2014, 05:36 PM |#6  
norti's Avatar
OP Senior Member
Flag Budapest
Thanks Meter: 395
 
More
Quote:
Originally Posted by zxz0O0

Nice guide. Please let me know the bugs in PRFCreator v0.6 (you can drop me a pm as I don't have a lot of time for xda at the moment). Also, is step 12 really necessary? Dualrecovery should already be included in the flashable zip (same for step 11 if you include those files).

I didn't use the v0.6 because more people complained in the tool's thread about it. V0.5 is working, I can test v0.6 later (maybe tomorrow).
Dualrecovery is included with the flashable.zip but the RIC killer isn't working in that version, it needs to be installed again with the PC installer. Maybe someone (I mean @[NUT] ) could clean up the process
Last edited by norti; 8th November 2014 at 05:46 PM.
The Following User Says Thank You to norti For This Useful Post: [ View ]
8th November 2014, 05:37 PM |#7  
Ningyou Higeki's Avatar
Member
Thanks Meter: 4
 
More
Thx! This is really useful for noobs like me!
8th November 2014, 05:52 PM |#8  
ptmaniac's Avatar
Senior Member
Thanks Meter: 44
 
More
Hi zxz0O0, the updater script is looking for 3 files in /utils but when the zip is created on 0.6 those files remain in the root of the zip so you get error when flashing. i think that's the problem with 0.6 but i can be wrong as i didn't test it
The Following User Says Thank You to ptmaniac For This Useful Post: [ View ]
8th November 2014, 06:00 PM |#9  
Ningyou Higeki's Avatar
Member
Thanks Meter: 4
 
More
Quote:
Originally Posted by norti

I didn't use the v0.6 because more people complained in the tool' thread about it. V0.5 is working, I can test v0.6 later (maybe tomorrow).
Dualrecovery is included with the flashable.zip but the RIC killer isn't working in that version, it needs to be installed again with the PC installer. Maybe someone (I mean @[NUT] ) could clean up the process

http://forum.xda-developers.com/show...&postcount=130
It may be an alternative for Step 12 to modify the flashable dualrecovery .zip file as the post of the link above, I think.
8th November 2014, 06:06 PM |#10  
norti's Avatar
OP Senior Member
Flag Budapest
Thanks Meter: 395
 
More
Quote:
Originally Posted by ptmaniac

Hi zxz0O0, the updater script is looking for 3 files in /utils but when the zip is created on 0.6 those files remain in the root of the zip so you get error when flashing. i think that's the problem with 0.6 but i can be wrong as i didn't test it

Please use his thread for error reporting, thanks!

Quote:
Originally Posted by Ningyou Higeki

http://forum.xda-developers.com/show...&postcount=130
It may be an alternative for Step 12 to modify the flashable dualrecovery .zip file as the post of the link above, I think.

I don't want to change [NUT]'s recovery installers (everyone can edit scripts if wants), this may be a longer process but more user friendly.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes