Urgent help relocking bootloader - Sony Xperia XZ Questions & Answers

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

Related

[Q] 4.4.2 downgrade to 4.3 - backing up ROM before downgrade??

Hi
I have a standard motorola moto g 8gb unlocked phone - not tied to any uk network on 4.4.2 .
I wish to downgrade to 4.3 or change the rom to another rom.
Before i do this what is the easiest/simplest way to backup the ROM (o.s) which is not root'd ?
Or do I have to root the phone?
Also do I need to install drivers or not for the phone as Windows 7 sees the phone fine in explorer/my computer when the phone is turned on - i can drag drop files on there no problem
Thanks in advance.
M
mikiesb said:
Hi
I have a standard motorola moto g 8gb unlocked phone - not tied to any uk network on 4.4.2 .
I wish to downgrade to 4.3 or change the rom to another rom.
Before i do this what is the easiest/simplest way to backup the ROM (o.s) which is not root'd ?
Or do I have to root the phone?
Also do I need to install drivers or not for the phone as Windows 7 sees the phone fine in explorer/my computer when the phone is turned on - i can drag drop files on there no problem
Thanks in advance.
M
Click to expand...
Click to collapse
a way to backup without root? Yep.
a way to backup without unlocking the bootloader? Nope.
You see, for everything you need the bootloader unlocked: rooting, flashing, etc...
so if you want to backup anything you first need to unlock the bootloader to flash a Custom Recovery and then do the backup and that can be done without rooting the phone, or touching the rom at all.
You will need the motorola drivers and adb:
Here's to backup the NAND (needs root): http://forum.xda-developers.com/showthread.php?t=2263392
Here's to backup the ROM (Choose one): TWRP CWM
Hi
ok made a bit of progress.
never thought it would be so much of a mission !
got the bootlocker unlocked..
now how do i install the clockwork mod or twrp app sorry for my ignorance. i have followed the links you've kindly posted me.
i am familiar with dos commands etc. - so that doesn't phase me.
i've downloaded the apps from a site both clockwork and twrp - .img files - do these have to be installed via command
prompt with fastboot to install them respectively whilst the phone is plugged in with usb cable in the bootloader phase?
are there not any "windows" apps that can install these apps?
Thanks in advance
You don't have to install both of them!
mikiesb said:
Hi
ok made a bit of progress.
never thought it would be so much of a mission !
got the bootlocker unlocked..
now how do i install the clockwork mod or twrp app sorry for my ignorance. i have followed the links you've kindly posted me.
i am familiar with dos commands etc. - so that doesn't phase me.
i've downloaded the apps from a site both clockwork and twrp - .img files - do these have to be installed via command
prompt with fastboot to install them respectively whilst the phone is plugged in with usb cable in the bootloader phase?
are there not any "windows" apps that can install these apps?
Thanks in advance
Click to expand...
Click to collapse
Chk this for automated process
http://forum.xda-developers.com/showthread.php?p=50029015
and also
You do not have to install both the recoveries, either cwm or twrp not both of them!
you said you unlocked bootloader, that means you have adb installed with fastboot
copy the .img file for twrp/cwm whichever you prefer to the folder where adb is installed
rename it to recovery.img
then turn off the phone and boot into bootloader and run
Code:
fastboot flash recovery recovery.img

[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!

upgraded to marshmalow b805.can't upgrade to any verison and can't downgrade. plz hlp

i used the source in this thread:
http://forum.xda-developers.com/honor-6/help/honor-6-android-6-0-emui-4-0-update-t3314139#post65315904
upgraded directly form b521 to b805 (H60-L04), but the battery drain is very high... tried to upgrade to b806, 807, 810 all failed tried to downgrade to b521 or any other version but also failed..
please need help.. the battery empty in less than a day
You have twrp backup of your b805 ?
Steve Giordano said:
You have twrp backup of your b805 ?
Click to expand...
Click to collapse
no.. why??
For correct downgrade to lollipop, first you make a twrp backup.
Your current version is L04-C432B805 ?
Guide to make a backup:
UNLOCK BOOTLOADER WITH MULTITOOL
Download
TWRP_2.8.7.0_EN_EMUI_4.0_v4.img
AND
ADB
Copy TWRP_2.8.7.0_EN_EMUI_4.0_v4.img in the adb folder,
turn off the device and boot into fastboot mode
in adb folder run cmd.exe as administrator and type these commands:
Code:
fastboot devices
If the device is recognized correctly displaying a series of numbers;
Then type
Code:
fastboot flash recovery TWRP_2.8.7.0_EN_EMUI_4.0_v4.img
fastboot reboot
Disconnect the USB cable and press volume up + power (press 8 - 10 seconds) to enter into recovery.
Into Recovery:
BACKUP (ALL)
After finish save the backup the folder TWRP (with the backup).
After this you flash a stock recovery and stock boot.img of b803 firmware
and install downgrade package for b803, after this, install Lollipop firmware
Steve Giordano said:
For correct downgrade to lollipop, first you make a twrp backup and share it.
Your current version is L04-C432B805 ?
Guide to make a backup:
UNLOCK BOOTLOADER WITH MULTITOOL
Download
TWRP_2.8.7.0_EN_EMUI_4.0_v4.img
AND
ADB
Copy TWRP_2.8.7.0_EN_EMUI_4.0_v4.img in the adb folder,
turn off the device and boot into fastboot mode
in adb folder run cmd.exe as administrator and type these commands:
Code:
fastboot devices
If the device is recognized correctly displaying a series of numbers;
Then type
Code:
fastboot flash recovery TWRP_2.8.7.0_EN_EMUI_4.0_v4.img
fastboot reboot
Disconnect the USB cable and press volume up + power (press 8 - 10 seconds) to enter into recovery.
Into Recovery:
BACKUP (ALL)
After finish the backup you SHARE the folder TWRP (with the backup).
After this you flash a stock recovery and stock boot.img of b803 firmware
and install downgrade package for b803, after this, install Lollipop firmware
Click to expand...
Click to collapse
it says build number: L04_2015_1120_1100 .... what does this mean???
pudup said:
You need to use a downgrade package. It's a small 50kb zip file.
See here
http://pantomath.xyz/how-to-unbrick-honor-6-from-android-m/
Click to expand...
Click to collapse
i tried all the downgrade packages in this thread, but the installation fails at 36% every time,,, what shoud i do... please help
i also have a question.. i always put the update.app in the dload folder in SD card.. should i try to put it in internal storage.. will it differ or harm the phone ??
pudup said:
When I did my downgrade to unbrick my phone, j had put the small file in the internal storage and it worked fine. I had also put the full lollipop package on my sdcard because I had to do both together since i could only access the storages with twrp.
Everything worked for me and I'm on L04. If you're using L02 or L12 there was a thread somewhere here about downgrading.
Click to expand...
Click to collapse
i am L04 and tried to put it on internal storage and alos failed at 36%
i noticed that any downgrade fails at 36% and any upgrade (tried to 806, 807 and 810) all failed at 5%.. any eplanation or solution for this.. i'm afraid that when the official stable release comes out i won't be able to upgrade to it
pudup said:
Pull the marshmallow update.app file out and flash the boot.img and recovery.img and try again.
Click to expand...
Click to collapse
i don't know how to do this.. can you send me the files please. i appreciate your help.. thx
pudup said:
https://drive.google.com/folder/d/0B9EKeqAx6XkfRGdTVjlJQ1VyLUk/edit
Click to expand...
Click to collapse
i did flash boot.img and recovery.img and still downgrade failing at 36%.. what should i do now??

how to get back to stock after root

Hello,
Can someone please direct me how to go back to stock after rooting my phone and flashing RR with Franco kernel. I need to give it back to google. Also is it possible to lock bootloader again?
Thank you.
Simple process download factory image for your device, put it in bootloader mode, extract the .Zip and run flash-all.bat
Wait till it finishes setup device.
Then boot back to bootloader and use the adb command to relock bootloader
ne0ns4l4m4nder said:
Simple process download factory image for your device, put it in bootloader mode, extract the .Zip and run flash-all.bat
Wait till it finishes setup device.
Then boot back to bootloader and use the adb command to relock bootloader
Click to expand...
Click to collapse
What's the command for relocking bootloader?
https://forum.xda-developers.com/pixel/development/pixel-image-t3477107
Is this the link for the image?
Google pixel factory image. And look the code up, the more you research the less you will have to ask, it will make doing things alot easier, adb commands are very easy

How to Restore TA and Relock bootloader (dirty cow)

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

Categories

Resources