Please help me - relock bootloader - Xperia Z5 Q&A, Help & Troubleshooting

Hey,
I had unlock my bootloader and root my z5.
Now I want to back to lock bootloader so I downgrade to MARSHMALO and use iovyroot (tarestore.bat) to restore my ta backup and still the phone is unlocked.
There is any chance that I did something wrong?
I look everywhere but I couldnt find something helpful.
Please help me
security:
blobs: genric error
huk: genric error
fido keys: not provisoned, suntory error
factory reset reason: no device reset information found

Your thread here: http://forum.xda-developers.com/z5-premium/help/warranty-problem-please-help-t3393053
says that you backed up TA *after* unlocking the phone. If that's true, your TA backup is completely useless, and that's why you can't re-lock.

The right way to do it was to backup your TA partition using an older Z5 firmware (I downgraded to .152 from .200 if I remember) BEFORE unlocking your bootloader.
You should have a "TA.img" or "DK.ftf" backed up somewhere containing your TA partition/DRM keys if you did it right. You flash that .ftf file using Flashtool to restore your TA parititon once you've upgraded your phone to the latest firmware

xasbo said:
Your thread here: http://forum.xda-developers.com/z5-premium/help/warranty-problem-please-help-t3393053
says that you backed up TA *after* unlocking the phone. If that's true, your TA backup is completely useless, and that's why you can't re-lock.
Click to expand...
Click to collapse
Phazonclash said:
The right way to do it was to backup your TA partition using an older Z5 firmware (I downgraded to .152 from .200 if I remember) BEFORE unlocking your bootloader.
You should have a "TA.img" or "DK.ftf" backed up somewhere containing your TA partition/DRM keys if you did it right. You flash that .ftf file using Flashtool to restore your TA parititon once you've upgraded your phone to the latest firmware
Click to expand...
Click to collapse
Yes your right, first I downgrade to marshmallo use ivoyroot to backup my TA then unlock my bootloader.
but I didnt understand how should I flash the TA using the flash tool its only for kernels with drm fix, so how I should do it ? and with which version 6.0 or marshmalo?
and I also have taXXXX.img and dk.ftf

ordahari7 said:
Yes your right, first I downgrade to marshmallo use ivoyroot to backup my TA then unlock my bootloader.
but I didnt understand how should I flash the TA using the flash tool its only for kernels with drm fix, so how I should do it ? and with which version 6.0 or marshmalo?
and I also have taXXXX.img and dk.ftf
Click to expand...
Click to collapse
You MUST downgrade with flashtool (1) to a Lollipop build .200 (iovyroot temporary root works only on that) and then (2) restore TA.img backup you have (your personal backup from YOUR phone) using tarestore.bat from iovyroot .zip you can find here http://forum.xda-developers.com/crossdevice-dev/sony/iovyroot-temp-root-tool-t3349597
As said there:
"Flash stock firmware from flashtool (supported by iovyroot) (you are now unrooted)
Use tarestore.bat from iovyroot"
Don't get confused:
dk.ftf (made using TA.img) is for "getting DRM keys" on UNlocked/rooted bootloader with kernel supporting drmfix.
If you want to relock your BL you just need stock Lollipop, TA.img and iovyroot.zip

ninestarkoko said:
You MUST downgrade with flashtool (1) to a Lollipop build .200 (iovyroot temporary root works only on that) and then (2) restore TA.img backup you have (your personal backup from YOUR phone) using tarestore.bat from iovyroot .zip you can find here http://forum.xda-developers.com/crossdevice-dev/sony/iovyroot-temp-root-tool-t3349597
As said there:
"Flash stock firmware from flashtool (supported by iovyroot) (you are now unrooted)
Use tarestore.bat from iovyroot"
Don't get confused:
dk.ftf (made using TA.img) is for "getting DRM keys" on UNlocked/rooted bootloader with kernel supporting drmfix.
If you want to relock your BL you just need stock Lollipop, TA.img and iovyroot.zip
Click to expand...
Click to collapse
Thank you, but I Need to click on tarestore.bat? or to open a command port in the folder? if yes which command I should run

ordahari7 said:
Thank you, but I Need to click on tarestore.bat? or to open a command port in the folder? if yes which command I should run
Click to expand...
Click to collapse
- Put TA-XXXXX.img in the same folder with tarestore.bat
- Open a command window from the folder (SHIFT + right click in an empty space of the folder -> open command window)
- connect your device (you should have previously installed correct adb drivers)
- Input:
tarestore TA-XXXXX.img

ninestarkoko said:
- Put TA-XXXXX.img in the same folder with tarestore.bat
- Open a command window from the folder (SHIFT + right click in an empty space of the folder -> open command window)
- connect your device (you should have previously installed correct adb drivers)
- Input:
tarestore TA-XXXXX.img
Click to expand...
Click to collapse
Which mode the phone should be? on or in fastboot?

ordahari7 said:
Which mode the phone should be? on or in fastboot?
Click to expand...
Click to collapse
debug mode on (ADB), phone on

ninestarkoko said:
debug mode on (ADB), phone on
Click to expand...
Click to collapse
This doesn't work for me. It seems like it does, on the comptuer screen it indicates that the process is done, but in the service menu, nothing has changed. I don't get it.

ksc6000 said:
This doesn't work for me. It seems like it does, on the comptuer screen it indicates that the process is done, but in the service menu, nothing has changed. I don't get it.
Click to expand...
Click to collapse
As this is not your topic, you should explain from the beginning what you "don't get" and what did you do and are trying to accomplish. Noone can help if you are so generic

ninestarkoko said:
As this is not your topic, you should explain from the beginning what you "don't get" and what did you do and are trying to accomplish. Noone can help if you are so generic
Click to expand...
Click to collapse
Sorry for being vague. I had backed up my TA partition prior to unlocking bootloader by downgrading to lollipop and using iovyroot. So to relock, I downgraded back to lollipop, and then tried the methods here. The text in the tarestore.bat that opens up does a few things, and then indicates that it's done, but my phone was still unlocked.
I then tried this:
adb push "root/iovyroot" "/data/local/tmp/iovyroot"
adb push "root/restore.sh" "/data/local/tmp/restore.sh"
adb push TA-XXXXXXXX.img "/data/local/tmp/TA.img"
adb shell
chmod 777 /data/local/tmp/iovyroot
chmod 777 /data/local/tmp/restore.sh
/data/local/tmp/iovyroot /data/local/tmp/restore.sh
and that finally worked. It seemed to do the exact same thing in the command prompt. So I don't know why that worked and the other methods didn't.

My 2 cents: a year ago, I needed to send my Z1 Compact for repair, and I did restore my TA backup as follows: I first restored TA-XXX.img using Backup-TA-9.XX while still using a custom rom with root (CM 12.1 actually). This soft bricked the phone (as I knew it would). Then, I flashed the latest stock firmware with flashtool, wiped everything, and boom, locked bootloader with the latest stock firmware. No need to downgrade! I don't know if it would work with a Z5, though...

ksc6000 said:
This doesn't work for me. It seems like it does, on the comptuer screen it indicates that the process is done, but in the service menu, nothing has changed. I don't get it.
Click to expand...
Click to collapse
You have to flash your firmware after complete the process to relock at least that worked for me.
Firmware that be compatible with iovyroot.

acabreram said:
You have to flash your firmware after complete the process to relock at least that worked for me.
Firmware that be compatible with iovyroot.
Click to expand...
Click to collapse
I didn't need to do that. I just needed to use ADB commands to get the whole thing to work. See my post above.

ksc6000 said:
I didn't need to do that. I just needed to use ADB commands to get the whole thing to work. See my post above.
Click to expand...
Click to collapse
After use adb commands you have to flash the firmware.
But any way it'' your choice

acabreram said:
After use adb commands you have to flash the firmware.
But any way it'' your choice
Click to expand...
Click to collapse
I didn't need to do that. I downgraded to lollipop, ran the commands, rebooted the phone, and my bootloader was locked. After that I flashed marshmallow because I don't want to be stuck on lollipop obviously, but i did not NEED to flash firmware for the bootloader lock to complete.

ksc6000 said:
I didn't need to do that. I downgraded to lollipop, ran the commands, rebooted the phone, and my bootloader was locked. After that I flashed marshmallow because I don't want to be stuck on lollipop obviously, but i did not NEED to flash firmware for the bootloader lock to complete.
Click to expand...
Click to collapse
Well only like a simple comment I did
Downgrade lollipop
Ran adb commands tarestore TA-XXXXX.img
With flashtool flash lollipop (again)
Boot, activated developers options
Flash marshmallow
Boot and any thing restored bootloader:locked and drm marlin etc etc
And it's not necessary write in mayus I only try to help telling you how it worked for me.
Bye

ksc6000 said:
and that finally worked. It seemed to do the exact same thing in the command prompt. So I don't know why that worked and the other methods didn't.
Click to expand...
Click to collapse
Glad it worked

So the flashtool can't relock the bootloader of the Z5?
The above steps are the only way?

Related

[Q] about root

are the modaco's rooting method still viable ? I'm seeing people saying it not work.
and can we root without having to flash other recovery, just using the default one (fastboot).
Nope, no rooting methods without unlocking bootloader yet. Most reliable method is to use custom recovery to root, and also some other fastboot (which will need unlocked bootloader)
hemanthmahesh said:
Nope, no rooting methods without unlocking bootloader yet. Most reliable method is to use custom recovery to root, and also some other fastboot (which will need unlocked bootloader)
Click to expand...
Click to collapse
root with unlocking bootloader is fine, my question is can we root without flashing other recovery (eg. cwm) ?
Recovery is not working in Moto g sometimes.. It's a known issue.. So better flash cwm to avoid bricking
Sent from my XT1033 using XDA Premium 4 mobile app
padhu1989 said:
Recovery is not working in Moto g sometimes.. It's a known issue.. So better flash cwm to avoid bricking
Sent from my XT1033 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
oh thank you for the info, then I root with cwm :good:
Stock recovery is pretty useless now, I hardly have any idea what it can even be used for other than those ota updates. Do you not want to move away from stock recovery cause you might not install firmware updates? You can install alternate recovery just for rooting and revert back to stock if you really want to.
hemanthmahesh said:
Stock recovery is pretty useless now, I hardly have any idea what it can even be used for other than those ota updates. Do you not want to move away from stock recovery cause you might not install firmware updates? You can install alternate recovery just for rooting and revert back to stock if you really want to.
Click to expand...
Click to collapse
I just being careful if not how to send warranty
Well, if you are unlocking the bootloader, you won't be able to claim warranty anyway.
hemanthmahesh said:
Well, if you are unlocking the bootloader, you won't be able to claim warranty anyway.
Click to expand...
Click to collapse
oh yeah forgot about that, but what if after root, I lock back the bootloader ?
is the root still there ?
To lock bootloader you have flash your stock firmware, which in a way would be a complete reset, so no root left. Also, whatever you do after with the phone, once you request the unlock code from the moto website, they will consider your phone unlocked, hence no warranty. You can relock to try your luck and they just might not care if you are lucky.
Be very careful with locking bootloader though, locking your bootloader in a wrong way (wrong firmware, not flashing all files, downgrading) will create a big mess. In my opinion, stay away from locking bootloader!
hemanthmahesh said:
To lock bootloader you have flash your stock firmware, which in a way would be a complete reset, so no root left. Also, whatever you do after with the phone, once you request the unlock code from the moto website, they will consider your phone unlocked, hence no warranty. You can relock to try your luck and they just might not care if you are lucky.
Be very careful with locking bootloader though, locking your bootloader in a wrong way (wrong firmware, not flashing all files, downgrading) will create a big mess. In my opinion, stay away from locking bootloader!
Click to expand...
Click to collapse
thank you man, btw can you help me with rooting by flashing cwm ?
You need working adb and fastboot drivers.
Download here:
http://www.mymotocast.com/download/MDM?platform=windows (drivers)
https://docs.google.com/file/d/0B1S0LCuXCnnmSWh6NGJmSE1BUWc (minimal adb and fastboot files)
http://forum.xda-developers.com/showthread.php?t=2563599 (cwm download)
Guide:
1. http://forum.xda-developers.com/showpost.php?p=47705438&postcount=6 (For unlocking bootloader)
2. After unlocking (which will be equal to a complete reset, no files left in your "sd card"), boot into fastboot mode again and use this command:
fastboot flash recovery recovery-clockwork-6.0.4.7-falcon.img (or whatever is the name of recovery image file)
or use this tool:
http://forum.xda-developers.com/showthread.php?t=2635706
You can also use that too to push supersu to sd card or manually place it. Reboot to recovery (adb reboot recovery) and flash that zip file.
hemanthmahesh said:
You need working adb and fastboot drivers.
Download here:
http://www.mymotocast.com/download/MDM?platform=windows (drivers)
https://docs.google.com/file/d/0B1S0LCuXCnnmSWh6NGJmSE1BUWc (minimal adb and fastboot files)
http://forum.xda-developers.com/showthread.php?t=2563599 (cwm download)
Guide:
1. http://forum.xda-developers.com/showpost.php?p=47705438&postcount=6 (For unlocking bootloader)
2. After unlocking (which will be equal to a complete reset, no files left in your "sd card"), boot into fastboot mode again and use this command:
fastboot flash recovery recovery-clockwork-6.0.4.7-falcon.img (or whatever is the name of recovery image file)
or use this tool:
http://forum.xda-developers.com/showthread.php?t=2635706
You can also use that too to push supersu to sd card or manually place it. Reboot to recovery (adb reboot recovery) and flash that zip file.
Click to expand...
Click to collapse
thanks man, seriously million of thanks

[D2303] Does anyone have Stock Firmware UK Generic?!

I have an M2, I did, something to it which involved flashing something and unlocking the bootloader, It got bricked, and the only way i could recover it is with the tiny off button next to the Sim-Slot (Lifesaver, Thanks Sony) and putting it into that flash mode thing where the light goes blue, and Flashing a stock firmware, Or so I thought, It was customised, Also in the whole process I somehow Downgraded to Jelly Bean, and the Updater says that I have custom firmware, I have clockworkmod, But it didnt work properly and now i have no recovery menu at all also Miracast is broken, HSDP (Some sort of DRM thing) failed probably caused by one of these issues
So yeah does anyone have a Firmware for my device so that the Sony Updater will accept it? Don't care which android version, as long as It can be updated back up to KitKat and is UK GENERIC no customisations
All i wanted was to root my phone to get a WiFi password that I lost
Thanks
bigglescat5 said:
I have an M2, I did, something to it which involved flashing something and unlocking the bootloader, It got bricked, and the only way i could recover it is with the tiny off button next to the Sim-Slot (Lifesaver, Thanks Sony) and putting it into that flash mode thing where the light goes blue, and Flashing a stock firmware, Or so I thought, It was customised, Also in the whole process I somehow Downgraded to Jelly Bean, and the Updater says that I have custom firmware, I have clockworkmod, But it didnt work properly and now i have no recovery menu at all also Miracast is broken, HSDP (Some sort of DRM thing) failed probably caused by one of these issues
So yeah does anyone have a Firmware for my device so that the Sony Updater will accept it? Don't care which android version, as long as It can be updated back up to KitKat and is UK GENERIC no customisations
All i wanted was to root my phone to get a WiFi password that I lost
Thanks
Click to expand...
Click to collapse
I guess XperiFirm is what you need:
http://forum.xda-developers.com/cro...xperifirm-xperia-firmware-downloader-t2834142
quake73 said:
I guess XperiFirm is what you need:
http://forum.xda-developers.com/cro...xperifirm-xperia-firmware-downloader-t2834142
Click to expand...
Click to collapse
Will Version "Customised UK" allow me to Update using the Sony Updater?
bigglescat5 said:
Will Version "Customised UK" allow me to Update using the Sony Updater?
Click to expand...
Click to collapse
No the sony software picks up any device if the bootloader is unlocked. it will only re-flash the firmware if the bootloader is locked.
However you can use flash tool http://www.flashtool.net/index.php and it will do it for unlocked bootloaders.
HatchetEgg said:
No the sony software picks up any device if the bootloader is unlocked. it will only re-flash the firmware if the bootloader is locked.
However you can use flash tool and it will do it for unlocked bootloaders.
Click to expand...
Click to collapse
Can I Re-Lock the bootloader? And how can Flashtool update my phone?
bigglescat5 said:
Can I Re-Lock the bootloader? And how can Flashtool update my phone?
Click to expand...
Click to collapse
Make sure the drivers are installed for your phone on you laptop/PC first.
once you have downloaded a Firmware for the M2 you put the firmware in the firmware folder of the flashtool directory then you select the thunderbolt icon. select flash mode and follow the instructions. Also it will say press the back button in the instructions instead you need to press vol down for flash mode or up for fastboot mode.
Once done you get a little window that shows and just select the firmware you want to flash and the way you go.
you can unlock and re-lock bootloaders with flashtool but I think you need to have unlocked it with flash tool to do that.
Try these links:
Device: Xperia M2 (D2303)
CDA: 1281-1548
Customization : CE
Release: 18.0.C.1.13 / R1B
https://drive.google.com/file/d/0BxfA3HIG47hxLXFjQV92UC0zNTg/edit?pli=1
Device: Xperia M2 (D2303)
CDA: 1281-1548
Customized CE1
Release: 18.3.1.C.1.13 / R1B
https://docs.google.com/file/d/0BxfA3HIG47hxMElLNzFhQUFXOTg/edit?pli=1
bigglescat5 said:
Will Version "Customised UK" allow me to Update using the Sony Updater?
Click to expand...
Click to collapse
If you only need a functional KK 4.4.4 phone then choose Customized UK 18.3.1.C.1.13 in xperifirm, download it, wait for it to unpack the files.
Then you need to use flashtool, got to Tools->Bundles->Create to create a flashable .ftf file. Select all the files in the folder where you downloaded the rom, fill in the fields for version/branding/device and click create.
Lastly, you click the Lightning button in flashtool, select flashmode, select your newly created ftf.
When it asks to connect your phone, power off the phone, press&hold the VolDown button when inserting the usb cable, the led should blink briefly green once. The flashing should begin at that moment.
quake73 said:
If you only need a functional KK 4.4.4 phone then choose Customized UK 18.3.1.C.1.13 in xperifirm, download it, wait for it to unpack the files.
Then you need to use flashtool, got to Tools->Bundles->Create to create a flashable .ftf file. Select all the files in the folder where you downloaded the rom, fill in the fields for version/branding/device and click create.
Lastly, you click the Lightning button in flashtool, select flashmode, select your newly created ftf.
When it asks to connect your phone, you press&hold the VolDown button when inserting the usb cable. The flashing should begin at that moment.
Click to expand...
Click to collapse
XperiFirm just throws a error, wants me to reinstall JRE, I have, and I have uninstalled JDK and stuff too with the latest version
WHY DO ALL MY DEVICES HATE ME!
bigglescat5 said:
XperiFirm just throws a error, wants me to reinstall JRE, I have, and I have uninstalled JDK and stuff too with the latest version
WHY DO ALL MY DEVICES HATE ME!
Click to expand...
Click to collapse
from the xperifirm page:
** If you have Flashtool installed, Java Runtime is bundled with it and doesn't have to be installed separately. Just extract XperiFirm's files to Flashtool's folder and run XperiFirm.exe from there.**
quake73 said:
from the xperifirm page:
** If you have Flashtool installed, Java Runtime is bundled with it and doesn't have to be installed separately. Just extract XperiFirm's files to Flashtool's folder and run XperiFirm.exe from there.**
Click to expand...
Click to collapse
Its downloading now , Is there any way to make it so when I flash it later it will not wipe my phone, Not essential, but i hate reinstalling and reconfiguring everything
bigglescat5 said:
Its downloading now , Is there any way to make it so when I flash it later it will not wipe my phone, Not essential, but i hate reinstalling and reconfiguring everything
Click to expand...
Click to collapse
At the ftf selection window, under [Wipe:], uncheck [DATA]. That way, your data will not get erased and It might save you from reinstalling everything.... In theory
Try with DATA unchecked first, see if all is fine. If not then reflash the clean way, with DATA checked. Tell us here how it went.
quake73 said:
At the ftf selection window, under [Wipe:], uncheck [DATA]. That way, your data will not get erased and It might save you from reinstalling everything.... In theory
Try with DATA unchecked first, see if all is fine. If not then reflash the clean way, with DATA checked. Tell us here how it went.
Click to expand...
Click to collapse
Flashed without data, It seemed to flash everything but When I booted the phone, It was still JellyBean where did all the flashes go?
bigglescat5 said:
Flashed without data, It seemed to flash everything but When I booted the phone, It was still JellyBean where did all the flashes go?
Click to expand...
Click to collapse
Then, 2 possibilities come to mind, you either didnt download the latest version (18.3.1.C.1.13) or didnt select it correctly in flashtool. I hope you only unchecked DATA, not checked everything under Exclude
How much time did the flashing process take, it should be, maybe more than 5 minutes
I downloaded Kitkat for sure, The only other thing i deselected was TA, because I heard that TA is bad and kills your phone
bigglescat5 said:
I downloaded Kitkat for sure, The only other thing i deselected was TA, because I heard that TA is bad and kills your phone
Click to expand...
Click to collapse
Then i'm out of ideas. as for that TA, i honestly am not sure what that exactly is or wheteher it is lost during unlocking. i leave it unckecked, have heard that flashtool decides if it needs to be flashed.
here is how i would flash 4.4.4:
(do you have all those parts? the ones in red? maybe not all but system.sin is THE android, kernel is important, too)
quake73 said:
Then i'm out of ideas. as for that TA, i honestly am not sure what that exactly is or wheteher it is lost during unlocking. i leave it unckecked, have heard that flashtool decides if it needs to be flashed.
here is how i would flash 4.4.4:
Click to expand...
Click to collapse
I will try flashing TA
bigglescat5 said:
I will try flashing TA
Click to expand...
Click to collapse
ok, now i saw...seems you downloaded 18.0.C.1.13
the lates android version for m2 in xperifirm is 18.3.1.C.1.13, i guess you got the wrong version.
Oh wait, I must be flashing the wrong rom lol
Ok i figured it out i somehow made the bundle thing wrong and Flashtool didnt pick it up, i am a total idiot , I flashed the rom i orginally used to un-brick my phone

Questions About Relock Bootloader - Restore TA Sony XZ

Hello , I hope you all doing good,I'm new , I had read a lot of Threads here , not completely but a lot of threads help me when i was completely lost so Thank to all members.
But now I got some questions about bootloader Relock , and Backup TA Partiton, first of all , I take a lot of time to do all steps because I use this Tutorial :
https://forum.xda-developers.com/xperia-xz/how-to/how-to-unlock-bl-kernel-twrp-root-t3541648 Thanks to @DHGE and @nathan30
but fail at some points( Flash Nougat and Unlock Bootloader)
So I Downgrade to MM, I save the 'famous' TA partition,everything was good ,next step was to flash a Nougat , and I successfully do it with this thread by @Leonne: https://forum.xda-developers.com/xperia-xz/help/famous-fsc-file-t3571093 Thank you dude
Next steps , Unlock the bootloader , and after a lot of command fail with Flashtool and adb command( with the good code by sony official website), I do it using another thread , this one by @lucaszell :
https://forum.xda-developers.com/xperia-z/help/solved-bootloader-unlocking-problems-t2364334/page4 Thank you
I flash Androkernel and TWRP then SuperSu , I became very affraid of ' Fail messages' and I think that ' Soft Brick and Brick' can kill me.
So how can I relock my Bootloader and restore my TA partition Properly , can I follow the first thread,why I ask this question,it's because I don't do everything as write in the first thread:
Now, 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
Click to expand...
Click to collapse
That can brick my device ? I also got a warning at each boot , ... Your phone can't be trusted or something like that ... not important,but How can I restore my XZ like it just go out from the Sony store...Also I'm sorry ,my English is disgusting
Dorynous said:
Hello , I hope you all doing good,I'm new , I had read a lot of Threads here , not completely but a lot of threads help me when i was completely lost so Thank to all members.
But now I got some questions about bootloader Relock , and Backup TA Partiton, first of all , I take a lot of time to do all steps because I use this Tutorial :
https://forum.xda-developers.com/xperia-xz/how-to/how-to-unlock-bl-kernel-twrp-root-t3541648 Thanks to @DHGE and @nathan30
but fail at some points( Flash Nougat and Unlock Bootloader)
So I Downgrade to MM, I save the 'famous' TA partition,everything was good ,next step was to flash a Nougat , and I successfully do it with this thread by @Leonne: https://forum.xda-developers.com/xperia-xz/help/famous-fsc-file-t3571093 Thank you dude
Next steps , Unlock the bootloader , and after a lot of command fail with Flashtool and adb command( with the good code by sony official website), I do it using another thread , this one by @lucaszell :
https://forum.xda-developers.com/xperia-z/help/solved-bootloader-unlocking-problems-t2364334/page4 Thank you
I flash Androkernel and TWRP then SuperSu , I became very affraid of ' Fail messages' and I think that ' Soft Brick and Brick' can kill me.
So how can I relock my Bootloader and restore my TA partition Properly , can I follow the first thread,why I ask this question,it's because I don't do everything as write in the first thread:
That can brick my device ? I also got a warning at each boot , ... Your phone can't be trusted or something like that ... not important,but How can I restore my XZ like it just go out from the Sony store...Also I'm sorry ,my English is disgusting
Click to expand...
Click to collapse
if u just wanna recover to stock easiest path is use emma
download it from here https://developer.sonymobile.com/open-devices/flash-tool/how-to-download-and-install-the-flash-tool/
acehoangtt said:
if u just wanna recover to stock easiest path is use emma
download it from here https://developer.sonymobile.com/open-devices/flash-tool/how-to-download-and-install-the-flash-tool/
Click to expand...
Click to collapse
Emma will not relock the bootloader. Emma is official Sony software and they do not support relocking the bootloader.
The only way back to stock with a locked bootloader is to flash a FTF then restore your TA partition.
gregbradley said:
Emma will not relock the bootloader. Emma is official Sony software and they do not support relocking the bootloader.
The only way back to stock with a locked bootloader is to flash a FTF then restore your TA partition.
Click to expand...
Click to collapse
How can I do that step by step?
Dorynous said:
How can I do that step by step?
Click to expand...
Click to collapse
https://forum.xda-developers.com/sitesearch.php?q=restore TA partition
If I backup my TA on Mm I got to downgrade to restore it ?
Dorynous said:
If I backup my TA on Mm I got to downgrade to restore it ?
Click to expand...
Click to collapse
No
Your backup contains the content of one partition.
The content of TA stays the same throughout the life of your device unless you or a malicious software fiddles with it.
According to what I did to root my phone I can backup my TA with the backup ta tool without worry?
Dorynous said:
Hello , I hope you all doing good,I'm new , I had read a lot of Threads here , not completely but a lot of threads help me when i was completely lost so Thank to all members.
But now I got some questions about bootloader Relock , and Backup TA Partiton, first of all , I take a lot of time to do all steps because I use this Tutorial :
https://forum.xda-developers.com/xperia-xz/how-to/how-to-unlock-bl-kernel-twrp-root-t3541648 Thanks to @DHGE and @nathan30
but fail at some points( Flash Nougat and Unlock Bootloader)
So I Downgrade to MM, I save the 'famous' TA partition,everything was good ,next step was to flash a Nougat , and I successfully do it with this thread by @Leonne: https://forum.xda-developers.com/xperia-xz/help/famous-fsc-file-t3571093 Thank you dude
Next steps , Unlock the bootloader , and after a lot of command fail with Flashtool and adb command( with the good code by sony official website), I do it using another thread , this one by @lucaszell :
https://forum.xda-developers.com/xperia-z/help/solved-bootloader-unlocking-problems-t2364334/page4 Thank you
I flash Androkernel and TWRP then SuperSu , I became very affraid of ' Fail messages' and I think that ' Soft Brick and Brick' can kill me.
So how can I relock my Bootloader and restore my TA partition Properly , can I follow the first thread,why I ask this question,it's because I don't do everything as write in the first thread:
That can brick my device ? I also got a warning at each boot , ... Your phone can't be trusted or something like that ... not important,but How can I restore my XZ like it just go out from the Sony store...Also I'm sorry ,my English is disgusting
Click to expand...
Click to collapse
1. with XZ its no turning back option, if you relock you bootloader, the device will keep shutting down
2. you will have to first restore TA.IMG (of your OWN DEVICE!!!!) using dirtycow script! on rooted phone having modified kernel!
3. then flash any ORIGINAL stock rom (either 6, 7 or 7.1.1)
4. using FLASTHOOL you can RELOCK you BOOTLOADER with the same key! (KEEP THE KEY SAVED)
now you will have
original stock rom installed, stock kernel, and TA.img in play! so relocking bootloader should be fine!
YasuHamed said:
1. with XZ its no turning back option, if you relock you bootloader, the device will keep shutting down
2. you will have to first restore TA.IMG (of your OWN DEVICE!!!!) using dirtycow script! on rooted phone having modified kernel!
3. then flash any ORIGINAL stock rom (either 6, 7 or 7.1.1)
4. using FLASTHOOL you can RELOCK you BOOTLOADER with the same key! (KEEP THE KEY SAVED)
now you will have
original stock rom installed, stock kernel, and TA.img in play! so relocking bootloader should be fine!
Click to expand...
Click to collapse
Sorry to be so blunt: this is bull****!
Stick with what you'll find in this forum or in the results of the link in post #5 in this thread.
DHGE said:
Sorry to be so blunt: this is bull****!
Stick with what you'll find in this forum or in the results of the link in post #5 in this thread.
Click to expand...
Click to collapse
well then the only way to find out is let the user brick his phone
thanks for reply
YasuHamed said:
well then the only way to find out is let the user brick his phone
thanks for reply
Click to expand...
Click to collapse
Well, I think @Dorynous is a bit lost but on this journey he edited post #1 in this thread. There he quoted a proper procedure to reverse the unlocking.
The procedure you describe will not work (wrong tools, no functionality for XZ, ...) at best or/and WILL brick the device.
+1 just relocked my bootloader 10 min ago...
Hey @Pipould,you do it using the quote in the first post by @DHGE?
Or you do it using @YasuHamed post?
Your device working fine? No more warning like... You device can be trust... ??
Dorynous said:
Hey @Pipould,you do it using the quote in the first post by @DHGE?
Or you do it using @YasuHamed post?
Your device working fine? No more warning like... You device can be trust... ??
Click to expand...
Click to collapse
JUst followed this https://forum.xda-developers.com/xperia-xz/how-to/how-to-unlock-bl-kernel-twrp-root-t3541648 with my proper TA backup, good as new.
Dorynous said:
Hey @Pipould,you do it using the quote in the first post by @DHGE?
Or you do it using @YasuHamed post?
Your device working fine? No more warning like... You device can be trust... ??
Click to expand...
Click to collapse
the process described by me and mention here
https://forum.xda-developers.com/xperia-xz/how-to/how-to-unlock-bl-kernel-twrp-root-t3541648
is similar,
you can only relock you bootloader ONCE you have TA.img instate and untouched kernel flashed.
if @Pipould just relock his bootloader, the device won't boot and keep displaying warning.
YasuHamed said:
the process described by me and mention here
https://forum.xda-developers.com/xperia-xz/how-to/how-to-unlock-bl-kernel-twrp-root-t3541648
is similar,
you can only relock you bootloader ONCE you have TA.img instate and untouched kernel flashed.
if @Pipould just relock his bootloader, the device won't boot and keep displaying warning.
Click to expand...
Click to collapse
Yeap, I don't see the point of relocking if you don't have TA.
I have my TA img and I'm on the Androplus Kernel

Return to stock & re-lock bootloader: HOW?

Hello,
I recently unlocked the bootloader and installed TWRP as custom recovery, but I'm now in need to return full-stock:
could anyone please tell me (or link me - I searched but I didn't found anything about it) a full procedure to restore the phone status?
I need a stock ROM, I guess, but then what? Flash it in TWRP? Does it also include stock recovery or is it a separate file instead?
Thank you very much!
shakathesaint said:
Hello,
I recently unlocked the bootloader and installed TWRP as custom recovery, but I'm now in need to return full-stock:
could anyone please tell me (or link me - I searched but I didn't found anything about it) a full procedure to restore the phone status?
I need a stock ROM, I guess, but then what? Flash it in TWRP? Does it also include stock recovery or is it a separate file instead?
Thank you very much!
Click to expand...
Click to collapse
so you do know that relocking the bootloader will cause a factory reset and all data will be wiped from device.
First, all you need to do is download a full rom update and flash in system local update. that will put stock software and stock recovery back.
second, Reboot phone to bootloader mode. Then you just type in cmd "fastboot oem lock"
MrSteelX said:
so you do know that relocking the bootloader will cause a factory reset and all data will be wiped from device.
First, all you need to do is download a full rom update and flash in system local update. that will put stock software and stock recovery back.
second, Reboot phone to bootloader mode. Then you just type in cmd "fastboot oem lock"
Click to expand...
Click to collapse
Thanks for your fast answer!
So is it better to flash stock ROM through local update than through TWRP? Or it's the same procedure both ways?
Thanks again!
They both will work.
Use the msmdownloadtool it's easiest, safest and fastest way.
Lownita said:
Use the msmdownloadtool it's easiest, safest and fastest way.
Click to expand...
Click to collapse
File name : 6T_MsmDownloadTool_v4.0.58_OOS_v9.0.12
Hi, i have downloaded many times file above, why the said .rar file can not be extracted?
What is content the .rar file above?
Download Source : https://forum.xda-developers.com/oneplus-6t/how-to/tool-6t-msmdownloadtool-v4-0-oos-9-0-5-t3867448
DancingFate said:
File name : 6T_MsmDownloadTool_v4.0.58_OOS_v9.0.12
Hi, i have downloaded many times file above, why the said .rar file can not be extracted?
What is content the .rar file above?
Download Source : https://forum.xda-developers.com/oneplus-6t/how-to/tool-6t-msmdownloadtool-v4-0-oos-9-0-5-t3867448
Click to expand...
Click to collapse
This is for 6t. Is OP at 6t or 6?
Latest and greatest https://forum.xda-developers.com/oneplus-6/how-to/op6-collection-unbrick-tools-t3914109
These tools will return your phone to 100% stock.
I've use them multiple times.
I recommend using these qualcomm drivers.
https://drive.google.com/file/d/1k1cXnVaz5d2IRLqxFE9AiY8GFMmx3CDG/view?usp=sharing

November 2019 security update is now available

83.7MB
Installation without any troubles. No major changes. d2tw still not working.
Nothing to say
My device gives an error when i try to install.
Says: Failed to install update, tap here for more information.
When i tap, there is no 'more information' !
Stupid Android!
Install and nothing change, still have problem on sim1, when turn on data on sim1 i lost network.
perfect_ said:
My device gives an error when i try to install.
Says: Failed to install update, tap here for more information.
When i tap, there is no 'more information' !
Stupid Android!
Click to expand...
Click to collapse
Same Problem With My Device.
Anyways, Solution Is Here...
1st We Need To Unlock Bootloader Then Flash Currently Available Stock Rom Through MI Flash Tool.
Thanks,
MUHAMMAD Asif Qasim
perfect_ said:
My device gives an error when i try to install.
Click to expand...
Click to collapse
If the OTA fails, you can find out which partitions it doesn't like from the logcat. If you have a fastboot image, you can reflash the affected partitions. I have had to restore both system.img and vendor.img since 10.0.10.0 (the fact that I've been using a custom bootanim definitely does not help).
Code:
adb logcat | grep update_engine
a1291762 said:
If the OTA fails, you can find out which partitions it doesn't like from the logcat. If you have a fastboot image, you can reflash the affected partitions. I have had to restore both system.img and vendor.img since 10.0.10.0 (the fact that I've been using a custom bootanim definitely does not help).
Code:
adb logcat | grep update_engine
Click to expand...
Click to collapse
Hello Dear,
Can You Guide Stepwise How To Fix Partition ? I Do Not Want To Unlock The Bootloader Or Flashing The Stock ROM. I Just Want To Fix Issue That Causing The Update.
In Addition to That My Device Is Updated aon Last October.
Your Help Will Be Highly Appreciated In This Regards.
Thank You In Advance
aasiaasi said:
Can You Guide Stepwise How To Fix Partition ? I Do Not Want To Unlock The Bootloader Or Flashing The Stock ROM. I Just Want To Fix Issue That Causing The Update.
Click to expand...
Click to collapse
I'm used to flashing from fastboot but I'm pretty sure that only works with an unlocked bootloader. I've read that you can use miflash with a locked bootloader but you need a complete rom and the most recent one is 10.0.13.0
Sorry
a1291762 said:
I'm used to flashing from fastboot but I'm pretty sure that only works with an unlocked bootloader. I've read that you can use miflash with a locked bootloader but you need a complete rom and the most recent one is 10.0.13.0
Sorry
Click to expand...
Click to collapse
Thank You For Time And Reply.
OKay What Should We Do To Fix The (Partition) Problem. ? Complete Stepwise Guide Will Be Beneficial To Us.
One More Question.
Is There A Way To Get Every Month OTA Installed Without Interrupting (Unlock Bootloader , Rooted With Magisk) ? If Yes , So What Could Be The Steps/Guide.
Thanks.
aasiaasi said:
Is There A Way To Get Every Month OTA Installed Without Interrupting (Unlock Bootloader , Rooted With Magisk) ? If Yes , So What Could Be The Steps/Guide.
Click to expand...
Click to collapse
If you just have Magisk, this is all you should need to do.
https://forum.xda-developers.com/mi...ll-magisk-proper-support-ota-t3836952/page100
If you have other stuff that breaks that process (eg. Magisk + TWRP) then you need extra steps.
https://forum.xda-developers.com/mi...to-10-0-7-0-ota-keeping-magisk-t3916863/page9
---------- Post added at 12:23 AM ---------- Previous post was at 12:13 AM ----------
aasiaasi said:
OKay What Should We Do To Fix The (Partition) Problem. ? Complete Stepwise Guide Will Be Beneficial To Us.
Click to expand...
Click to collapse
Previously you said you did not have an unlocked bootloader, but you asked for OTA instructions with Magisk...
Since you don't have backups of the modified partitions, you should backup your data then install 10.0.13.0 from fastboot image. This is the only option if your bootloader is locked (I think that miflash allows this?)
If you are modifying your device I'd suggest backing up the partitions that were rejected by the upgrade (logcat). See the advanced guide I posted for details.
If you have backups you just need to restore the partitions the upgrade is complaining about (logcat).

Categories

Resources