[LB] Create ROOTED update package from stock FTF (Windows) - Xperia Z2 General

With the latest 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 5.x.x. 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 !!!​
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 and 5.0.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, especially on Windows 8/8.1/10 - before you start this tutorial).
2. Download the newest FTF update file 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 thread.
(Alternative option for advanced users: XperiFirm -> you can create an FTF from the downloaded firmware files with Flashtool.)
3.1 Download PRFCreator v1.1.zip from [TOOL] PRFCreator - easily create pre-rooted firmwares.
3.2 Download latest stable SuperSU update package from here.
3.3 Download XZDualRecovery's latest - 2.8.23 - flashable version (Z2-lockeddualrecovery2.8.xx-RELEASE.combined.zip) from here (XZDualRecovery section).
You will have 5 files so far:
PRFCreator v0.5.zip
D650x_23.x.1.A.x.xxx.ftf (with different name and firmware version number)
UPDATE-SuperSU-v2.46.zip
Z2-lockeddualrecovery2.8.x-RELEASE.flashable.zip
Click to expand...
Click to collapse
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.)
There is a Legacy mode option in the latest version. Without it PRFCreator will use a direct sin flashing method for system update. If you check the legacy option it will use the older repack method for system. The direct sin flashing should work in most cases if not then use the legacy option.
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:
data
META-INF
system
utils
partition-image.sin
system.sin
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. If you want to go for 100% working root and recovery copy UPDATE-SuperSU-v2.46.zip and Z2-lockeddualrecovery2.8.x-RELEASE.flashable.zip there too.
9. Boot your phone into recovery (use TWRP!).
10. Install flashable.zip in recovery. After finished DO NOT REBOOT !!!
*Optional step: install SuperSU and Recovery again so if something went wrong during the system flashing you'll still have a working recovery.
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
[ ] 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.
TA -> not always present in the FTF file, but if you see it, then EXCLUDE it, just to be sure, you don't simlock your device
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).

hi
I look forward to your work to install on my z2
:good:

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).

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

ravdo said:
Will downgrading 4.4.4 to 4.4.2 without wiping data cause a bootloop?
Click to expand...
Click to collapse
Yes. At least that's what i'm getting. And i'm currently stuck because my last TiBu backup is months old :/ bummer...

zxz0O0 said:
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).
Click to expand...
Click to collapse
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

Thx! This is really useful for noobs like me!

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

norti said:
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
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=56542112&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.

ptmaniac said:
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
Click to expand...
Click to collapse
Please use his thread for error reporting, thanks!
Ningyou Higeki said:
http://forum.xda-developers.com/showpost.php?p=56542112&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.
Click to expand...
Click to collapse
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.

Hi,
Stuck in a ****ing bootloop.. How do I recover?

Puffin617 said:
Hi,
What will happen if I tick RESET CUSTOMIZATION as well?
Click to expand...
Click to collapse
It will reset your phone to factory state after flashing the firmware. If you want a clean update (here we don't) only then you should use this option.

Puffin617 said:
Hi,
Stuck in a ****ing bootloop.. How do I recover?
Click to expand...
Click to collapse
Flash a previous ftf (not 4.4.4), root it, install recovery and restore your backup.
Did you got any errors during the process?

norti said:
Flash a previous ftf (not 4.4.4), root it, install recovery and restore your backup.
Did you got any errors during the process?
Click to expand...
Click to collapse
During the flashing of the ZIP (before FTF), there was something that failed (set_perm) but it still said SUCCESSFUL... But I want a clean update. Can I clean DATA at least?

Puffin617 said:
During the flashing of the ZIP (before FTF), there was something that failed (set_somethingorother) but it still said SUCCESSFUL... But I want a clean update. Can I clean DATA at least?
Click to expand...
Click to collapse
Of course, I'll put this in the OP as an option.

@norti, I tried EVERYTHING again. This does NOT work. Bootloop...
When flashing the Zip, I get an error with the set_perm:
Please link a pre-rooted ROM which has NOT been de-odexed or de-bloated...
PS: After selecting to turn off the phone, it tells me "the phone does not seem to be rooted. Do I want to root" Do I need to select to root it?
---------- Post added at 11:26 PM ---------- Previous post was at 11:18 PM ----------
I get the following when flashing the FTF as-is:
08/025/2014 23:25:54 - ERROR - Processing of system.sin finished with errors.
08/025/2014 23:25:54 - INFO - Ending flash session
08/025/2014 23:25:54 - ERROR - ERR_SEVERITY="MINOR";ERR_CODE="0017";ERR_DYNAMIC="8009001C";

now where is that "Thanks" button located.....

Succeeded!!! But I can't make system R/W, though I do as Step 12... Any ideas?

Can someone please link me a good FTF?

Puffin617 said:
Can someone please link me a good FTF?
Click to expand...
Click to collapse
Where did your FTF on your computer NOW come from?

Related

How-to: root, keep and backup DRM keys, etc. [KitKat/Lollipops/Marshmallow/etc.]

By almost popular demand, making this a thread
This is a how-to root, install recovery, backup drm keys, etc. from scratch in a single thread since finding all threads can be daunting. That's basically all the things you generally want to do when you root the phone (WITHOUT UNLOCKING THE BOOTLOADER).
TL;DR - overview
If you know what you're doing, you really just need to read this part of the post. If you're unsure, read the step-by-step instead.
If you're running Android 6.0.1 MM with firmware .291 (and probably any other future firmware), want to root without unlocking the bootloader more quickly than the method below refer to this post: http://forum.xda-developers.com/z3-compact/general/recovery-root-mm-575-lb-t3418714 (get all 3 zips, rename the kernel zips to .ftf, flash kernel575.ftf with flashtool - reboot - enable dev mode, run bat script - reboot in recovery and flash supersu.zip - flash kernel291.ftf, reboot, done (for future versions you'll want to only flash the kernel from sony's ftf after rooting)
Downgrade the firmware, as the root exploit only works with older firmware such as 23.0.A.2.93.
Run the root exploit to get root
Backup the DRM keys
Upgrade the firmware to the latest version, while retaining root access (or by using a pre-rooted images that nice people made)
In the process, we'll install DualRecovery and SuperSu (having the custom recovery is what allows you to keep root as it let you flash a modified image that has SuperSU on it)
See the FAQ at the bottom in case you need additional help, about mounting /system read-write, fixing the sdcard issues, etc. These are not directly related to the rooting process, but you most likely want to perform these tasks anyway.
Step by step instructions
Read instructions carefully, there's many steps, making this slightly complex.
Ensure you backed up everything you need (files/apps/pictures/etc) first, these will be lost! - YOUR PHONE WILL BE WIPED.
-- FW DOWNGRADE AND INSTALL WITH FLASHTOOL --
Downgrade fw to 23.0.A.2.93 (Device D5803) or anything prior to 23.0.1.A.5.77 (december fw)
Global:https://mega.nz/#F!wdEG3aiD!Ej2S4hcMKGPgnmGudvAegg (look for 23.0.A.2.93) (or see http://forum.xda-developers.com/showpost.php?p=66275977&postcount=2030 for more links if this one no longer works)
Get and install Flashtool at http://www.flashtool.net/index.php
Move the fw into the C:/Flashtool/firmwares directory
Open Flashtool, click on the lightning symbol ("flash device"), select "Flashmode" and click on "OK"
Just select the name of the fw you downloaded and click on "Flash"
Wait for a window to pop up (it may take a few minutes, be patient)
Now everything is ready: turn off your phone
Push the volume DOWN button, connect the USB cable to your PC while still pushing the volume DOWN button
Once the flashing process has started, release the volume button
) Do not disconnect the USB cable, wait until flash completes (flashtool will indicate when you can unplug).
-- ROOTING W/ EXPLOIT --
Enable USB debugging on the phone (Settings => About phone => Click 7 times on Android Build to unlock developer options)
Allow mock locations (Settings => Developer Settings)
Ensure you have adb drivers installed (http://support.sonymobile.com/gb/tools/pc-companion/ don't use it to update
Download rooting tool (http://forum.xda-developers.com/devdb/project/dl/?id=10766&task=get) or latest from http://forum.xda-developers.com/crossdevice-dev/sony/giefroot-rooting-tool-cve-2014-4322-t3011598)
Unzip the rooting tool
Connect phone to your computer
Put phone in airplane mode
Run install.bat from the rooting tool (allow USB debugging when asked on the phone every time, also allow root prompt) and follow instructions from the tool
You should be rooted now, if you get an error "Device not rooted" trying running the tool once more
-- Backup DRM keys/TA Partition --
Get backup ta tool from https://github.com/DevShaft/Backup-TA/releases
Unzip it!
Ensure phone is still connected (or reconnect it)
Run Backup-TA.bat
Read the information and follow the instructions given by the tool.
-- Install latest firwmare with root, DRM keys, recovery --
Alternative 1: pre-made pre-rooted image (for fast internet, slow pc
Get a pre-rooted image:
For KitKat - fw 23.0.1.A.5.77 (android 4.4. dec 2014) at http://forum.xda-developers.com/z3-...ist-pre-rooted-firmwares-6-oct-2015-t32188206 then skip directly to step 33.
Or, for Lollipop - fw 23.1.A.0.690 (Android 5.0 March 2015) at http://forum.xda-developers.com/z3-compact/development/list-pre-rooted-firmwares-6-oct-2015-t3218820 then skip directly to step 33.
Or, for Marshmallow - fw 23.5.A.1.291 (Android 6.0 June 2016) at https://mega.nz/#!0JUA2DzR!5-5Tz1BRr3gkvrt_loqHzePsgfSeGKCD07xhQzugl4w or http://forum.xda-developers.com/z3-compact/development/list-pre-rooted-firmwares-6-oct-2015-t3218820 then skip directly to step 33.
Alternative 2, for newer fw for example - build your own pre-rooted image (fast pc, slower internet:
Get PRFC from http://forum.xda-developers.com/crossdevice-dev/sony/tool-prfcreator-easily-create-pre-t2859904
Get latest fw from http://forum.xda-developers.com/z3-compact/general/list-stock-firmwares-d5803-d5833-t2906706
Get latest SuperSU zip http://download.chainfire.eu/supersu
Get DualRecovery zip (the flashable zip, not the installer one) from http://nut.xperia-files.com/ you want Z3C-lockeddualrecoveryX.Y.Z-RELEASE.flashable.zip
Start PRFC and add the 3 zip (FTF file is the fw, SuperSU and Recovery)
Click "create" - this will take a while
Copy resulting "pre-rooted" fw to /sdcard0 on your phone (it means copy flashable.zip from the PRFC directory to the "internal storage" directory of the phone)
Get Dual Recovery installer this time, from http://nut.xperia-files.com/ you want Z3C-lockeddualrecoveryX.Y.Z-RELEASE.installer.zip notice how thats 'installer' this time, not the same file as in 30!
Unzip it
start install.bat and follow instructions (hit 1 (allow adb/root on the phone as needed)
You should be in recovery automatically now. (if not, reboot and when the LED change colors push volume UP repeatedly)
Flash the pre-rooted fw (flashable.zip) from the recovery (touch "install zip", select /storage/sdcard1/flashable.zip then confirm install) on the phone, then power off the phone (DO NOT REBOOT)
To power off, go into the "power options" and hit "power off" (dont do "reboot in flashmode" DO power off)
Unplug USB (yes this is required, DO IT)
Open Flashtool and select the non-pre-rooted fw (this is 23.5.A.1.291 for example), but DESELECT system: in "EXCLUDE" make sure you check the checkbox next to "SYSTEM", flash it.
press volume DOWN and plug USB cable while keeping volume DOWN pressed, when flashing starts, stop pressing the volume button
After flash is done and when flashtool tells you to, remove USB cable and start the phone
Congrats and enjoy, you made it to the end! you now have latest + recovery + root and backups of your DRM keys! (and of course all DRM functions enabled)
FAQ
- Some root apps don't work, because /system can't be remounted rw, what's up with that?
Sony has a special in kernel protection that disallow remounting /system read-write, even for root. Flash this in recovery (copy it to the sdcard and reboot in recovery with volume UP pressed, then install it): https://github.com/dosomder/SonyRICDefeat/raw/master/RICDefeat.zip
- I unlocked my boot loader, or lost my DRM keys some other way AFTER backing up as per above procedure. How to restore?
plug USB back in
re-enable usb debugging on the phone (Settings => About phone => Click 7 times on Android Build to unlock developer options)
Start backup TA again but this time hit restore
- I messed somewhere, phone doesn't boot or work properly, what to do!
unplug USB
if phone is on, long press the power button+volume UP until the phone turns off
go back to step 1 of the how to, follow the how to! Mainly - the howto makes you setup flashtool again, then boot the phone in flash mode with volume key and plugging in the USB cable.
- I forgot to backup DRM keys (backup ta program) but I never unlocked the bootloader, is it bad?
nope you're fine, just back them up now
- I really lost my DRM keys, can I recover them?
No you can't. But you can recover the features by using some modified software. Look for "DRM Fix" for example here.
- I don't want to wipe my phone!
Uncheck "data" before downgrading and then before upgrading in flashtool. You will get some errors when downgrading, which will go away when you revert back to .77 at the end of the process
This is at your own risk, data still risk being deleted if something goes wrong
Depending on the apps, etc. you have, there is a chance that some app would not work properly at the end of the process without a full wipe. If that's the case, you might need to go in settings>applications and "delete data" for that app.
- Some apps can't write to the sdcard!
install/run this https://play.google.com/store/apps/details?id=nextapp.sdfix&hl=en
- I don't have SuperSu on marshmallow+ ?!
It just didnt install properly into /system. That's ok. Just install it from the play store - you do have the su binary installed in /system so this will work
- Does this work on my SO-02G (Xperia Z3C Docomo NTT version) ?
@pngoc256 tested and yes, it works
- Does this work with lollipop (Android 5.0)?
- Does this work with Marshmallow (Android 6.0)?
- Will this work with Nougat (Android 7.0)?
- Will this always work?! (yes probably)
Yes.
If when doing the final reboot its stuck on the loading screen the first time, reboot again a last additional time with power + volume UP.
People who did the hard work/references thanks to them:
@istux (fw list, flashtool how to http://forum.xda-developers.com/z3-compact/general/list-stock-firmwares-d5803-d5833-t2906706)
@xzx0O0 (root exploit: http://forum.xda-developers.com/crossdevice-dev/sony/giefroot-rooting-tool-cve-2014-4322-t3011598)
@DevShaft (backup ta http://forum.xda-developers.com/showthread.php?t=2292598)
@serajr (install .77 fw http://forum.xda-developers.com/showpost.php?p=58395100&postcount=71)
dosomder (kmod for sony's RIC) https://github.com/dosomder/SonyRICDefeat
Everything worked. Thanks a ton!
Thanks for the detailed explanation with links, very thorough and helpful.
MODS PLEASE STICKY THIS THREAD, might just be the most important thread in the Z3 Compact forum.
If you're having trouble with step 34 opening a command prompt in the files folder, try pressing shift and right click on or in the "files" folder, you should see "Open command window here"
Unrelated: what's the purpose of steps 40-43 (reflashing non pre-rooted FW)?
Thanks for this manual, managed to get it work. Although if I start xposed, I get the error it can't mount the system partition. Titanium Backup works perfect. It seems the system partition is read only still? Any solution very welcome. Once again many thanks to the hard working people behind this exploit
wowz, it's finally here!!!
madlive said:
Thanks for this manual, managed to get it work. Although if I start xposed, I get the error it can't mount the system partition. Titanium Backup works perfect. It seems the system partition is read only still? Any solution very welcome. Once again many thanks to the hard working people behind this exploit
Click to expand...
Click to collapse
Follow this: http://forum.xda-developers.com/showpost.php?p=58400277&postcount=228
This is why I love this community, thanks mate, that completely fixed it
adamk7 said:
If you're having trouble with step 34 opening a command prompt in the files folder, try pressing shift and right click on or in the "files" folder, you should see "Open command window here"
Unrelated: what's the purpose of steps 40-43 (reflashing non pre-rooted FW)?
Click to expand...
Click to collapse
its here in case you need to restore DRM keys. for example if you unlocked your boot loader, or messed up something somewhere.
madlive said:
Thanks for this manual, managed to get it work. Although if I start xposed, I get the error it can't mount the system partition. Titanium Backup works perfect. It seems the system partition is read only still? Any solution very welcome. Once again many thanks to the hard working people behind this exploit
Click to expand...
Click to collapse
Fastest i found is to flash https://github.com/dosomder/SonyRICDefeat (the zip in there). its an extra protection on the sony kernel that makes /system non-remountable r/w, this module takes care of it. above post method would also work.
Hello,
Thanks a lot for this thread, but you made a typo in the step 37, in the command to remount /system: "mount -o remount,rw /system" instead of "mount -oremount,rw /system".
Had I known you were going to post such detailed instructions, I would have waited and saved tons of time!
Very helpful indeed, kudos for your work
steps 40-43
adamk7 said:
If you're having trouble with step 34 opening a command prompt in the files folder, try pressing shift and right click on or in the "files" folder, you should see "Open command window here"
Unrelated: what's the purpose of steps 40-43 (reflashing non pre-rooted FW)?
Click to expand...
Click to collapse
I think you are not suppose to open your phone until you flash the prerooted firmware since it says to turn off and not reboot. I dont know the purpose but still gonna follow.
---------- Post added at 04:58 AM ---------- Previous post was at 04:56 AM ----------
I just want to ask if its ok to flash a non-prerooted firmware that was not based on, or was not used to make the prerooted firmware that i will flash earlier in the step?
Any tips on backing up data before flashing .93?
bilboa1 said:
its here in case you need to restore DRM keys. for example if you unlocked your boot loader, or messed up something somewhere.
Fastest i found is to flash https://github.com/dosomder/SonyRICDefeat (the zip in there). its an extra protection on the sony kernel that makes /system non-remountable r/w, this module takes care of it. above post method would also work.
Click to expand...
Click to collapse
I flashed the zip in the recovery, but I still can't unintall the apps! I'm sure I have root because greenify and xposed works.
Since i have dual recovery now on my z3 compact, can i flash any zip including CM12 without unlocking the bootloader? I already backed up TA but still wondering?
I had a error when trying to flash CM12 without flashing the CM' boot.img (which asks to unlock the bootloader) because the phone codename is "aries" on Sony stock roms and CM12 want the codename "z3c". Flashing the boot.img contained in CM12 nightlies fixed the problem.
I have solve problem! Just need it to update the dual recovery by Nut with the 2.8.1 Now I can uninstall the system app (Finally)..
Thanks but TA
I make a TA backup in 23.0.A.1.93 in root.
And I changed the kernel to 23.0.A.5.77 with the root using PRFCreater.
and I unlocked my bootloader
and after that I need to re-lock the bootloader cause i need to go sony service center
i tryed the TA backup tool's restore option, but it saids that there is no TA-backup*.zip files
what should i do
reloadxero said:
Since i have dual recovery now on my z3 compact, can i flash any zip including CM12 without unlocking the bootloader? I already backed up TA but still wondering?
Click to expand...
Click to collapse
Any custom rom needs an unlocked bootloader.
Any custom kernel needs an unlocked bootloader.
Without unlocking, you can only install roms based on stock firmware with a stock kernel.
dshstudio said:
I make a TA backup in 23.0.A.1.93 in root.
And I changed the kernel to 23.0.A.5.77 with the root using PRFCreater.
and I unlocked my bootloader
and after that I need to re-lock the bootloader cause i need to go sony service center
i tryed the TA backup tool's restore option, but it saids that there is no TA-backup*.zip files
what should i do
Click to expand...
Click to collapse
Restoring the TA backup automatically relocks your bootloader.
Inside the folder where TA-backup.exe is located, you should find a sub-folder named "backup": do you see nothing within that?
Thank you so much for this thread, really easy this way. Only problem I had was in the last step when flashing version .98, which gave me a non-working wifi. Once reflashed with .77 this was resolved.

[Update][Latest][6.0.1][Prerooted][23.5.A.1.291][Z2 tablet][SGP511][SGP512]

Hi
Here are flashable zip file wich installs latest Sony stock 6.0.1 Marshmallow ROM 23.5.A.1.291_R3D (VMo AU-NZ), SuperSu v2.76 and latest TWRP 3.0.20 with read and write acces to system. Because device is Wi-Fi only region doesn´t matter. Only difference is bloatware. Since Sony hasn´t push update to SGP511 I use SGP512 firmware which is working fine on my device. If you want you can edit build.prop file in /system -folder to correct model number as shown in screenshot.
Here is the link for new 6.0.1 firmware:
https://mega.nz/#!VcxGyRZK!U4NqLOSeg1X_3KNC1_xXm2WnH4_i2OoZ6NwuyaIR6Hw
MD5 is: D3B78445485765AB7BD3A163F2A6C4BD
Make nandroid backup before flashing.
Install it by flashing whole zip file via custom recovery. TWRP recommend. If coming from .570 or .575 firmware dirty flash with art/dalvik cache wipe is okay.
If coming from older firmware factory reset is most likely necessary with cache and dalvik/art cache wipes but anyhow recommend. If you want you can restore your data with TWRP after installation and reboot. This install compatible busybox. If you install incompatible busybox you may loose acces to TWRP.
After flashing .zip file if you are getting bootloop you have atleast two choises.
- With pc and Flashtool use your firmware original ftf -file and flash it by excluding "FOTAKernel", "Partition" and "System". In other words in "exclude section" tick these and don´t wipe anything. (Credits @AlanDS)
- Or download "bootloop fix" from here: https://mega.nz/#!BUxFxSAR!bPVEEDnsPz962JQ1uA2PKJv9tYLKA47N0fhA80ltEvw
(Credits @niaboc79 and @machao44) and flash it with TWRP
Here is the old 23.1.A.1.28 (Customized NCB) FTF -file link:
For SGP511: https://mega.nz/#!sVIn1IJI!Ywqoksuej83vNkc__nNrBy-im6tfLjWr_mbonMd6PPk
MD5 is: aab7e5728dccb59d44d5ebe38c34c8da
This version of firmware should be rootable. For instructions and download go here: http://forum.xda-developers.com/crossdevice-dev/sony/root-how-to-root-5-0-lollipop-t3212108
Credits: @Androxyde @Chainfire @[NUT] @IaguCool @zxz0O0 @Wolfbreak @shoey63 @serajr @championswimmer @russel5
Any news on sgp512? or I can use this one? thanks in advance
Cocolopes said:
Any news on sgp512? or I can use this one? thanks in advance
Click to expand...
Click to collapse
At the moment latest for SGP512 is .726 firmware but you can use this one.
kulvertti said:
At the moment latest for SGP512 is .726 firmware but you can use this one.
Click to expand...
Click to collapse
good...I miss something if I use this? I think the only difference its the internal memory...
Cocolopes said:
good...I miss something if I use this? I think the only difference its the internal memory...
Click to expand...
Click to collapse
Nope. Only difference between devices is memory size and your device regognize correct size even if you use this. Only thing is your device shows as SGP511 but you can chance that in build.prop file if you like.
Er... on my Z2 Tablet with .726 firmware there is no "Ultra Stamina" mode... or am I missing something?
Or is "Ultra Stamina" introduced only with this new firmware version??
Thanks, I just noticed this version was offered as a 21 MB system update on my current ROM (23.1.A.0.690 NCB). But this is much better :good:
hasenbein1966 said:
Er... on my Z2 Tablet with .726 firmware there is no "Ultra Stamina" mode... or am I missing something?
Or is "Ultra Stamina" introduced only with this new firmware version??
Click to expand...
Click to collapse
You are right. Chancelog is copy/pasted from universal source so there is device specific differencies and because this device is wifi only there is no ultra stamina mode.
kulvertti said:
You are right. Chancelog is copy/pasted from universal source so there is device specific differencies and because this device is wifi only there is no ultra stamina mode.
Click to expand...
Click to collapse
hey man...if I flash this I will losse all my internal sd data? or I only need to backup my apps and nothing more? (sorry if I ask to much things)
Cocolopes said:
hey man...if I flash this I will losse all my internal sd data? or I only need to backup my apps and nothing more? (sorry if I ask to much things)
Click to expand...
Click to collapse
For to be safe I recommend to make nandroid backup including kernel, system and data. However if something go wrong system backup with kernel might be enough to bring your device back.
This ain't wipe your internal sd on it's own so it is your choice.
Thanks man, you're always so fast! We should be getting 5.1 next month I read somewhere
Tap to awake isnt working, is ghis a known bug?
BLiapis said:
Tap to awake isnt working, is ghis a known bug?
Click to expand...
Click to collapse
Nope. Double tap to wake work fine here.
Factory reset coming from KK, everything working perfectly, including root/SU and double tap to wake.
In case anyone has similar issues, I couldn't download from Mega directly to device (it kept disconnecting at around 10%), had to download using PC and transfer using SD card.
Thanks Kulvertti for all the work you do for our device, it is much appreciated! :good:
Hello !
I am already on Lollipop & rooted, does updating thanks to the Sony update center will keep my root or does this flashable zip is mandatory to keep root ?
Thanks
Angeal Hewley said:
Hello !
I am already on Lollipop & rooted, does updating thanks to the Sony update center will keep my root or does this flashable zip is mandatory to keep root ?
Thanks
Click to expand...
Click to collapse
This will keep your root. About OTA, maybe with small updates but haven't tested it with latest update.
kulvertti said:
This will keep your root. About OTA, maybe with small updates but haven't tested it with latest update.
Click to expand...
Click to collapse
Thanks for the reply!
I flashed your zip to be 100% sure to keep root
issue
hey man,
I just spent like 2 hours trying to get CWM installed for castor windy. finally ended up using a combo of ADB "fastboot reboot-bootloader" reboot-boot <lightning-bolt-symbol/fastboot mode/select kernal to flash> and put in an extracted boot.img for CWM (nightly build). i then did "fastboot reboot" and rapidly pressed the volume up button. it worked and im now in CWM. I put your zip on my sd card before, and I navigated to that <apply update/choose from sdcard1/flashablesomeupdatedetailsidontwanttocopy.zip> (strangly I noticed that there were 2 identical "choose from sdcard1" options)
cwm paused for a second, then outputted
Install failed​Finding update package...
Opening update package...
E:footer is wrong
E:signature verification failed
Installation aborted​
sorry about my formatting of what I did, Im new to xda devs
thanks in advance for the help, and thank you for supporting a tablet that very few people seem to use
joeyishar said:
hey man,
I just spent like 2 hours trying to get CWM installed for castor windy. finally ended up using a combo of ADB "fastboot reboot-bootloader" reboot-boot <lightning-bolt-symbol/fastboot mode/select kernal to flash> and put in an extracted boot.img for CWM (nightly build). i then did "fastboot reboot" and rapidly pressed the volume up button. it worked and im now in CWM. I put your zip on my sd card before, and I navigated to that <apply update/choose from sdcard1/flashablesomeupdatedetailsidontwanttocopy.zip> (strangly I noticed that there were 2 identical "choose from sdcard1" options)
cwm paused for a second, then outputted
Install failed​Finding update package...
Opening update package...
E:footer is wrong
E:signature verification failed
Installation aborted​
sorry about my formatting of what I did, Im new to xda devs
thanks in advance for the help, and thank you for supporting a tablet that very few people seem to use
Click to expand...
Click to collapse
Install Dualrecovery from here: http://forum.xda-developers.com/showthread.php?p=53661356 and use TWRP to flash .zip file.
kulvertti said:
Install Dualrecovery from here: http://forum.xda-developers.com/showthread.php?p=53661356 and use TWRP to flash .zip file.
Click to expand...
Click to collapse
First: Thanks to Kulvertti for all his work.
I am still confused. Do I need to root my device on forehand?
What I have understood so far:
You don't have to have root to flash NUT's [TABZ2][TWRP][PhilZ Touch][CWM] XZDualRecovery (It won't bring you root either).
So you can flash this recovery as long as you are on unrooted but rootable stock firmware (e.g. 17.1.2.A.0.314).
Then can flash this pre-rooted stock Lollipop ROM 23.1.A.1.28 and you will have root.
So only 3 steps to go from unrooted stock Lollipop to to this pre-rooted Lollipop?
1) flash rootable firmware (from PC, using flashtool).
2) flash "NUT's" recovery (from PC, using NUT's installer).
3) flash this pre-rooted stock Lollipop ROM (from sdcard1, using TWRP recovery)
Is this correct??

[Stock][PreRooted][DualRecovery][D5503] 14.6.A.0.368 Customized DE - Lollipop 5.1.1

OUTDATED! CHECK NEW VERSION HERE: http://forum.xda-developers.com/sony-xperia-z1-compact/general/stock-14-6-1-236-customized-lollipop-5-t3264557
_______________________
Lollipop 5.1.1 finally hits the Z1C
D5503_Customized DE_1279-6978_14.6.A.0.368_R2D PREROOTED for Sony Xperia Z1 Compact done with PRFCreator.
What you get:
Flashable Zip File - for Updating your rom with custom recovery (TWRP) or clean installation. This is rooted with SuperSu and comes with latest DualRecovery bundled.
TESTS: After some of you guys/girls have some isues with this i have done some tests the last days. So, here my results:
CONDITIONS:
1. Flash over running and fully functional Lollipop 5.0.2 with XZDualRecovery 2.8.21. Bootloader is LOCKED, no xposed framework installed.
RESULTS:
1. Flashing the Rom - Works. After Flash with XZDualRecovery 2.8.21. No Errors in XZ Logwindow
2. Root Check: Testet with: Root Checker (fro mFree Android Tools, joeykrim, and Burrows Apps): No Problems, all apps show full root is present.
3. Remove System Apps: Testet with: SD Maid Pro, System App Remover (Jumobile, TopDev): Works too, im able to remove system apps without any errors.
4. Install Xposed Framework v73 SDK23: Works, no Bootloops.
5. Install and use of XperiaXposed (LP) latest version from Xposed Repo: Installation and modul activation works
- Modding User Interface (More Homesceens, gestures (swiping down for Quicksettings, Up App drawer, roud edges, additional quick settings) - Works.
- Xperia Home: (Hide Apps, Widges scalable, labels). Works
- Media: Volume Keys to skipping tracks, camerabutton start/stop. Works.
- Power Menu: Edit some of the options. Works
6. XPrivacy. Installation, Modul activation works. After reboot (no bootloops) xprivacy works like expected. No Problems with that
CONDITIONS 2:
1. Complete Wipe and flash with XZDualRecovery 2.8.21. Bootloader is LOCKED
Same Tests, same results.
Flashable Zip for Recovery Menu:
Prerootet with SuperSu + latest DualRecovery(2.8.21)
Update Only
1. Download file
2. Copy flashable-signed.zip to your sdcard
3. Boot to recovery (tested with TWRP) and install flashable.zip
4.Reboot to system
Fresh install:
1. Download file
2. Copy flashable-prerooted-signed.zip it to your sdcard
3. Boot to recovery
4. Wipe Dalvik cache, cache, system, data, internal storage
5. Install flashable-prerooted-signed.zip
6. Reboot to system.
Download:
flashable-signed.zip
MD5: c3cda929ecb5f9ae6f2e2e4592439ed6
Thx to zxz0O0 for the PRFCreator.
Hello,
I think there is no link to download ^^
PS : Thanks !
Wooops, its fixed now.
How do you delete a post?
Tograd said:
How do you delete a post?
Click to expand...
Click to collapse
You can't Or ask to an admin
(MAKE SURE YOU USING Z1-lockeddualrecovery2.8.21)
How and where do we check the version? Also, would it work in India?
Just flash Latest Recovery from [NUT]
http://forum.xda-developers.com/showthread.php?t=2261606
Maybe it works with older version too, but im only tested it with 2.8.21.
I guess it woks for India too.
It's ok to use this for example, on a phone with a differente CDA?
I did everything as instructed and it got me into a bootloop...
For me, supersu is installed but it says that no su binary is installed
beowafle said:
I did everything as instructed and it got me into a bootloop...
Click to expand...
Click to collapse
Clear Cache maybe fix this.
SkarlosBME said:
For me, supersu is installed but it says that no su binary is installed
Click to expand...
Click to collapse
Hmm damn, i can confirm this. Looking for a fix. be patient.
Try my version, it seems to work according to others (I sttil didn't have time to test it):
Are you sure you used the latest supersu? Yours is much smaller than mine.
D5503_14.6.A.0.368_Customized_DE_prerooted.zip
I guess its a problem with latest PRFCreator (1.0). Witch Version of PRFCreator did you use?
Also i left the fota-reset.ta and custom-reset.ta but i think its not the reason for the smaler size.
Download the installer version of the dual recovery 2.8.21 and just reinstall the revovery with the phone running. This should work for regaining full root.
Best, maris
ThreeMMM said:
I guess its a problem with latest PRFCreator (1.0). Witch Version of PRFCreator did you use?
Also i left the fota-reset.ta and custom-reset.ta but i think its not the reason for the smaler size.
Click to expand...
Click to collapse
That could be it. I used the previous version (0.9) because 1.0 seemed strange with trying to flash those .sin files.
Jip, PDFCreator has some issues.
Recreated with 0.8, Root is there \o/
So im going to upload the new File and edit the first post.
Sorry guys for that!
ThreeMMM said:
Jip, PDFCreator has some issues.
Recreated with 0.8, Root is there \o/
So im going to upload the new File and edit the first post.
Sorry guys for that!
Click to expand...
Click to collapse
You can use mine if you want to.
-.-
SkarlosBME said:
For me, supersu is installed but it says that no su binary is installed
Click to expand...
Click to collapse
I found the issue (PDFCreator 1.0 will cause that issue) and now its fixed. All fine now!
Danzig666 said:
You can use mine if you want to.
Click to expand...
Click to collapse
Im allready done the upload. But Thanks!

[HOW-TO][Root+TWRP Recovery][LB]Stock Marshmallow 6.0.1 (23.5.A.0.575/.291)

Hello everyone,
Update 27.08.2016: It also works for version 23.5.A.1.291 (OS update that includes STAMINA). The procedure is identical, you just have to use the latest firmware available and create a pre-rooted .zip to update your tablet device.
I am pretty sure that I couldn't find a how-to guide anywhere that explains how rooting our precious Xperia Z3 Tablet Compact on Android 6.0.1 with locked bootloader works. This post simply shows the process of how I got root on my device (SGP611) and I am going to write the steps only in moderate detail so that hopefully everyone can follow without hassle. There are some steps that I'm not going to explain too much in detail but instead I highly recommend you to look around a bit on XDA to find theses already explained steps (I just want to get to the point on how to get root so that's why it may not be super noob friendly).
Edit: A little bit more info and additional steps that might help you further can be read in post #5.
Standard disclaimer:
Your warranty is now void.
I am not responsible for bricked devices, dead SD cards, or any other issues that may arise from not following the steps correctly/carefully.
Click to expand...
Click to collapse
Also, I am not a developer so I am very sorry if I can't give you an answer to questions relating to problems with the tools we are going to use in this tutorial. It's better to ask the developers directly( I will link you to the needed threads).
Steps:
1. Downgrade device if necessary
2. Root using KingRoot exploit
3. Install XZDualRecovery custom recovery
4.1 Get the latest Marshmallow firmware and create FTF file
4.2 Create the pre-rooted .zip file
5. Flashing the pre-rooted .zip file correctly
Extra: Already created pre-rooted .zip file download for the lazy ones (At the very bottom)
1. First thing you need to know is that if you're device is currently bootloader locked and on Android Marshmallow 6.0.1 (23.5.A.0.575), as of the time I am writing this, you will not be able to achieve root directly through some kind of rooting tool. What you need to do now is to downgrade your device to an older version of Android, e.g. Android 5.0.2 or KitKat are good enough.
To do this you need to find the older firmware:
-Try this link to look for it: http://xperiafirmware.com/ (If you can't find Android 5.0.2 for example, use Google or look around XDA)
-Downgrading the device will wipe data/factory reset, so BACK UP YOUR STUFF before downgrading.
-Use flashtool to flash the firmware and downgrade: http://www.flashtool.net/index.php (I will expect you to know how to use flsahtool to flash ftf. files, there are many tutorials on how to do this)
2. Why you have to downgrade is because older firmwares have an exploit that can be used to root the device even when the bootloader is locked. So yes, something like a one-click root method is possible now.
-You may use this tool called KingRoot to root your tablet: http://forum.xda-developers.com/android/apps-games/one-click-root-tool-android-2-x-5-0-t3107461
Read the info carefully before doing anything.
3. Now, you should have managed to root your device with Android version other than 6.0.1. That is when another great tool comes in which is called XZDualrecovery. XZDualRecovery is "a" custom recovery that you'll need to be able to proceed from here.
-Install XZDualRecovery using the root method. That's the only way to get it onto the device.
-Link: http://forum.xda-developers.com/showthread.php?t=2261606 (Read the instruction there carefully)
4. Great! Now you should have root and custom recovery. If not, you did something wrong.
This is when you can create something called a "pre-rooted" firmware which is basically all you need to get root on Marshmallow 6.0.1.
4.1
-Use the tool called Xperifirm to download the Android 6.0.1: http://forum.xda-developers.com/cro...xperifirm-xperia-firmware-downloader-t2834142
-Launch Xperifirm and on the left hand side browse to "Xperia Z3 Tablet Compact -> the model number of your device (look under settings on your device to find out model number)"
-On the right side top you'll see "Check all", click it to let it check for latest firmware number
-Android 6.0.1 would be 23.5.A.0.575 23.5.A.1.291 (latest firmware). You can choose any Market or Operator you want (Tip: Use "Customized XXX" and avoid carriers)
-After downloading you'll need flashtool again to convert those downloaded files to .ftf format (Again, there are instrutions on the internet that you can look for)
4.2
-Make sure you have the .ftf file
-Get two .zip files
--1) RecRoot: http://forum.xda-developers.com/z3/general/wip-sony-android-6-0-mm-t3337357
--2) A dummy flashable file: http://forum.xda-developers.com/z3/...oid-6-0-mm-t3337357/post66569699#post66569699
-Get PRFCreator: http://forum.xda-developers.com/crossdevice-dev/sony/tool-prfcreator-easily-create-pre-t2859904
-Open PRFCreator and put the .ftf file to FTF, the RecRoot .zip file to RECOVERY, and the dummy_flashable.zip to SUPERSU. Don't do any other way!
-Tick Kernel, FOTAKernel, Modem, LTALable and Sign Zip
-Click "Create" to create the pre-rooted Marshmallow firmware
5. You should have created the pre-rooted Android 6.0.1 firmware now.
-Put the pre-rooted .zip file and the RecRoot .zip file onto your device's SD card/storage (anywhere where you can find them later)
-Reboot your tablet into TWRP recovery. (XZDualRecovery even provides you an app to choose and reboot to recovery) Don't reboot into any other recovery!
-Now, in TWRP recovery, erase dalvik cache, cache and system just to be clean.
-FIRSTLY, flash the pre-rooted.zip that you have put on your device. After flashing successfully, DON'T REBOOT YET!
-SECONDLY, flash the RecRoot.zip file
-Now you can reboot and if you did everything correctly, your Z3 Tablet Compact should boot up with Chainfire's SuperSU root and TWRP recovery (to access TWRP recovery, you have to reboot the device and while a green LED light appears for a moment, press and hold the volume down button. Then you will enter TWRP recovery. As for now, you cannot access the recovery any other way like using a reboot app, it will not work!).
CONGRATULATIONS! You have a rooted Z3 tablet with locked bootloader and you haven't lost Sony features. :laugh::good:
Thank you for reading this tutorial. And don't forget to thank all these devs that provided us the needed tools.
Extra: I will also put a link here where you can download my created pre-rooted Marshmallow firmware. It's build 23.5.A.0.575 Customized Germany and for SGP611 only!
https://mega.nz/#!TQ4AwbSZ!LNw11quAWurER_Tl9zHDyX_TiwZnzeVM1M0s10eyt4g
Just followed your instructions with my SGP621, worked great!
Teella said:
Just followed your instructions with my SGP621, worked great!
Click to expand...
Click to collapse
Great!
Would you be so kind and share your pre-rooted SGP621 ROM?
janla said:
Great!
Would you be so kind and share your pre-rooted SGP621 ROM?
Click to expand...
Click to collapse
I would love too, but my upload is very very slow and would take week to upload. Follow the instructions it's very easy, it was the first time I've ever touched and FTF or made a prerooted rom. Well not really made, just clicked a few buttons in flashtool and waited.
SGP621 additions
Hey man,
thanks for this concise guide to unroot our beloved tablet! I tried a few times before, but always gave up under the flood of outdated info available. With your guide, I successfully rooted my SGP621 (= Sony Z3 Tablet Compact with LTE).
Since you refer to "available info on the net" quite often, I had a few moments where I was unsure what to do exactly. Maybe the following hints can help others like me who are new to the world of Sony android devices.
Step 1:
You could probably also downgrade to 5.1, but to be safe, I chose 5.0.2. The needed ftf files for SGP621 as well as the SGP611 and SGP612 are avilable here.
I used the most current version of the flashtool, which is 0.9.22.3 as of this posting. I followed this (German) guide for installing and using the flashtool. To install the needed drivers, you'll have to navigate to wherever you installed the Flashtool to, there to the subfolder drivers, and execute the driver installer you find there. In the driver selection dialog install the first two, and of course the Z3TC driver you find somewhere in the list. Got two errors during the driver installs, ignored them, all went well.
Step 2:
Kingroot is a one-click-rooting solution you install directly on the phone, no pc connection necessary. After the tool is installed, you have to start it, swipe up a couple of times, and then tap on "Purify". The description in the xda thread made me think "Purify" is just an ad for an additional app, but it does start the rooting process.
Step 3:
After downloading and extracting XZDualRecovery, start the install.bat (under Windows, obviously). Connect your tablet, then choose menu item 1 (Install with SuperSU).
Step 4.1:
Many guides describe a decrypt / unpack step, you don't need this. The files are already unpacked after the download through XperiFirm. I did, however, delete the file "fwinfo.xml" from the downloaded files. No idea if that's needed, but it didn't hurt either.
To convert the downloaded files into an ftf file in the flashtool, select "Tools > Bundles > Create".
As "Source Folder" select the folder that XperiFirm created in the download path you specified. You'll then see a bunch of files in the "folder list" - select everything but the ".ta"-files (there were 5 ta-files in my case).
Doubleclick the empty "Device:" line, select the correct device.
I guess you can enter whatever in Branding and Version, I entered "German" and "23.5.A.1.291".
Step 4.2:
The "RecRoot"-File mentioned is indeed called "RecRoot_combined.zip". If you download that file, you're good to go. The PRFCreator tool needs to have Java installed for the last step (signing the prerooted rom). The file with the prerooted rom is saved in the PRFCreator dir itself.
Hoping this'll help someone!
@pull.me.under I am glad that I could help. Also, I'll thank you for your time extending my guide a bit with more detailed steps. That'll help users who are new to this stuff for sure. ?
Gesendet von meinem SGP611 mit Tapatalk
Hi,
If I follow this way, can I restore my tablet in stock settings if I have any trouble?
cheers
bozo13 said:
Hi,
If I follow this way, can I restore my tablet in stock settings if I have any trouble?
cheers
Click to expand...
Click to collapse
For restoring your tablet to stock, you only need flashtool with Xperifirm. It's like the first step where you have to download the stock firmware from Xperifirm and flash it with flashtool. Then you only have stock and clean operating system on your device. Unless, I'm not sure what you mean with stock settings?
Sent from my Sony E6553 using XDA Labs
Thanks for the guide. Using this guide, how can i install xposed on prerooted MM.
Shud i flash it after flashing recroot. Or shud i enter the system and then do it.
Following these steps will i lose recovery once i reboot to the system?
worked for me but god i kept soft bricking it. twrp kept wanting to reboot after wiping. now to wait and see if it will charge above 49%
Thank you for your efforts and detailed instructions. I did it smoothly on my 612. In my case the RecRoot was named as RecRootV4_combined.
Oddly, MobileUncle does not restart device to TWRP recovery, although it is doable the hard way
tzitzi2 said:
Thank you for your efforts and detailed instructions. I did it smoothly on my 612. In my case the RecRoot was named as RecRootV4_combined.
Oddly, MobileUncle does not restart device to TWRP recovery, although it is doable the hard way
Click to expand...
Click to collapse
Yes.
SGP612, can not enter TWRP recovery.
Sgp612 enters TWRP just fine, it does not do so thru mobileuncle
tzitzi2 said:
Sgp612 enters TWRP just fine, it does not do so thru mobileuncle
Click to expand...
Click to collapse
steps in details?
just did it with 23.5.A.1.291_R2D. seems ok
thanks!
Thanks for the Guide.
Post #5 is almost as important. It goes through a lot of details and problems I encountered (like the no neede to decrypt or the need to install Java to sign it).
For those who like the shortest path, here's a pre-rooted flashable zip:
Customized IBE Version 23.5.A.0.575 R8D for the SGP621
Decrypt key is:
!8G97O9eDtnF-_PntdsGh8uoRo7KQFpS7_D2c_FNaI-I
(edit) Lost root and I can't figure out why.
One moment I had 5.0.2 rooted with XZDualRecovery the next moment after step 5, I had 6.0.1 but root was lost.
XZDualRecovery is still there. I tried booting into TWRP and re-flashing RecRootV4_combined.zip to no avail. I had already done it according to the instructions right after the pre rooted ROM.
Anyone has an idea of what I could have missed?
For those who like the shortest path said:
Customized IBE Version 23.5.A.0.575 R8D for the SGP621 [/URL]
Click to expand...
Click to collapse
Tnx for pre-rooted rom
Your link need Decryption key.
WanderMax said:
steps in details?
Click to expand...
Click to collapse
Sorry for late answer.
Nothing fancy, just the usual way. Power off, power on, when led is green press volume -. TWRP is there
blue8 said:
Tnx for pre-rooted rom
Your link need Decryption key.
Click to expand...
Click to collapse
Updated on OP. But beware that something isn't probably right. I lost root as soon as I flashed MM.
Thanks for this wonderful guide:good:. I was able to install MM .291 to my SGP612 without any issues. I am attaching a picture of the PRF creator instruction followed if it might help others.
The install process after creating the prf zip file was quick. Also I noticed that I still have small apps after upgrading

[TWRP]+[ROOT]+[OREO]+[8.0]+[F833X] Guide to Root Stock Oreo XZ

Continue at your own risk
I am not responsible for anything bad happen to your phone,
e.g bricked devices (by flashing wrong firmware) or anything else and hopefully not.
PREREQUISITES :
1- ADB Tools. V1.3 | V1.4.3
2- Flashtool for flashing/creating ftf.
3- XpiriFirm for downloading ftf.
4- Xperia XZ drivers.
5- Xperia XZ drivers for fastboot mode.
INSTALLATION
1- ADB Tools
Download and run EXE file and follow the instructions to install.
for win 8/10 use V1.3
2- Flashtool
Goto to Flashtool's official website download and install exe.
3- XpiriFirm
Download the Zip extract and run EXE.
4- XZ drivers/ 5- XZ drivers for fastboot mode.
Download the and extract both in different locations/folders and
right click the *****.inf {in both case different} files and press install.
At the end goto C:/Flashtool/drivers and run the Flashtool-drivers.exe
and install, check Sony Xperia XZ, flashmode drivers and fastboot drivers.
UNLOCKING BOOTLOADER: {If you have already then skip this step}
INFORMATION
Unlocking Bootloader Opens the door to System files of your device. This allows you to flash images onto the main system partitions of the phone, after unlocking you will lose the DRM keys and phone's warranty will be void, it will also factory reset your device.
>>Backup Your TA Partition to save your DRM keys.<<
UNLOCKING
1- Open Dialer.
2- Dial *#*#7378423#*#*
3- Press service info than configuration.
4- Check if “Bootloader Unlock” is yes under Rooting status.[If not then your device can not be unlocked]
5- Goto settings > about phone > developers option and ensure that OEM Unlock and USB Debugging is on.
6- Goto Xperia BLU page and Choose Xperia XZ at the bottom of the page.
7- Enter your Email and you will receive a link in your mail. Follow the steps given by Sony.
8- BE CAREFUL and, from now on, DON’T ENABLE the MyXperia. It could hard brick your phone.
YOUR DEVICE IS NOW UNLOCKED
FLASHING OREO FTF
1- Download Oreo Firmware using XpiriFirm.
If you have already one {.192, .401, .184} you can flash it.
2- {Latest Recomended (**.*.*.*.192)}
3- Create and Flash the Ftf using Flashtool
HELP
FLASHING CUSTOM RECOVERY {TWRP}
1- Download the latest TWRP image file.
2- Paste it in your Fastboot directory and rename it as recovery.img
3- Connect your phone to PC using original cable while pressing power up
{The Notification light will turn Blue}
4- Open cmd in the folder where you pasted recovery.img.
{Press Shift button + Right click and press "Open Command window here"}
5- Enter the command
Code:
fastboot flash recovery recovery.img
6- Reboot your device into recovery.
Guide 1.1{Turn off your device. Hold power button + volume down after vibration leave power button}
7- Check "Never show ********* " and swipe to allow all modification.
8- Press Wipe > Advanced Wipe > Check data > Repair or change file system > change file system > EXT 3 > swipe
Important {Same step again but this time EXT4}
9- Power Off the device.
FLASHING KERNEL AND MAGISK
1- Download Kernel for your build number {Image file}.
>>Find in this folder<<
2- Download Magisk v18.1 or latest from here.
3- Download DRM Fix Mode.
4- Download Saftey Net cleaning tools.
5- Copy all in your SD card.
6- Boot into recovery.
{Check Guide 1.1 above}
7- Press Mount and Check System > Back to home screen.
8- Press Install > Install Image > Select the downloaded Kernel > Select boot and Swipe.
9- Goto Install section again and flash DRM Fix Mode.
10- Flash Saftey Net Cleaning Tools.
11- Flash Magisk v18.1.
12- Reboot Device and See If the magisk manager Installed.
>>U have stock 8.0 rooted<<
{If Magisk Manager not Installed}
1- Download Magisk Manager (apk).
2- Install the apk Manually.
3- Reboot to recovery and flash Magisk v18.1 (zip) again.
>>U have stock 8.0 rooted<<
Installing Xperia XZ2 + Xperia 10 port
You can now install the port zip {Optional}, Goto to the thread.
​
If I think I will go back to Oreo I will defently use this tutorial.
Good job!
Thanks bro, this guide is working
iqbaldani6 said:
Thanks bro, this guide is working
Click to expand...
Click to collapse
Welcome bro , thanks for feedback.
Press the thanks button if you liked my work.
There is zip availible of ported Apps, See This.
Can any one upload latest 192 CE firmware? I cannot download it anywhere. Thanks
silveraero said:
Can any one upload latest 192 CE firmware? I cannot download it anywhere. Thanks
Click to expand...
Click to collapse
Bro Create using XpiriFirm, Its availible there, Better and Recommended. :good:
awadnisar said:
Bro Create using XpiriFirm, Its availible there, Better and Recommended. :good:
Click to expand...
Click to collapse
I got it, the new XperiFirm version will fix "Not available". Thank bro!
silveraero said:
I got it, the new XperiFirm version will fix "Not available". Thank bro!
Click to expand...
Click to collapse
Bro its available, I checked it in the same version of XpiriFirm attached in this thread. :good:
It worked like a charm! I was about to go crazy with buggy custom pie roms. Thank you for creating this guide bro!
LeonidasTurk said:
It worked like a charm! I was about to go crazy with buggy custom pie roms. Thank you for creating this guide bro!
Click to expand...
Click to collapse
Thanks and well press thanks if really helped you!!!:laugh:
Hi @awadnisar, can you tell me which is that kernel? is it stock one? Because the kernel you give us is 17MB and if I extract kernel from FTF file it is 35MB
Btw your method is working great, thanks man
Edited, i found it. Magisk cant install in UNEDITED clean stock kernel, need to disable DM-verify, Sony RIC and etc...
trunghxf said:
Hi @awadnisar, can you tell me which is that kernel? is it stock one? Because the kernel you give us is 17MB and if I extract kernel from FTF file it is 35MB
Btw your method is working great, thanks man
Edited, i found it. Magisk cant install in UNEDITED clean stock kernel, need to disable DM-verify, Sony RIC and etc...
Click to expand...
Click to collapse
Yes Edited
Hello, I like your guide, it's easy to follow but what about people that have their TA partition backed up, how to restore it based on your guide?
Qattos said:
Hello, I like your guide, it's easy to follow but what about people that have their TA partition backed up, how to restore it based on your guide?
Click to expand...
Click to collapse
-- Put your ta buckup image file anywhere in your phone --
-- Boot to TWRP --
-- Connect to PC --
-- Type Following --
Code:
adb shell dd if=<ta image path> of=/dev/block/bootdevice/by-name/TA
-- Using ADB --
-- When its done, your phone will not boot --
-- Connect to pc flashmode and restore using xperia companion or flashtool --​
awadnisar said:
-- Put your ta buckup image file anywhere in your phone --
-- Boot to TWRP --
-- Connect to PC --
-- Type Following --
Code:
adb shell dd if=<ta image path> of=/dev/block/bootdevice/by-name/TA
-- Using ADB --
-- When its done, your phone will not boot --
-- Connect to pc flashmode and restore using xperia companion or flashtool --​
Click to expand...
Click to collapse
One last question, after I follow your steps and restore my TA partition, will I lose root?
Qattos said:
One last question, after I follow your steps and restore my TA partition, will I lose root?
Click to expand...
Click to collapse
Obviously, locking bootloader and root aren't possible at a time.
Ftf portion
is it impoortant to do the ftf flash ? i already have the latest rom . do i need to flash again? and if so which region i should select in xpirifirm to download the file . i am from asia
exxoy said:
is it impoortant to do the ftf flash ? i already have the latest rom . do i need to flash again? and if so which region i should select in xpirifirm to download the file . i am from asia
Click to expand...
Click to collapse
Your Bootloader is unlocked or locked?
awadnisar said:
Your Bootloader is unlocked or locked?
Click to expand...
Click to collapse
could not wait for the reply . already rooted with the process . using aosp rom .
exxoy said:
could not wait for the reply . already rooted with the process . using aosp rom .
Click to expand...
Click to collapse
Oh great, :good:

Categories

Resources