A little help needed... - Xperia Z2 Q&A, Help & Troubleshooting

I've D6503 model and I'm new to Sony and Marshmallow (though I'm an advanced user and know much about flashing). I wanted to know that IF I need to backup Marshmallow ROM's system partition DO I need to Backup SYSTEM only in TWRP (3.0.2) or Both SYSTEM and SYSTEM IMAGE.
Thanks in advance.
Plus:
1 - IS it safe to backup/restore SYSTEM IMAGE or not...???
2 - Can I go back to Lollipop or KitKat by only flashing FTF without bricking or backward flashing is not allowed...???
BTW My bootloader is LOCKED.

goldenevil47 said:
I've D6503 model and I'm new to Sony and Marshmallow (though I'm an advanced user and know much about flashing). I wanted to know that IF I need to backup Marshmallow ROM's system partition DO I need to Backup SYSTEM only in TWRP (3.0.2) or Both SYSTEM and SYSTEM IMAGE.
Thanks in advance.
Plus:
1 - IS it safe to backup/restore SYSTEM IMAGE or not...???
2 - Can I go back to Lollipop or KitKat by only flashing FTF without bricking or backward flashing is not allowed...???
BTW My bootloader is LOCKED.
Click to expand...
Click to collapse
If your bootloader is locked and you have twrp then i guess you are very much familiar to sony ?.
Now come to your question , is you need to backup your system to use it again, you can backup system +data or only system from twrp. And 2 - you can go back to any firmware just flash ftf with flashtool. (Remember your ftf dont have simlock.ta and if it have then exclude simlock.ta from flashing.).Also dont disconnect the device while flashing ftf.

pixel0 said:
If your bootloader is locked and you have twrp then i guess you are very much familiar to sony .
Now come to your question , is you need to backup your system to use it again, you can backup system +data or only system from twrp. And 2 - you can go back to any firmware just flash ftf with flashtool. (Remember your ftf dont have simlock.ta and if it have then exclude simlock.ta from flashing.).Also dont disconnect the device while flashing ftf.
Click to expand...
Click to collapse
First of all Thanks buddy and secondly Yup I'm a little familiar to Sony but not much. I know flashing fones like Sony, Huawei, Lenovo, Nokia (X2), Samsung etc so Bootloader and TWRP are basics for me.
Now the point is that when I go to twrp and tap on Backup it shows me SYSTEM and SYSTEM IMAGE along with TA, Data, Boot etc.
My question is: For backing up whole system Partition (to use in future or to revert back from some other ROM) do I have to Backup SYSTEM only or SYSTEM IMAGE as well?

goldenevil47 said:
First of all Thanks buddy and secondly Yup I'm a little familiar to Sony but not much. I know flashing fones like Sony, Huawei, Lenovo, Nokia (X2), Samsung etc so Bootloader and TWRP are basics for me.
Now the point is that when I go to twrp and tap on Backup it shows me SYSTEM and SYSTEM IMAGE along with TA, Data, Boot etc.
My question is: For backing up whole system Partition (to use in future or to revert back from some other ROM) do I have to Backup SYSTEM only or SYSTEM IMAGE as well?
Click to expand...
Click to collapse
Weird, what is twrp version? And what did you use to get the recovery installed?
I don't recall seeing system image ever in twrp, but i usually backup everything except cache drive.

ticktock666 said:
Weird, what is twrp version? And what did you use to get the recovery installed?
I don't recall seeing system image ever in twrp, but i usually backup everything except cache drive.
Click to expand...
Click to collapse
Yup... I really find it weird too coz I've never seen it before.
I'm using TWRP 3.0.2-0 with existenz rom v5.6.5
I rooted the official .291 with the Tool in general section (flashing .575 kernel and rooting then going back to .291 kernel).
Before installing existenz I backed up my Official .291 ROM's system and boot partitions but SYSTEM IMAGE was not there at that time.
Now I'm on existenz and I want to make a backup of system Partition again but I'm confused b/w SYSTEM and SYSTEM IMAGE.
HERE take a look........
Update: I tried to check the contents of backed up System Image (by renaming it to .zip and opening by winrar) but winrar is unable to open it like it does not open android's .img files.

goldenevil47 said:
Yup... I really find it weird too coz I've never seen it before.
I'm using TWRP 3.0.2-0 with existenz rom v5.6.5
I rooted the official .291 with the Tool in general section (flashing .575 kernel and rooting then going back to .291 kernel).
Before installing existenz I backed up my Official .291 ROM's system and boot partitions but SYSTEM IMAGE was not there at that time.
Now I'm on existenz and I want to make a backup of system Partition again but I'm confused b/w SYSTEM and SYSTEM IMAGE.
HERE take a look........
Update: I tried to check the contents of backed up System Image (by renaming it to .zip and opening by winrar) but winrar is unable to open it like it does not open android's .img files.
Click to expand...
Click to collapse
You should reflash recovery.
Download serajr mm recovery v3 and flash it with your current recovery.
Sent from my Sony Xperia Z2 using XDA Labs

pixel0 said:
You should reflash recovery.
Download serajr mm recovery v3 and flash it with your current recovery.
Sent from my Sony Xperia Z2 using XDA Labs
Click to expand...
Click to collapse
Can you please link me to it?

goldenevil47 said:
Can you please link me to it?
Click to expand...
Click to collapse
http://forum.xda-developers.com/attachment.php?attachmentid=3787081&d=1466257973
Sent from my Sony Xperia Z2 using XDA Labs

pixel0 said:
http://forum.xda-developers.com/attachment.php?attachmentid=3787081&d=1466257973
Sent from my Sony Xperia Z2 using XDA Labs
Click to expand...
Click to collapse
Thanks man it worked like charm...

Thread Closed.
Sent from my Sony Xperia Z2 using XDA Labs

Related

xposed and custom recovery worked lollipop backup

z3c_23.1.A.0.690_xposed_deodex_rooted_backup
my backup only for UL bootloader D5803..xposed framework is working.dont bootlop device restart..TWRP recovery working..( androidplus v50 kernel included)
backup file copy TWRP/backup folder than go to restore choose downloaded backup file...
reboot...
sorry for my engilish language...
https://.ega.co.nz/#!op0GibzJ!L3QxbGhcTWcrdO5Fk8h8vepL2KBXqwdFHHZYLbEWvGY
This backups Language is Turkish.. Please Choose Language after install backup.
gursoft41 said:
z3c_23.1.A.0.690_xposed_deodex_rooted_backup
my backup only for D5803..xposed framework is working.dont bootlop device restart..TWRP recovery working..( androidplus v50 kernel included)
backup file copy TWRP/backup folder than go to restore choose downloaded backup file...
reboot...
sorry for my engilish language...
https://mega.co.nz/#!op0GibzJ!L3QxbGhcTWcrdO5Fk8h8vepL2KBXqwdFHHZYLbEWvGY
Click to expand...
Click to collapse
Just to make clear everyone do not try this with LOCKED BOOTLOADER as it will not work.
Sent from my D5803 using XDA Premium HD app
will this work?
Im on .77 locked bootloader. Can i just unlock my bootloader and restore your backup? Should i now have lollipop and with root and recovery and working xposed?
the Backup-TA doesent find the file after i put it in the backup folder folder:/
what about LB ?
QUOTE=erico458i;59794826]Im on .77 locked bootloader. Can i just unlock my bootloader and restore your backup? Should i now have lollipop and with root and recovery and working xposed?[/QUOTE]
Yes, Xposed framework and custom recovery ( twrp) working..
No problem. But backup your device TA backup before unlock bootloader..
gursoft41 said:
QUOTE=erico458i;59794826]Im on .77 locked bootloader. Can i just unlock my bootloader and restore your backup? Should i now have lollipop and with root and recovery and working xposed?
Click to expand...
Click to collapse
Yes, Xposed framework and custom recovery ( twrp) working..
No problem. But backup your device TA backup before unlock bootloader..[/QUOTE]
Haven't looked in unlocking my bootloader much since I already have root/TWRP/KK but with having working recovery and Lollipop looking iffy at best staying locked I think it's time to unlock.
Does unlocking the bootloader wipe the device? If so at that point do I need to go through the steps to root KK again?
I have my TA backed up already so that's done. So once unlocked I can boot into TWRP restore this backup and be rooted/LP/working TWRP, then need to restore the TA backup which will lock the bootloader again if I'm correct?
FSRBIKER said:
Yes, Xposed framework and custom recovery ( twrp) working..
No problem. But backup your device TA backup before unlock bootloader..
Click to expand...
Click to collapse
Haven't looked in unlocking my bootloader much since I already have root/TWRP/KK but with having working recovery and Lollipop looking iffy at best staying locked I think it's time to unlock.
Does unlocking the bootloader wipe the device? If so at that point do I need to go through the steps to root KK again?
I have my TA backed up already so that's done. So once unlocked I can boot into TWRP restore this backup and be rooted/LP/working TWRP, then need to restore the TA backup which will lock the bootloader again if I'm correct?[/QUOTE]
no dont nedeed TA bacup than restore...before unlock bootloader one time bacup TA and when you want locked bootloader install your TA backup..
Teșekkurler @gursoft41 for the effort. Your ROM was the first one that didn't give me the headache with the home button making my screen black, BUT on this one the back camera is not working. I restored it twice, and the second time the first thing that I've tried was the camera, but there is no preview on the back camera. The rest of the interface is there. And the front one is working, but as soon as I try the back one there is no preview. Dead.
Could you please confirm that it is working for you?
I Tested again back and front camera both camera is working..
Hi.How can I install your backup?Allready have lollipop,rooted,unlocked bootloader so what app I should use to install?
gunit50 said:
Hi.How can I install your backup?Allready have lollipop,rooted,unlocked bootloader so what app I should use to install?
Click to expand...
Click to collapse
Flash the compatible andropluskernel with recovery, then paste the downloaded file in your TWRP backup folder and restore the backup in the recovery.
2mal16 said:
Flash the compatible andropluskernel with recovery, then paste the downloaded file in your TWRP backup folder and restore the backup in the recovery.
Click to expand...
Click to collapse
Yeah ok I allready have androidplus kernel v50a installed from fastboot but where is twrp?
ps.problem solved!thanks
gursoft41 said:
I Tested again back and front camera both camera is working..
Click to expand...
Click to collapse
Hmm, then I don't know what might be going on there.
Oh, yes, I believe you have left your phone number in Settings in Users section
Could anyone tell me where to put the zip? Putted it in the TWRP folder and nothing
@wuggy It's explained just a couple of messages before on this page
http://forum.xda-developers.com/showpost.php?p=59824758&postcount=12
Will try
Do you have recovery on the phone?
-V-O-Y-A-G-E-R- said:
Do you have recovery on the phone?
Click to expand...
Click to collapse
Yes
Then all you need to do is to put those files you unrared from gursoft41 into TWRP/Backup/Serial_number folder, boot into recovery and Restore the backup.
If you don't have that folder created, go to recovery, go to backup, make a small backup (choose the smallest partition, because of the speed of making the backup) and the recovery will create the appropriate folder for you. Then put those gursoft41's files in that folder and go again into recovery and restore it.
You can delete your backup that you made when you created the needed folder structure.

[Help][LP 5.1] Needed boot.img for 'stock recovery backup experiment'.

I am going to do an experiment(flashing TWRP.img on boot partition and trying to root.) to backup stock recovery.img of Lollipop 5.1. To do this, I need stock boot.img(Kernel Version: 3.4.42-gccbac57) of system version 23.26.2. If there's someone who rooted system version 23.26.2 then take backup of boot.img using Rashr App(Download from here forum.xda-developers.com/showthread.php?t=2334554 ) and post that stock boot.img here.
If this experiment succeed then I will post stock recovery.img of lollipop 5.1.
UPDATE: I'm not going to do this experiment because temporary booting of twrp is now working on moto e. We can root device by temporary booting twrp and backup stock recovery.img
isn't there anyone who rooted 23.26.2 ?
I have 23.21.34 version i can give you if you want...
cksup said:
I have 23.21.34 version i can give you if you want...
Click to expand...
Click to collapse
It's simple, you just have to extract the boot.img from any ota zip (suggested the official OTA zip)
Do that and give him then.......it will be very good if he can make the 5.1 stock recovery
cksup said:
Do that and give him then.......it will be very good if he can make the 5.1 stock recovery
Click to expand...
Click to collapse
First of all, you must clarify who is referred to as 'him'?
Secondly, there is no method(according to me) by which you can make a stock recovery from a stock kernel. There are two files namely the boot.img and the recovery.img.
First one is the kernel and the second one is the recovery.
Use the ones you like.
Him meant the op
I don't know if one can make recovery from boot.img.......The op didn't say that either....He said and i quote "I am going to do an experiment to backup stock recovery.img of Lollipop 5.1. To do this, I need stock boot.img(Kernel Version: 3.4.42-gccbac57) of system "
So i thought by using some process he may be able to back up stock recovery....that is why i said like that
and BTW where are those .img files available @Rohitagni
cksup said:
Him meant the op
I don't know if one can make recovery from boot.img.......The op didn't say that either....He said and i quote "I am going to do an experiment to backup stock recovery.img of Lollipop 5.1. To do this, I need stock boot.img(Kernel Version: 3.4.42-gccbac57) of system "
So i thought by using some process he may be able to back up stock recovery....that is why i said like that
and BTW where are those .img files available @Rohitagni
Click to expand...
Click to collapse
U can find them in any zipped firmware files. By zipped firmware files, I mean the zips for stock firmware, or the update zips that many XDA users capture here from their rooted phones to help users who haven't received the OTA, enjoy the new OS, simply by sideloading.
cksup said:
I have 23.21.34 version i can give you if you want...
Click to expand...
Click to collapse
Thanks, but I want 23.26.2 version boot.img.
Rohitagni said:
It's simple, you just have to extract the boot.img from any ota zip (suggested the official OTA zip)
Click to expand...
Click to collapse
I think, we can't extract boot.img from ota zip.
Rohitagni said:
First of all, you must clarify who is referred to as 'him'?
Secondly, there is no method(according to me) by which you can make a stock recovery from a stock kernel. There are two files namely the boot.img and the recovery.img.
First one is the kernel and the second one is the recovery.
Use the ones you like.
Click to expand...
Click to collapse
I'm not making recovery.img from boot.img. I will use boot.img to make my device functional again because I'm going to flash TWRP.img on boot partition and try to root. If device gets root access then I can backup stock recovery.img because stock recovery.img is not over written in process of rooting.
I hope you succeed.........I try to get it from someone
And no @Rohitagni you can't extract boot.img from uploaded update zips but from full firmware zips,yes which is not available
I just saw in general section someone uploaded twrp backup of stock latest 5.1......I can flash that and give the boot.img tomorrow @EthicalHacker
cksup said:
I hope you succeed.........I try to get it from someone
And no @Rohitagni you can't extract boot.img from uploaded update zips but from full firmware zips,yes which is not available
I just saw in general section someone uploaded twrp backup of stock latest 5.1......I can flash that and give the boot.img tomorrow @EthicalHacker
Click to expand...
Click to collapse
I am extremely sorry, for misleading you guys! I just found out that the fsg.bin and the gpt.bin (with logo.bin, etc) are the only things that are available in those zips. So yes, @cksup, you are correct. Please provide him with the kernel, so that miracles can happen
cksup said:
I hope you succeed.........I try to get it from someone
And no @Rohitagni you can't extract boot.img from uploaded update zips but from full firmware zips,yes which is not available
I just saw in general section someone uploaded twrp backup of stock latest 5.1......I can flash that and give the boot.img tomorrow @EthicalHacker
Click to expand...
Click to collapse
That's fine.
I think, the twrp backup; you're talking about is Brazilian. So be careful.
any one found the way to flash twrp on stock 5.1 lollipop previous method don't work.
Ansh2000 said:
any one found the way to flash twrp on stock 5.1 lollipop previous method don't work.
Click to expand...
Click to collapse
Use latest twrp.img and SuperSU zip to root.
And if you have 23.26.2 version then you may help me by posting stock boot.img here.
check out #1st post of this thread.
EthicalHacker said:
Use latest twrp.img and SuperSU zip to root.
And if you have 23.26.2 version then you may help me by posting stock boot.img here.
check out #1st post of this thread.
Click to expand...
Click to collapse
Yes I am on 23.26.2 version but unable to flash. twrp, tried all version of twrp but result is same.
Ansh2000 said:
Yes I am on 23.26.2 version but unable to flash. twrp, tried all version of twrp but result is same.
Click to expand...
Click to collapse
Use twrp 2.8.7 recovery
forum.xda-developers.com/moto-e/orig-development/recovery-twrp-2-8-6-0-touch-recovery-t3100879
with following root guide
forum.xda-developers.com/showthread.php?t=2755336
Ansh2000 said:
Yes I am on 23.26.2 version but unable to flash. twrp, tried all version of twrp but result is same.
Click to expand...
Click to collapse
Hey before you flash TWRP can you do something ....... can you dump for recovery partition and save it in sd card and post it here ....
hey i have a XT1025 on the 5.1 ota update, untouched, and how can i root my device?
cksup said:
Hey before you flash TWRP can you do something ....... can you dump for recovery partition and save it in sd card and post it here ....
Click to expand...
Click to collapse
We can't dump stock recovery without root access and moto e has only one rooting method which is flashing custom recovery on recovery partition. It means we lose stock recovery when we get root access.
That's why I'm taking risk of above mentioned experiment to backup stock recovery.
lnasc256 said:
hey i have a XT1025 on the 5.1 ota update, untouched, and how can i root my device?
Click to expand...
Click to collapse
Check out post no. #16 of this thread.
I have a backup of stock 5.1( 23.26.2) kernel and recovery, I took backup from rashr app after rooting my moto e, and I didnt flash twrp for rooting I boot into twrp, should I upload stock kernel or recovery?
Sent from my Xperia E3 using XDA Free mobile app

Any recovery we can use for Marshmallow?

XZ Dual Recovery is not yet compatible with Marshmallow and because of this I was forced to unlock the BL. Are there any recovery that we can use as of this moment? It seems that the development section for this is not so active.
infinitylook said:
XZ Dual Recovery is not yet compatible with Marshmallow and because of this I was forced to unlock the BL. Are there any recovery that we can use as of this moment? It seems that the development section for this is not so active.
Click to expand...
Click to collapse
I saw that there is a prerooted 6.0.1 with only TWRP recovery installed, not dualrecovery. Can you guide me on steps to get from official 6.0.1 to root status on an unlocked bootloader? I can't do anything to go back to previous firmwares and it seems I have to unlock as the only way to get anywhere.
GigaSPX said:
I saw that there is a prerooted 6.0.1 with only TWRP recovery installed, not dualrecovery. Can you guide me on steps to get from official 6.0.1 to root status on an unlocked bootloader? I can't do anything to go back to previous firmwares and it seems I have to unlock as the only way to get anywhere.
Click to expand...
Click to collapse
I tried flashing the TWRP from the site of TWRP but it results in blank screen. Also XZDR is not compatible with Marshmallow.
Did you already backup your TA? You can only do this by obtaining root so it is a must to flash previous FW (KK or LP) then root and backup your TA partion unless you don't care for your DRM keys.
1. Go to http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/ and follow instructions to unlock your bootloader. Alternatively you can use flashtool (just search here in the forums).
2. Download a TWRP image of Scorpion Windy (Z3 Tablet Wifi) https://twrp.me/devices/sonyxperiaz3tabetcompact.html
3. Download older versions of SuperSU. Systemless root doesn't seem to work with Xperia Stock so you go the system way, older versions are preferred. Will attach the zip I used.
3. Flash MM FW by Flashtool, do initial setup.
4. Boot into fastboot, fastboot the TWRP image you downloaded. Reboot and you should be in recovery
5. Flash the SuperSU. Flash also the RIC defeat zip. Reboot and you'll notice your just in TWRP.
6. Force shutdown.
7. Open flashtool flash the mM FW but only kernel and the FotaKernel, dont wipe anything. Reboot. It should start.
That worked for me.
After you, need to install busybox from playstore and the SELinux Changer app
P.s I can't attach any file however you can find everything i mentioned (Zips) here at XDA and TWRP. I still need to enable init.d but I guess that's difficult with stock rom stock kernel. Oh, and you can install flashfire in substitute of your recovery. Be careful with flashing Zips after you have a stable system since you don't have recovery and therefore no Nandroid backup
infinitylook said:
I tried flashing the TWRP from the site of TWRP but it results in blank screen. Also XZDR is not compatible with Marshmallow.
Did you already backup your TA? You can only do this by obtaining root so it is a must to flash previous FW (KK or LP) then root and backup your TA partion unless you don't care for your DRM keys.
1. Go to http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/ and follow instructions to unlock your bootloader. Alternatively you can use flashtool (just search here in the forums).
2. Download a TWRP image of Scorpion Windy (Z3 Tablet Wifi) https://twrp.me/devices/sonyxperiaz3tabetcompact.html
3. Download older versions of SuperSU. Systemless root doesn't seem to work with Xperia Stock so you go the system way, older versions are preferred. Will attach the zip I used.
3. Flash MM FW by Flashtool, do initial setup.
4. Boot into fastboot, fastboot the TWRP image you downloaded. Reboot and you should be in recovery
5. Flash the SuperSU. Flash also the RIC defeat zip. Reboot and you'll notice your just in TWRP.
6. Force shutdown.
7. Open flashtool flash the mM FW but only kernel and the FotaKernel, dont wipe anything. Reboot. It should start.
That worked for me.
After you, need to install busybox from playstore and the SELinux Changer app
P.s I can't attach any file however you can find everything i mentioned (Zips) here at XDA and TWRP. I still need to enable init.d but I guess that's difficult with stock rom stock kernel. Oh, and you can install flashfire in substitute of your recovery. Be careful with flashing Zips after you have a stable system since you don't have recovery and therefore no Nandroid backup
Click to expand...
Click to collapse
Well then, I knew what I should have done before I lost root. In any case, what certain DRM keys would I be losing on the tablet? I know the biggest commotion on the phones were the camera algorithms.
GigaSPX said:
Well then, I knew what I should have done before I lost root. In any case, what certain DRM keys would I be losing on the tablet? I know the biggest commotion on the phones were the camera algorithms.
Click to expand...
Click to collapse
You would lose camera algorithm (I don't care for that, it's a tablet and its pictures are bad from the start).
X-reality and display enhancements, sound and noise cancellation (This is i don't want to lose since i use mine mainly for graphic projects) and remote play. That's only what I remember, i don't know if I missed out something.
NO NEED TO UNLOCK THE BT, flash a MM prerooted zip you can make it yourself with prf you need the FTF, recroot and superSu.
Anyway if you still want unlock the bt backup the drm keys with backupta
dnnz said:
NO NEED TO UNLOCK THE BT, flash a MM prerooted zip you can make it yourself with prf you need the FTF, recroot and superSu.
Anyway if you still want unlock the bt backup the drm keys with backupta
Click to expand...
Click to collapse
That won't work and would cause bootloop. tried the latest supersu. anyway, i found the workaround and it's been working good now.
infinitylook said:
You would lose camera algorithm (I don't care for that, it's a tablet and its pictures are bad from the start).
X-reality and display enhancements, sound and noise cancellation (This is i don't want to lose since i use mine mainly for graphic projects) and remote play. That's only what I remember, i don't know if I missed out something.
Click to expand...
Click to collapse
Wow, yeah that's too dire for me to go forward to. I should've just stayed on lollipop since it was already what was best for me.
infinitylook said:
That won't work and would cause bootloop. tried the latest supersu. anyway, i found the workaround and it's been working good now.
Click to expand...
Click to collapse
But but but if many did that without problem including me, check the th "when is mm out"
dnnz said:
But but but if many did that without problem including me, check the th "when is mm out"
Click to expand...
Click to collapse
i willread on that. last timme i checked it out mostly devices are with sgp 612 (wifi) anyway thanks for the tip.
Can you give me the link on that thread? i checked the threads here on this device forum and they are for sgp 612 and 611 (wifi versions)

Confirming everything about rooting... (and a bit more)

I have found many sites with conflicting answers, so please don't tell me "google is your best friend" for my silly/already asked questions...
So first what I have: a 5 month old, non modified M4 aqua (E2306), bought from a Canadian carrier. The firmware version is 26.1.A.3.111 (bootloader locked). My goal is to root my phone when I update to MM (using the method PiSpecialist has posted, I cannot post links), but I haven't done so for the fear of losing TA partition when unlocking BL. There is currently no way to root MM with locked bootloader.
Now, my questions:
1. When I unlock my BL, I will lose the TA partition (DRM keys) of the device. Yet to back these up, I need root access. Should I root my device while it is still on Lollipop? There are ways to root BL Lollipop correct? If so, please link a preferable way to do this.
2. Will I receive OTA updates after rooting my phone? If not, I should download and flash firmware from Xperifirm?
3. Will I lose root when flashing new firmware (e.g. flashing MM to a rooted Lollipop device)?
4. Is it dangerous to flash official firmware to a rooted phone? What is a safe way?
I found that dealing with TA is dangerous and can hard brick a phone. Anybody found a reliable script/tool to do this?
So this is pretty much what I am planning to do so far, if the above is correct:
Root my phone while it is still on Lollipop with a locked bootloader.
Backup my TA partition.
Get MM (from either flashing, or OTA, depending if I still get OTA updates)
Unlock bootloader (as there is no way to root for locked bootloaders in MM)
Root phone while it is on MM (if I don't keep the root after updating from lollipop)
Restore TA partition
DONE!
Not as many questions as I thought.... Any other advice/things to look out for would be appreciated
Theres no way yet to have root in mm /system, it needs to be in kernel and you cant use custom kernel and restore ta. All the questions you did are already answered in forums.
But in case your interested ill tell you what i did step by step to have original TA part with drm and "tunned" but unrooted /system.
Keep in mind that your warranty is void, you will loose all your data and you may brick your device. Messing up with TA partition is serious and dangerous stuff. The following steps are just to tell you what i did.
If you want to do so, do it at your own risk.
1. Clean install LP 3.120 via flashtool wipping user data.
2. Root with rootkit 3.xxx and installed twrp for BL
3. Backup TA
4. Unlock bootloader and install MM fw via flashtool
5. Now with BU installed boot.img and recovery.img
6. Now with root, deleted unwanted apps, installed adblocker, installed xposed, tunned some settings/apps etc.
7. When /system was how i wanted, i made a backup via twrp (data, system, cache).
8. Clean install LP 3.120 again via flashtool, wipping user data.
9. Root via rootkit and installed twrp for BL.
10. Restored TA partition
11. Restored the backup via twrp and SHUTTED DOWN the phone because itll not match with the rest of the fw.
12. Installed MM fw again via flashtool but this time, excluded /system part and DID NOT WIPE user data nor Apps log. (as ive restored MM /data backup before)
13. Started the phone.
Now i have MM with drm, locked bootloader, unrooted, xposed working with few modules, adblocker applied and some other mods. Also i receive updates via sony apps such as whats new. And the low speaker volume seems to be fixed.
thewailer said:
Theres no way yet to have root in mm /system, it needs to be in kernel and you cant use custom kernel and restore ta. All the questions you did are already answered in forums.
But in case your interested ill tell you what i did step by step to have original TA part with drm and "tunned" but unrooted /system.
Keep in mind that your warranty is void, you will loose all your data and you may brick your device. Messing up with TA partition is serious and dangerous stuff. The following steps are just to tell you what i did.
If you want to do so, do it at your own risk.
1. Clean install LP 3.120 via flashtool wipping user data.
2. Root with rootkit 3.xxx and installed twrp for BL
3. Backup TA
4. Unlock bootloader and install MM fw via flashtool
5. Now with BU installed boot.img and recovery.img
6. Now with root, deleted unwanted apps, installed adblocker, installed xposed, tunned some settings/apps etc.
7. When /system was how i wanted, i made a backup via twrp (data, system, cache).
8. Clean install LP 3.120 again via flashtool, wipping user data.
9. Root via rootkit and installed twrp for BL.
10. Restored TA partition
11. Restored the backup via twrp and SHUTTED DOWN the phone because itll not match with the rest of the fw.
12. Installed MM fw again via flashtool but this time, excluded /system part and DID NOT WIPE user data nor Apps log. (as ive restored MM /data backup before)
13. Started the phone.
Now i have MM with drm, locked bootloader, unrooted, xposed working with few modules, adblocker applied and some other mods. Also i receive updates via sony apps such as whats new. And the low speaker volume seems to be fixed.
Click to expand...
Click to collapse
Thank you.
What adblocker can be install?
Btw, false alarm regarding speaker volume, it still saturate with bass at higher volume resulting in a lower and kinda cracked volume output, it may need to be tweaked, or even try to port LP audio parametres to MM rom, if thats even a thing and possible, until sony fix it (if they do lol). Ive tested a variety of songs
thewailer said:
Now i have MM with drm, locked bootloader, unrooted, xposed working with few modules, adblocker applied and some other mods. Also i receive updates via sony apps such as whats new. And the low speaker volume seems to be fixed.
Click to expand...
Click to collapse
Is there possibility for system to stay rooted? Btw how do u enter into recovery on MM ?
Tnx
harisdelic said:
Is there possibility for system to stay rooted? Btw how do u enter into recovery on MM ?
Tnx
Click to expand...
Click to collapse
Theres no method at this moment to put su binaries in /system, but if you dont mind you can keep the root as long as you dont restore your TA / lock bootloader as it needs a stock kernel signed by sony.
I enter twrp recovery in MM by holding power+vol down
---------- Post added at 09:42 PM ---------- Previous post was at 09:41 PM ----------
sucsong said:
Thank you.
What adblocker can be install?
Click to expand...
Click to collapse
Ive installed adaway that blocks via host file.
thewailer said:
Theres no method at this moment to put su binaries in /system, but if you dont mind you can keep the root as long as you dont restore your TA / lock bootloader as it needs a stock kernel signed by sony.
I enter twrp recovery in MM by holding power+vol down
Click to expand...
Click to collapse
Thanks man. I will try metod you write above right now
harisdelic said:
Thanks man. I will try metod you write above right now
Click to expand...
Click to collapse
No problem . Here in m4 aqua forums you have everything you need to backup TA, unlock bootloader, flash, drowngrade etc. Just follow all the tutorials carefully good luck
thewailer said:
Theres no method at this moment to put su binaries in /system, but if you dont mind you can keep the root as long as you dont restore your TA / lock bootloader as it needs a stock kernel signed by sony.
I enter twrp recovery in MM by holding power+vol down
---------- Post added at 09:42 PM ---------- Previous post was at 09:41 PM ----------
Ive installed adaway that blocks via host file.
Click to expand...
Click to collapse
I don't understand about "excluded /system part"? Flash only system file or everything
sucsong said:
I don't understand about "excluded /system part"? Flash only system file or everything
Click to expand...
Click to collapse
No, you exclude system as you restored it early via twrp, flash the rest of the firmware like modem, kernel etc. Remember to dont wipe data and apps log also
Edit: if you flash system youll loose the changes you did thats why you need to exclude from bundle when choosin in flashtool
thewailer said:
Theres no way yet to have root in mm /system, it needs to be in kernel and you cant use custom kernel and restore ta. All the questions you did are already answered in forums.
But in case your interested ill tell you what i did step by step to have original TA part with drm and "tunned" but unrooted /system.
Keep in mind that your warranty is void, you will loose all your data and you may brick your device. Messing up with TA partition is serious and dangerous stuff. The following steps are just to tell you what i did.
If you want to do so, do it at your own risk.
1. Clean install LP 3.120 via flashtool wipping user data.
2. Root with rootkit 3.xxx and installed twrp for BL
3. Backup TA
4. Unlock bootloader and install MM fw via flashtool
5. Now with BU installed boot.img and recovery.img
6. Now with root, deleted unwanted apps, installed adblocker, installed xposed, tunned some settings/apps etc.
7. When /system was how i wanted, i made a backup via twrp (data, system, cache).
8. Clean install LP 3.120 again via flashtool, wipping user data.
9. Root via rootkit and installed twrp for BL.
10. Restored TA partition
11. Restored the backup via twrp and SHUTTED DOWN the phone because itll not match with the rest of the fw.
12. Installed MM fw again via flashtool but this time, excluded /system part and DID NOT WIPE user data nor Apps log. (as ive restored MM /data backup before)
13. Started the phone.
Now i have MM with drm, locked bootloader, unrooted, xposed working with few modules, adblocker applied and some other mods. Also i receive updates via sony apps such as whats new. And the low speaker volume seems to be fixed.
Click to expand...
Click to collapse
Thanks! This was what I was looking for!
Also, will you be able to root after this? (If someone comes up with a method)
DarkerJava said:
Thanks! This was what I was looking for!
Also, will you be able to root after this? (If someone comes up with a method)
Click to expand...
Click to collapse
Your welcome. Yeah if someones finds a way to do the classic root like in LP this will be rootable for sure.
At least in the meanwhile we can have ads blocked and xposed with some modules and still keep bootloader locked with drm keys to keep functions and receive updates.
thewailer said:
Your welcome. Yeah if someones finds a way to do the classic root like in LP this will be rootable for sure.
At least in the meanwhile we can have ads blocked and xposed with some modules and still keep bootloader locked with drm keys to keep functions and receive updates.
Click to expand...
Click to collapse
This is what im going to do...
Root bootloader locked in LL
Back up TA
Unlock bootloader
MM through flashtool
Root MM (boot.img , recovery.img) (This IS what you did by flashing these, right?)
http***://forum.xda-developers.com/m4-aqua/general/root-t3421932 (going to use this boot and recovery .img)
Chang/add to Marshmallow firmware
At this point, the device should be rooted on MM, with UB TWRP and SuperSU.
Now, is it okay if I just restore TA partition NOW, instead of going back to LL? I'm not really interested in saving OTA updates... speaking of which, how did you manage to still get them? I thought as soon as you modify your device, you are excluded from OTA updates...
DarkerJava said:
This is what im going to do...
Root bootloader locked in LL
Back up TA
Unlock bootloader
MM through flashtool
Root MM (boot.img , recovery.img) (This IS what you did by flashing these, right?)
http***://forum.xda-developers.com/m4-aqua/general/root-t3421932 (going to use this boot and recovery .img)
Chang/add to Marshmallow firmware
At this point, the device should be rooted on MM, with UB TWRP and SuperSU.
Now, is it okay if I just restore TA partition NOW, instead of going back to LL? I'm not really interested in saving OTA updates... speaking of which, how did you manage to still get them? I thought as soon as you modify your device, you are excluded from OTA updates...
Click to expand...
Click to collapse
Yeah you root mm by flashimg boot.img.
First, some people reported that is recommended to restore TA partition in the same firmware as you backed them up. Second, if you restore your TA and you have custom boot.img (like that one to get the root) your device will not boot
thewailer said:
Theres no way yet to have root in mm /system, it needs to be in kernel and you cant use custom kernel and restore ta. All the questions you did are already answered in forums.
But in case your interested ill tell you what i did step by step to have original TA part with drm and "tunned" but unrooted /system.
Keep in mind that your warranty is void, you will loose all your data and you may brick your device. Messing up with TA partition is serious and dangerous stuff. The following steps are just to tell you what i did.
If you want to do so, do it at your own risk.
1. Clean install LP 3.120 via flashtool wipping user data.
2. Root with rootkit 3.xxx and installed twrp for BL
3. Backup TA
4. Unlock bootloader and install MM fw via flashtool
5. Now with BU installed boot.img and recovery.img
6. Now with root, deleted unwanted apps, installed adblocker, installed xposed, tunned some settings/apps etc.
7. When /system was how i wanted, i made a backup via twrp (data, system, cache).
8. Clean install LP 3.120 again via flashtool, wipping user data.
9. Root via rootkit and installed twrp for BL.
10. Restored TA partition
11. Restored the backup via twrp and SHUTTED DOWN the phone because itll not match with the rest of the fw.
12. Installed MM fw again via flashtool but this time, excluded /system part and DID NOT WIPE user data nor Apps log. (as ive restored MM /data backup before)
13. Started the phone.
Now i have MM with drm, locked bootloader, unrooted, xposed working with few modules, adblocker applied and some other mods. Also i receive updates via sony apps such as whats new. And the low speaker volume seems to be fixed.
Click to expand...
Click to collapse
i have locked bootloader and its not unlockable (buyed to a company) and after some test i can tell you that don't need to unlock bootloader to do this
you can do it from rooted LP with twrp, first wipe data , system and cache, install MM fromzip (you can create the zip with PRF creator using the dummy_flashable.zip instead supersu zip) after MM its installed you can now install xposed, and other kind of flashable mods, lastly, power off phone and flash tft skipping system.sin
you will have android modded and untouched bootloader without root
sergioslk said:
i have locked bootloader and its not unlockable (buyed to a company) and after some test i can tell you that don't need to unlock bootloader to do this
you can do it from rooted LP with twrp, first wipe data , system and cache, install MM fromzip (you can create the zip with PRF creator using the dummy_flashable.zip instead supersu zip) after MM its installed you can now install xposed, and other kind of flashable mods, lastly, power off phone and flash tft skipping system.sin
you will have android modded and untouched bootloader without root
Click to expand...
Click to collapse
id rather prefer to do the system changes with root in the mm firm, but sounds like a good method for those ones that cant unlock the BL.
sergioslk said:
i have locked bootloader and its not unlockable (buyed to a company) and after some test i can tell you that don't need to unlock bootloader to do this
you can do it from rooted LP with twrp, first wipe data , system and cache, install MM fromzip (you can create the zip with PRF creator using the dummy_flashable.zip instead supersu zip) after MM its installed you can now install xposed, and other kind of flashable mods, lastly, power off phone and flash tft skipping system.sin
you will have android modded and untouched bootloader without root
Click to expand...
Click to collapse
Can't everyone unlock from the Sony website?
DarkerJava said:
I have found many sites with conflicting answers, so please don't tell me "google is your best friend" for my silly/already asked questions...
So first what I have: a 5 month old, non modified M4 aqua (E2306), bought from a Canadian carrier. The firmware version is 26.1.A.3.111 (bootloader locked). My goal is to root my phone when I update to MM (using the method PiSpecialist has posted, I cannot post links), but I haven't done so for the fear of losing TA partition when unlocking BL. There is currently no way to root MM with locked bootloader.
Now, my questions:
1. When I unlock my BL, I will lose the TA partition (DRM keys) of the device. Yet to back these up, I need root access. Should I root my device while it is still on Lollipop? There are ways to root BL Lollipop correct? If so, please link a preferable way to do this.
2. Will I receive OTA updates after rooting my phone? If not, I should download and flash firmware from Xperifirm?
3. Will I lose root when flashing new firmware (e.g. flashing MM to a rooted Lollipop device)?
4. Is it dangerous to flash official firmware to a rooted phone? What is a safe way?
I found that dealing with TA is dangerous and can hard brick a phone. Anybody found a reliable script/tool to do this?
So this is pretty much what I am planning to do so far, if the above is correct:
Root my phone while it is still on Lollipop with a locked bootloader.
Backup my TA partition.
Get MM (from either flashing, or OTA, depending if I still get OTA updates)
Unlock bootloader (as there is no way to root for locked bootloaders in MM)
Root phone while it is on MM (if I don't keep the root after updating from lollipop)
Restore TA partition
DONE!
Not as many questions as I thought.... Any other advice/things to look out for would be appreciated
Click to expand...
Click to collapse
If on rooted 5.0 all you need to do is flash a pre-rooted mm zip via recovery on lollipop, no need to unlock the Bootloader for root unless you have a device that has drm-verity security activated.
Sent from my Xperia XA using XDA Labs
aidy.lucas said:
If on rooted 5.0 all you need to do is flash a pre-rooted mm zip via recovery on lollipop, no need to unlock the Bootloader for root unless you have a device that has drm-verity security activated.
Sent from my Xperia XA using XDA Labs
Click to expand...
Click to collapse
Oh yeah I completely forgot about that... someone released a prerooted rom about a week ago on the forums. This will less complicate the process for bl locked rooted MM, thanks!

Backup TA/DRM using Dirty Cow

A new tool has just been released to backup TA using the Dirty Cow exploit. After that, you should be able to unlock bootloader, flash recovery, flash su and restore TA. Then your device should be rooted with DRM retained.
I don't have a XC so I'm unable to test.
http://forum.xda-developers.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236
itandy said:
A new tool has just been released to backup TA using the Dirty Cow exploit. After that, you should be able to unlock bootloader, flash recovery, flash su and restore TA. Then your device should be rooted with DRM retained.
I don't have a XC so I'm unable to test.
http://forum.xda-developers.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236
Click to expand...
Click to collapse
I tested it on an Xperia X Compact running 34.1.A.1.198 and it seems to work, see my post here
ggow said:
I tested it on an Xperia X Compact running 34.1.A.1.198 and it seems to work, see my post here
Click to expand...
Click to collapse
Thanks!
But according to another post, actually it's impossible to keep root after TA is restored. Do you know if it's true?
itandy said:
Thanks!
But according to another post, actually it's impossible to keep root after TA is restored. Do you know if it's true?
Click to expand...
Click to collapse
That's correct. But it's important to have the TA backup for restoring full functionality.
There might be a way to use the previous DRM patches combined with flashing only the TA unit for the device key in order to have full stock functionality with root. Also would need a custom kernel for the latest stock firmware update.
Sent from my F5321 using Tapatalk
ggow said:
I tested it on an Xperia X Compact running 34.1.A.1.198 and it seems to work, see my post here
Click to expand...
Click to collapse
*Edit*
For those who are unable to navigate modern forums (like me) there is a downloads tab in the post that will have the files you need to backup TA.
JenItols said:
*Edit*
For those who are unable to navigate modern forums (like me) there is a downloads tab in the post that will have the files you need to backup TA.
Click to expand...
Click to collapse
I had the same difficulty finding where to download. lol!
but worked like a charm for me
Add firmware v.34.1.A.1.205 to the list.
http://forum.xda-developers.com/cro...ersal-dirtycow-based-ta-backup-t3514236/page7
(I have no idea why my browser crashes if I point it directly to my post lol)
I just was able to pull a copy of TA from the Customized CE1 (Central Europe) v34.1.A.3.49
When next version (hopefully Nougat) is available I plan to load the known compatible version 34.1.A.1.198 and compare checksums to verify. However, I did get a file with 34.1.A.3.49 which has the November 1st android security updates.
*edit*
After reading it appears that TA changes every boot. However, when the time comes to update software I will revert back to known version with compatibility and then re-pull TA.
ggow said:
That's correct. But it's important to have the TA backup for restoring full functionality.
There might be a way to use the previous DRM patches combined with flashing only the TA unit for the device key in order to have full stock functionality with root. Also would need a custom kernel for the latest stock firmware update.
Sent from my F5321 using Tapatalk
Click to expand...
Click to collapse
Now that we can have a backup image of TA, can we use this tool to repack the kernel and restore DRM functionality?
http://forum.xda-developers.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605
itandy said:
Now that we can have a backup image of TA, can we use this tool to repack the kernel and restore DRM functionality?
http://forum.xda-developers.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605
Click to expand...
Click to collapse
- Yes, I think we can. As long as the TA unit address for device key has not changed then it should work.
- After some rest when I have my Wits about me I am going to attempt it
Guys,
could someone please tell me step by step, how to restore TA?
EDIT - know, after restoring TA I have a password option - cant get over it? any ideas?
Ok... done
I can confirm, it works - backup and restoring
So...
This is an outline of how I have managed to get root with devicekey back into the TA partition.
NOTE:
- I am only interested in running rooted stock sony firmware so for me this is OK for the moment.
- I am looking into why FIDO_KEYS come back as unprovisioned, everything else seems fine.
Follow this at your own risk
- Install latest stock firmware via flashtool 34.1.A.3.49
- Backup TA Partition
- Unlock bootloader using Sony website
- Extract kernel.elf from kernel.sin using Flashtool
- Create root kernel using this tool
Code:
[email protected]:~/Desktop/rootkernel_v5.0_Windows_Linux$ ./rootkernel.sh kernel.elf boot.img
- Unpacking kernel
Found elf boot image
Kernel version: 3.10.84-perf-g2cfe3ef
Found appended DTB
- Detected vendor: somc (Sony), device: kugo, variant: row
- Unpacking initramfs
- Detected platform: 64-bit
- Detected Android version: 6.0.1 (sdk 23)
- dm-verity is enabled. Disable? (Say yes if you modify /system) [Y/n] y
Disabling dm-verity
- Sony RIC is enabled. Disable? [Y/n] y
Disabling Sony RIC
- There is no TWRP template for kugo. Install anyway? [y/N] n
- DRM fix is unsuppported/untested for model kugo. Install anyway? [y/N] y
- Install busybox? [Y/n] y
- Creating new initramfs
- Creating boot image
- Cleaning up
Done
- Create devicekey which is flashable via flashtool
Code:
[email protected]:~/Desktop/rootkernel_v5.0_Windows_Linux$ ./flash_dk.sh TA_F5321_QV705K140B_20161208-1905.img devicekey.ftf
- Extracting device key
- Creating FTF file for device F5321
- Cleaning up
Done
- Flash devicekey.ftf via flashtool
- Boot device into fastboot and flash boot.img
- I haven't flashed TWRP instead I booted it by:
Code:
fastboot boot twrp.img
- Flashed SR4-SuperSU-v2.78-SR4-20161115184928.zip
- Reboot device
Fantastic news! This is major. So in theory we should be able to get more rom availability now?
Android pay gets broken, right?
Will root now
tlxxxsracer said:
Fantastic news! This is major. So in theory we should be able to get more rom availability now?
Android pay gets broken, right?
Will root now
Click to expand...
Click to collapse
Should see new ROMs eventually surfacing
You're correct Android pay doesn't work with a rooted device
Dump question. I just downloaded the latest firmware using XperiFirm and created a FTF file using FlashTool. But FlashTool always show the following errors.
09/047/2016 22:47:46 - INFO - Start Flashing
09/047/2016 22:47:46 - INFO - No loader in the bundle. Searching for one
09/047/2016 22:47:54 - INFO - No matching loader found
09/047/2016 22:47:54 - WARN - No loader found or set manually. Skipping loader
09/047/2016 22:47:54 - INFO - Ending flash session
09/047/2016 22:47:54 - ERROR - null
09/047/2016 22:47:54 - ERROR - Error flashing. Aborted
Click to expand...
Click to collapse
itandy said:
Dump question. I just downloaded the latest firmware using XperiFirm and created a FTF file using FlashTool. But FlashTool always show the following errors.
Click to expand...
Click to collapse
When creating your FTF, did you include loader.sin ?
ggow said:
When creating your FTF, did you include loader.sin ?
Click to expand...
Click to collapse
In fact, there's no loader.sin in the download folder. I tried to download several firmwares using XperiFirm and they're the same.
itandy said:
In fact, there's no loader.sin in the download folder. I tried to download several firmwares using XperiFirm and they're the same.
Click to expand...
Click to collapse
I've never tried creating a custom FTF, so I'm not sure. I downloaded the UK version of 34.1.A.3.49 and was able to flash that successfully.
Have you unlocked your bootloader?
Just thinking FTF may be signed by Sony?
Maybe with a locked bootloader you can't flash custom FTF?
ggow said:
I've never tried creating a custom FTF, so I'm not sure. I downloaded the UK version of 34.1.A.3.49 and was able to flash that successfully.
Have you unlocked your bootloader?
Just thinking FTF may be signed by Sony?
Maybe with a locked bootloader you can't flash custom FTF?
Click to expand...
Click to collapse
Do you have the link where you downloaded the UK .49 firmware?
itandy said:
Do you have the link where you downloaded the UK .49 firmware?
Click to expand...
Click to collapse
I downloaded it via XperiFirm

Categories

Resources