How to Restore TA and Relock bootloader (dirty cow) - Sony Xperia XZ Questions & Answers

can someone help me how to restore TA relock bootloader, I have searched in various threads but the tutorial is difficult to understand like adb shelll is done when twrp,?
and I have a TA backup using dirty cow,
My phone os Nougat
Thankss

tumincm said:
can someone help me how to restore TA relock bootloader, I have searched in various threads but the tutorial is difficult to understand like adb shelll is done when twrp,?
and I have a TA backup using dirty cow,
My phone os Nougat
Thankss
Click to expand...
Click to collapse
1.Put your ta buckup image file anywhere in your phone.
2.boot to twrp
3.connect to pc
3.type
adb shell dd if=<ta image path> of=/dev/block/bootdevice/by-name/TA
using adb
4. when it done, your phone will not boot. connect to pc flashmode and restore using xperia companion or flashtool

Related

[Q] Please help:xperia l soft brick

my xperia L got softbricked because i think i flashed a wrong kernel.it vibrates but doesn't turn on,using flashtool i was able to boot into fastboot mode and flashmode ,but i can't even relock bootloader ...I DON'T NO WHAT TO DO NEXT
PLEASE DO HELP
THANKS IN ADVANCE
Try to flash the stock ftf, or flash a kernel with flashtool. (extract a boot.img from a cm rom, than flash it)
Tidzsi said:
Try to flash the stock ftf, or flash a kernel with flashtool. (extract a boot.img from a cm rom, than flash it)
Click to expand...
Click to collapse
Don't panic stay calm, this isn't a big problem recently i also flashed the wrong kernel in my case the phone rebooted when the First Boot screen comes up, if your phone can be connected in fastboot and Flashmode that's good news and you dont have to worry. I will Guide you step by step..
Method 1- (FASTBOOT)
If you have a nandroid backup in your SD Card then connect your phone in fastboot mode and flash boot.img by typing the command ->Fastboot flash boot boot.img in the command prompt, after this you will be able to access the recovery on the phone and then you can just RESTORE your nandroid backup.
Watch this video in case you want to use the fastboot method-
https://www.youtube.com/watch?v=I6lNwBJGvNc
This will show you how to flash fresh CWM and kernel, the download links are in video's description.
Method 2- (Flashtool)
If you don't want to use method 1 then you can use this method cuz its very easy .
1--> Get some info about how to use flashtool and if you already know how to use it then its good
2--> Download your phone's correct Stock FTF.
3--> Connect your phone in flashmode.
4--> and then flash the stock FTF
5--> Done. it will take a minute or two to boot the phone for the first time.
If you still have doubts and queries about flashtool then refer to Guides and Tutorials on using Flashtool . Don't worry its just a soft brick your phone will be okay.
Best of luck!

Xperia Z3 (D6603) Bootloop, and broked usb port

Hello to all xda comunity,i'm new in the forum ...i'm writing here because i hope to find a solution to my issue:
I've rooted my xperia z3 using kingroot and it worked flawlessly, after that i've replaced kingroot with supersu with that metod:
1)downloaded supersu zip, extracted it and placed "su" in /system and set the right permission using terminal emulator
2)I've started the script using termiunal emulator
3)i've copied "su" from /system/su to /system/xbin
4)i went into the superSU app and updated successfully the binary, and then i rebooted my phone.
After my phone rebooted i've installed the supersu zip from flashfire because i have a locked bootloader. Now my xperia z3 is stuck in the sony logo and somethimes it went to "powered by android" image.
I can boot my phone into fastboot(the blu led turn on) but the problem is that: the usb port of my phone is broked and my pc doesn't recognize my phone...
What can i do?
EDIT:
With broked usb port i mean: if i insert the cable in the usb port my phone charge but it doesn't "communicate" with my pc even if i installed all the driver.
If it could help i've a TA partition backup...but i don't think it would be useful .
I get all work....i have the unlock code and i reinstalled the driver and now my phone is recognized by computer...is there a way to backup file in fastboot?
KillersEnergy said:
I get all work....i have the unlock code and i reinstalled the driver and now my phone is recognized by computer...is there a way to backup file in fastboot?
Click to expand...
Click to collapse
AFAIK you cannot backup with fastboot but if your bootloader is unlocked you should be able to 'boot' kernels. Try with my recovery:
Code:
fastboot boot twrp-z3......img
If the recovery boot you should be able to backup your phone.
Did you try restoring the phone in flashmode? If your usb port is damaged it is risky but should work even on locked bootloader.
nailyk said:
AFAIK you cannot backup with fastboot but if your bootloader is unlocked you should be able to 'boot' kernels. Try with my recovery:
If the recovery boot you should be able to backup your phone.
Did you try restoring the phone in flashmode? If your usb port is damaged it is risky but should work even on locked bootloader.
Click to expand...
Click to collapse
Ah ehm i solve that problem a while ago and...i was able to reinstall the firmware with flashtool and without losing any data and without unlocking the bootloader :victory:...i haven't remembered update this thread...sorry XD

Urgent help relocking bootloader

Hi guys m on stock 6.0.1 rom and want to relock bootloader can u guys tell me detailed steps Pls?
https://forum.xda-developers.com/xperia-xz/how-to/how-to-unlock-bl-kernel-twrp-root-t3541648
ow, if you want to restore your TA partition and relock your Bootloader this is absolutely simple.
First of all, backup all the data you care of. Because your phone will be factory reset. Take your backuped TA partition and rename it TAbackup.img
Then, start your phone into recovery mode (TWRP)
Plug your phone with USB and check your device is recognized in recovery mode : adb devices
If it's okay, let's run this command now : adb push TAbackup.img /data/local/tmp/TAbackup.img
Then run this one : adb shell dd if=/data/local/tmp/TAbackup.img of=/dev/block/bootdevice/by-name/TA
Well, your TA partition is now back. Plug your phone off and you just have to flash a new STOCK ROM via FlashTool.
Now you have your original DRM and your bootloader is automatically relock !
Flash the stock ROM you want with Flashtool and enjoy a fresh and clean install

Rooting Xperia XA F3111 in 2019

I need assistance rooting my F3111, seems like everything is extremely vague on this forum. So I'm trying to follow both this guide https://forum.xda-developers.com/xperia-xa/how-to/f3111-f3113-f3115-root-sony-xperia-xa-t3867870 and the noob guide for nougat, both of these are not really helpful to me since there seems to be some really crucial omissions here.
My problem is that I seem to have installed all the necessary drivers, my device is detected when I do fastboot in blu on Flashtool, but that's about as far as I go because my Xperia XA (F3111) device is not shown in the list of devices. Could anyone please help me out here?
Ok, its not so difficult, if you have a basic understandig and divide the mission clearly in the necessary steps
1. I assume you have your bootloader unlocked and have backuped your data!
if not, do a backup and search the sony site how to unlock the bootloader - they have a very easy tutorial.
2. What you need:
forget flashtool!
download and install platform-tools on your PC, if not already done.
download TWRP recovery for Xperia XA and boot.img and copy the .img-files to the platform-tools folder
download Magisk.zip (or SuperSU.zip) and DRM-fix and copy it on a external SDcard on your phone.
3. Installing recovery
open cmd, navigate to platform-tools, connect phone to USB
enter adb devices, you will see some device number, if not check your drivers!
enter adb reboot bootloader your phone will now boot into bootloader mode
enter fastboot flash recovery twrp-recovery.img (or the corresponding filename)
if successful, don't reboot into system!! enter fastboot reboot recovery
or power off and hold power+vol-down to boot into TWRP recovery
4. Installing Magisk
In TWRP, (cancel any password questions), go to Wipe and format,
then go to install, change to external SD and flash boot.img and magisk.zip (or supersu.zip),
reboot, skip google and myxperia logins!
5. DRM
Power off, hold power + vol-down and install drmrestore.zip (same procedure like 4 but without wipe!)
DRM Keys with Andoid 7
Hello,
I am having difficulties while trying to backup DRM keys - TA backup with the DirtyCow Exploit (backupTA_v2).
As far as I understand the tool could not work win Nougat (7) and the only approach is to roll-back to an older version of Android for example MarshMallow. The only way to do that is to have an unlocked bootloader and if you unlock it there is no way to create such backup to use in future.
Could you please let me know if there is a chance to backup those DRM Keys with Nougat ,so I can safely unlock my bootloader?
Every help is appreciated.Thanks in advance.
i cant seem to make the phone go into flashboot mode the led turn blue but nothing show up on the screen
i enabled adb and oem unlocking

TA backup failed on SO-0H!

Hello all !
After countless reading and attempts I have not been able to backup my TA partition using any of the tools, especially Backup TA V2. I have Docomo SO-01H with Bootloader unlock allowed: yes. I downgraded to two MM roms and a Lolipop rom (flashed ftf specific to SO-01H), tried using the tool so many times but it always gives errors such as:
dirtycow failed
Error during dirtycow, please reboot and try again.
Pulling image
remote object '/data/local/tmp/TA_SO-01H_BH905YWV54_Sun0526-20192.img' does not exist
Cleaning up
TA Backup Failed!! Please reboot and try again.
NOTE: If you are running Android Nougat, you need to downgrade to use this tool.
Press any key to continue . . .
Sometimes it shows 'sorry, ta dump is not safe...'
I have USB Debugging and unknown sources checked. I also tried using Flashtool but it gave me two files, 1.ta and 2.ta and i dont know what to do with them. both files are aound 135 kb only.
Please help!
Edit: the title should be read as TA backup failed on SO-01H!
This is my first post, inconvenience is regretted.

Categories

Resources