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

norti

Senior Member
Feb 16, 2008
817
484
93
41
Budapest
twitter.com
No matter which FTF I download/create with Flashtool, I get the following error when just flashing the FTF straight to my phone

Code:
09/048/2014 06:48:22 - ERROR - Processing of system.sin finished with errors.
09/048/2014 06:48:22 - INFO  - Ending flash session
09/048/2014 06:48:22 - ERROR - ERR_SEVERITY="MINOR";ERR_CODE="0017";ERR_DYNAMIC="8009001C";
I'm using Flashtool 0.9.18.3...

Amyone using an older version maybe?
What FTF are you trying to flash exactly? Did you by chance unlocked your bootloader? Did you try to remove and install the drivers again for your phone?

I also use the latest version without problems. If the problem persists please report it to the Flashtool thread.
 

RedSkyRoad

Senior Member
Nov 11, 2010
2,933
340
0
Johannesburg
What FTF are you trying to flash exactly? Did you by chance unlocked your bootloader? Did you try to remove and install the drivers again for your phone?

I also use the latest version without problems. If the problem persists please report it to the Flashtool thread.
I've tried the Customized DE and AU builds. All my drivers are installed. My own carrier's FTF flashes without a problem. I thing it's the FTF creation that is broken...
 

norti

Senior Member
Feb 16, 2008
817
484
93
41
Budapest
twitter.com
I've tried the Customized DE and AU builds. All my drivers are installed. My own carrier's FTF flashes without a problem. I thing it's the FTF creation that is broken...
I don't understand one thing: you wrote in another thread that you updated via OTA to the latest firmware, why don't you use then your carrier's ftf as a base, why bother with other regions? Basically they are all the same but you could run into errors when flashing baseband files...
 
Last edited:

norti

Senior Member
Feb 16, 2008
817
484
93
41
Budapest
twitter.com
OK, tried again, but this time I'm running into mount errors too with the installer... I'll create a modded recovery zip then and update the first post until @[NUT] fixes it.

UPDATE: I've updated the first post, please download the patched recovery from 3.3 and flash it through recovery. That should fix system R/W mount.
 
Last edited:
  • Like
Reactions: Ningyou Higeki

Ningyou Higeki

Senior Member
Jan 14, 2012
159
25
0
OK, tried again, but this time I'm running inot mount errors too with the installer... I'll create a modded recovery zip then and update the first post until @[NUT] fixes it.

UPDATE: I've updated the first post, please download the patched recovery from 3.3 and flash it through recovery. That should fix system R/W mount.
I just found a flashable .zip file that can fix the system mounting problem in a Chinese forum, and I decided to upload it. Seems no need anymore...:highfive:
 

nomaj

Senior Member
Apr 28, 2012
839
338
93
Yes, that should work most of the time, but how did you get proper root without installing a ric killer? Did you install the recovery with the installer?
Yes... rooted and installed recovery on PC.
But also edited recovery script... and flashed after update.
 
Nov 13, 2010
8
3
0
Tárnok
Perfect work

With the latest 4.4.4 firmware 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. I made this complete tutorial so that everyone can make an update from an FTF file. If Chainfire figures out the full root for final Android L than this tutorial will be also good for the Xperia Z2's 5.0 update too (hopefully).

This is for Windows only.

MAKE A BACKUP !!!

1.1 You need obviously an already rooted phone with [NUT]'s Dual Recovery with a previous firmware version (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 for instructions
1.2 You need Flashtool with working USB drivers.

2. Download the new FTF update file for your phone/branding.
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.6 is buggy?)
3.2 Download latest stable SuperSU update package from here. (Advanced users can try the the latest BETA SuperSU package from this thread)
3.3 Until [NUT] fixes the rickiller installer script, download XZDualRecovery's latest patched flashable version from here. You have 4 files so far:


4. Unzip PRFCreator and run it.

5. Load the FTF, SuperSU and XZDualRecovery (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.

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, you can wipe all the three.)

Exclude:
Code:
[ ] BOOTBUNDLE
[x] PARTITION
[x] TA
[ ] KERNEL
[ ] FOTA
[ ] BASEBAND
[x] SYSTEM
[ ] ELABEL
Which means system, partition and ta options are unchanged and won't be wiped/overwritten. You can exlclude 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 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 :D
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.

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, 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).
Szia, köszönöm a tökéletes munkád, újra büszke vagyok hogy MAGYARNAK születtem !!! :) Gábor
 
  • Like
Reactions: Lawrence74

ravdo

Senior Member
Mar 22, 2013
200
48
0
Can anyone confirm that PS4 remote play works on Rooted phone or not?
I want to try this method, but I need to make sure first.
Thanks :D
 

Ningyou Higeki

Senior Member
Jan 14, 2012
159
25
0
Please use english and delete the full quote, no need for it ;) Thanks!
Help! Although I have root and system R/W now, there's something wrong with my Contacts now. I can't import contacts from SIM or internal SD card, or add a new number. What should I do now?
 
Last edited:

norti

Senior Member
Feb 16, 2008
817
484
93
41
Budapest
twitter.com
Help! Although I have root and system R/W now, there's something wrong with my Contacts now. I can't import contacts from SIM or internal SD card. What should I do now?
That's not related to this topic or process. Did you make a backup of your contacts before the upgrade? If so than look for the vcf file created on your internal or external SD card, if it is still there and not corrupt.
 

Ningyou Higeki

Senior Member
Jan 14, 2012
159
25
0
That's not related to this topic or process. Did you make a backup of your contacts before the upgrade? If so than look for the vcf file created on your internal or external SD card, if it is still there and not corrupt.
Yes, I made a backup and I can find it. When I tap "Import", it says Contacts imported after the process but none is in my phone.

---------- Post added at 08:11 PM ---------- Previous post was at 07:25 PM ----------

OK, I gave up and wiped data. Things go right now. Another one hour to restore my data...
 
Last edited:

quim-net

Senior Member
Apr 21, 2011
366
139
73
Barcelona
perfect, smooth, quick, simple ...

hi

perfect, smooth, quick, simple (for beginners) no problems, a very simple way to make the upgrade to 4.4.4 I he had 4.4.2 and I have not lost my data and files from the device.

PD: root works well

thank you very much :good:
 

RedSkyRoad

Senior Member
Nov 11, 2010
2,933
340
0
Johannesburg
I don't understand one thing: you wrote in another thread that you updated via OTA to the latest firmware, why don't you use then your carrier's ftf as a base, why bother with other regions? Basically they are all the same but you could run into errors when flashing baseband files...
Hi,

The OTA does not install if there is a custom recovery. It just hangs. Thus, I deeded a 167 FTF. I finally got it working thanks. My Java was outdated and caused the FTF creation to fail. After updating java, my FTF creation included ALL the files and I could run your full process.

I just flashed your patched recovery. Should this recovery also be used to create the ZIP?
 

norti

Senior Member
Feb 16, 2008
817
484
93
41
Budapest
twitter.com
Hi,

The OTA does not install if there is a custom recovery. It just hangs. Thus, I deeded a 167 FTF. I finally got it working thanks. My Java was outdated and caused the FTF creation to fail. After updating java, my FTF creation included ALL the files and I could run your full process.

I just flashed your patched recovery. Should this recovery also be used to create the ZIP?
Good to hear that! Yes, you should use the patched recovery for creating pre-rooted updates.
 
  • Like
Reactions: RedSkyRoad
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone