Unable to Relock Bootloader - Please Help! - Sony Xperia X Performance Questions & Answers

So recently I tried rooting my xperia xp and it has failed horribly. I managed to unlock my bootloader and install twrp recovery but after doing so my phone could not reboot into system without running into a bootloop. I've tried to perform a software repair on my phone with the xperia companion, but as you know my bootloader is unlocked at the moment so that couldn't help me.
The issue with relocking here is that when I enter "./fastboot oem lock" on my terminal it replies as:
"FAILED (remote: unknown command)"
I really do not want to have to purchase a new phone just because of the bootloader, it'd be so so appreciated if somebody could help me out here

Also
I'd also like point out that I've also tried the other two commands I could find:
"./fastboot oem relock" and "./fastboot flashing lock"

There are two ways to relock bootloader:
1. Restore TA partition
2.Use Flashtool to relock
But if you encounter a bootloop after unlocking bootloader, try flash Magisk first.

Sony Xperia XZ Premium (single sim, G8141) owner here.
Is there really no way to relock the bootloader?
I don't have a TA backup. I have flashed a completely stock ROM with flashtool (Emma), I just want to relock a bootloader for a warranty claim (purely hardware, faulty USB connector, took me 20 minutes to get the computer to recognize it, at this point it won't even charge most of the time).
I have tried fastboot oem relock command even with the USB vendor ID that I also had to specify when unlocking it in the first place. New flashtool (Emma) does not seem to have any option to relock (or even unlock) BL, nor does it display any information about it. Old flashtool says TA read fail and that my bootloader cannot be relocked.
The boot screen tells me to please lock my bootloader so I'm assuming there must be a way, I just haven't found it yet.

Related

error unlocking bootloader every time

Every time i try to unlock my bootloader of my xperia z gives me a error. And after that it comes in a bootloop.
It treit flashtool and via commands but had no luck.
I had my bootloader unlocked before and relocked via flashtool.
But now as i tried it is giving me this error.
i haven't backup my drm keys i forget that.
Please help !!!!!!!!!

PLEASE HELP! Soft-bricked

So I bought this HTC One M7, the guy claims its soft bricked and hes not able to fix it because hes technically challenged. So I take it home boot it up, its stuck in a boot loop so I boot it into fastboot the bootloader is locked so I try to connect it to adb, no luck, there is no driver on this internet that I have found that will connect to adb. So I resort to fastboot, I "fastboot devices" and sure enough it connects (wicked), first I try to flash recovery, I try to boot recovery, I tried to update zip, no luck in flashing anything because I either get a signature fail or a "remote: not allowed" then I realize my bootloader is locked, I try to unlock it "fastboot oem unlock" and of course I get a "INFO [ERR] command error". I also tried to change my cid to 11111111 and no luck. I have actually tried everything I can think of I cant get s-off to work my recovery is stock as well so theres no possibility of OTG cable plus a usb. My fastboot will not flash anything in fastboot, I cant push any files to the phone, I cant connect to adb, I cant use my recovery. So what in the actual can I do? I think i'm f**ked.
Thank you in advance for anything you can help me with.
jonrogers61 said:
So I bought this HTC One M7, the guy claims its soft bricked and hes not able to fix it because hes technically challenged. So I take it home boot it up, its stuck in a boot loop so I boot it into fastboot the bootloader is locked so I try to connect it to adb, no luck, there is no driver on this internet that I have found that will connect to adb. So I resort to fastboot, I "fastboot devices" and sure enough it connects (wicked), first I try to flash recovery, I try to boot recovery, I tried to update zip, no luck in flashing anything because I either get a signature fail or a "remote: not allowed" then I realize my bootloader is locked, I try to unlock it "fastboot oem unlock" and of course I get a "INFO [ERR] command error". I also tried to change my cid to 11111111 and no luck. I have actually tried everything I can think of I cant get s-off to work my recovery is stock as well so theres no possibility of OTG cable plus a usb. My fastboot will not flash anything in fastboot, I cant push any files to the phone, I cant connect to adb, I cant use my recovery. So what in the actual can I do? I think i'm f**ked.
Thank you in advance for anything you can help me with.
Click to expand...
Click to collapse
You can't use adb unless you're booted to OS or custom recovery. Also you can't unlock bootloader with "fastboot oem unlock" unless your phone is GPE version. For Sense you need unlock token from htcdev. In order to flash anything, you need custom recovery, and you can flash it only if your bootloader is unlocked
donkeykong1 said:
You can't use adb unless you're booted to OS or custom recovery. Also you can't unlock bootloader with "fastboot oem unlock" unless your phone is GPE version. For Sense you need unlock token from htcdev. In order to flash anything, you need custom recovery, and you can flash it only if your bootloader is unlocked
Click to expand...
Click to collapse
I unlocked my htc with the unlocktoken from htc dev but it still says locked in bootloader. I can flash the unlock_code.bin but it does not restart nor does it come up with a message that says I would like to unlock bootloader etc.
jonrogers61 said:
I unlocked my htc with the unlocktoken from htc dev but it still says locked in bootloader. I can flash the unlock_code.bin but it does not restart nor does it come up with a message that says I would like to unlock bootloader etc.
Click to expand...
Click to collapse
can you post the output of "fastboot getvar all" (remove your imei and serialno). Sometimes, reflashing the stock firmware can solve some bootloader unlock problem but I need to know you getvar all before I can tell you which one you should flash.

Unlocking bootloader help

Hello,
I tried to unlock my bootloader several times.I followed every guide and didn't make it.I have LBL xperia sp (Allowed bootloader unlocking :No)But i read i can try it anyway.So the problem here is when i start cmd in abd folder and enter command fastboot -i 0x0fce oem unlock 0xmykey it says waiting for device.I installed drivers from the guide.Because i have windows 10 i disabled driver signature and all driver are installed.I tried all ports on my laptop and volume up,down.It just wont enter fastboot skips to sony logo immediately.Recovery is working fine.
Now i don't know is it because i have (Allowed bootloader unlocking :No) or i am doing something wrong,also i tried with 4.3,4.4 and 5.0 android versions.
I searched for this problem on xda forums but couldn't find any help.
Thanks.
3m1r said:
Hello,
I tried to unlock my bootloader several times.I followed every guide and didn't make it.I have LBL xperia sp (Allowed bootloader unlocking :No)But i read i can try it anyway.So the problem here is when i start cmd in abd folder and enter command fastboot -i 0x0fce oem unlock 0xmykey it says waiting for device.I installed drivers from the guide.Because i have windows 10 i disabled driver signature and all driver are installed.I tried all ports on my laptop and volume up,down.It just wont enter fastboot skips to sony logo immediately.Recovery is working fine.
Now i don't know is it because i have (Allowed bootloader unlocking :No) or i am doing something wrong,also i tried with 4.3,4.4 and 5.0 android versions.
I searched for this problem on xda forums but couldn't find any help.
Thanks.
Click to expand...
Click to collapse
Your unlocking bootloader allow is no.
You cannot unlock your bootloader.
That is sad,thanks anyway.
3m1r said:
That is sad,thanks anyway.
Click to expand...
Click to collapse
Can you check if your bootloader can really be unlocked? Back on stock ROM, open Dialer, then type in *#*#SERVICE#*#* and report your "bootloader unlock allowed" status.
"Allowed bootloader unlocking : No" But i read somewhere i can still try to unlock it.
3m1r said:
"Allowed bootloader unlocking : No" But i read somewhere i can still try to unlock it.
Click to expand...
Click to collapse
Please don't try any methods, for your device's safety.

[Solution]BL unlocked&FRP Locked-Fastboot FAILED (remote: Command not allowed)

Note: THIS IS NOT A SOLUTION TO BYPASS FRP!
I am not responsible if you are dumb dumb and break your phone
This Solution is written in under 10 minutes AND WORKS ONLY AND ONLY FOR STOCK people with no experience stay away
This is not a comprehensive solution, if you don't know what you're doing then don't do it!
This solution might work for all huawei phones where:
1. The Oem-unlock is greyed out and NOT activated in Developer Options
2 .Bootloader is unlocked & FRP is locked.
3. You are on !!! STOCK !!!
Problem case:
Huawei P9 lite VNS-L31 on B380
Bootloader unlocked.
FRP Locked.
Fastboot commands fail with
Code:
FAILED (remote: Command not allowed)
except
Code:
fastboot oem get-bootinfo
and
Code:
fastboot devices
Solution:
Have ready your Unlock bootloader code from Huawei
Factory Reset your device. (Factory Reset implies removing Fingerprints and standard Factory Reset)
Reboot to fastboot ,in fastboot you should see:
Phone: unlocked
FRP: locked
Re-lock your bootloader and factory reset ( it will do it automatically)
Code:
fastboot oem relock *Here Huawei Code*
Reboot normally, skip everything
Activate Developer Options
Activate OEM unlocking from Dev Options
Reboot fastboot, now you should see:
Phone: locked
FRP: unlocked
Unlock bootloader again, it will factory reset again
Code:
fastboot oem unlock *Here Huawei Code*
Skip everything again
Reboot again to fastboot and flash recovery, now you will see:
Phone: unlocked
FRP: unlocked
Code:
fastboot flash recovery *imagename*
The OEM Unlock option now is greyed out and ACTIVE
Sucess!​After a few hours of debugging and searching for answers I finally managed to flash TWRP, hope this helps.​
Alexander33 said:
Note: THIS IS NOT A SOLUTION TO BYPASS FRP!
I am not responsible if you are dumb dumb and break your phone
This Solution is written in under 10 minutes, although I think I've covered everything, people with no experience stay away, this is not a comprehensive solution, if you don't know what you're doing then don't do it.
This solution might work for all huawei phones where:
1. The Oem-unlock is greyed out and NOT activated in Developer Options
2 .Bootloader is unlocked & FRP is locked
Problem case:
Huawei P9 lite VNS-L31 on B380
Bootloader unlocked.
FRP Locked.
Fastboot commands fail with except andfastboot devices
Solution:
Have ready your Unlock bootloader code from Huawei
Factory Reset your device.
Reboot to fastboot ,in fastboot you should see:
Phone: unlocked
FRP: locked
Re-lock your bootloader and factory reset ( it will do it automatically)
Solution:
Have ready your Unlock bootloader code from Huawei
Factory Reset your device.
Reboot to fastboot ,in fastboot you should see:
Phone: unlocked
FRP: locked
Re-lock your bootloader and factory reset ( it will do it automatically)
fastboot oem relock *Here Huawei Code*
Reboot normally, skip everything
Activate Developer Options
Activate OEM unlocking from Dev Options
Reboot fastboot, now you should see:
Phone: locked
FRP: unlocked
Unlock bootloader again, it will factory reset again
Skip everything again
Reboot again to fastboot and flash recovery, now you will see:
Phone: unlocked
FRP: unlocked
The OEM Unlock option now is greyed out and ACTIVE
Sucess!
After a few hours of debugging and searching for answers I finally managed to flash TWRP, hope this helps.
Click to expand...
Click to collapse
Can i have your permission to add this guide to the unified help thread (FAQ post> "error: command not allowed") in this subforum. I will credit you by mention ofc.
fu**ing great, if I try to relock its says stat not match!!!!! Anyone ?
title
Alexander33 said:
Note: THIS IS NOT A SOLUTION TO BYPASS FRP!
I am not responsible if you are dumb dumb and break your phone
This Solution is written in under 10 minutes, although I think I've covered everything, people with no experience stay away, this is not a comprehensive solution, if you don't know what you're doing then don't do it.
This solution might work for all huawei phones where:
1. The Oem-unlock is greyed out and NOT activated in Developer Options
2 .Bootloader is unlocked & FRP is locked
Problem case:
Huawei P9 lite VNS-L31 on B380
Bootloader unlocked.
FRP Locked.
Fastboot commands fail with
Code:
FAILED (remote: Command not allowed)
except
Code:
fastboot oem get-bootinfo
and
Code:
fastboot devices
Solution:
Have ready your Unlock bootloader code from Huawei
Factory Reset your device.
Reboot to fastboot ,in fastboot you should see:
Phone: unlocked
FRP: locked
Re-lock your bootloader and factory reset ( it will do it automatically)
Code:
fastboot oem relock *Here Huawei Code*
Reboot normally, skip everything
Activate Developer Options
Activate OEM unlocking from Dev Options
Reboot fastboot, now you should see:
Phone: locked
FRP: unlocked
Unlock bootloader again, it will factory reset again
Code:
fastboot oem unlock *Here Huawei Code*
Skip everything again
Reboot again to fastboot and flash recovery, now you will see:
Phone: unlocked
FRP: unlocked
Code:
fastboot flash recovery *imagename*
The OEM Unlock option now is greyed out and ACTIVE
Sucess!​After a few hours of debugging and searching for answers I finally managed to flash TWRP, hope this helps.​
Click to expand...
Click to collapse
i have situation:
Phone : Relocked
FRP: Lock
any idea? im stuck in Bootloader.
Thank you very much! I spent many hours looking for a solution to this problem!
Your solution is incredible! Can I share your steps in Spanish for more people? I live in Mexico and I know more people with this problem. And of course I give you the credits for this magnificent solution. I'm sorry for my English, I know I write badly in this language
I have strange problem... I have "Phone unlocked, frp lock". But on my P9 Lite only fastboot mode works.
Rrecovery mode (vol+ i power) or download mode (vol+, vol-, power) are not responding - phone reboots always to Huawei logo.
Any way to fix that?
My phone its f***
What i do
Honor 7x
skiswim said:
i have situation:
Phone : Relocked
FRP: Lock
any idea? im stuck in Bootloader.
Click to expand...
Click to collapse
Me too
Any idea?
tootysa said:
Me too
Any idea?
Click to expand...
Click to collapse
I have a solution for you both.
I mistakenly followed the instructions above but made the mistake of not skipping everything. I got the message "Data partition corrupted do you want to format the partition" or something similar, DO NOT FORMAT ANYTHING, it should boot up normaly. I'm a bit rusty in my rooting ways u_u
Now, I got exactly the same situation as you both "Relocked" and "FRP Locked". I was able to get into the eRecovery and this is way to restore your phone.
1.- You need to get the Huawei Firmware Finder (Team MT) (https://forum.xda-developers.com/tools/general/huawei-firmware-finder-team-mt-t3469146)
2.- Unzip it and run FirmwareFinderRewrite.exe
3.- Go to the tab that says Common Base
4.- Search for the update that you know it works in my case was VNS-L31C432B388 (I tried to use VNS-L31C432B404 but its still "not active" whatever that means). Look for the FullOTA and copy the change log address (in my case: http://update.hicloud.com:8180/TDS/data/files/p3/s15/G1258/g104/v91282/f1/full/changelog.xml)
5.- In the icons above the Tabs pres on the cloud with a page infront, the tooltip should say Proxy
6.- Copy the changelog addres in the section Firmware for install and press Set.
7.- Press Register for Update
8.- Follow the instructions bellow this (Change your DNS temporarily)
9.- In your phone go to the eRecovery.
10.- Connect to WLAN and it should find a package.
10a.- In case it doesn't find it, go back to step 4. You probably got 2 packages with the same name. I do not enterily understand the differences but I assume one is for one region and the other for other region.
11.- Wait until it restores and be happy.
If you can not change the DNS in you router, as it was my case. You can set a hotspot with your laptop/desktop and change the DNS there but you still need and active internet conection.
I connected my cellphone to my laptop via WLAN and my laptop to the router via Ethernet which provides internet. I change both DNS's for both connections.
skiswim said:
i have situation:
Phone : Relocked
FRP: Lock
any idea? im stuck in Bootloader.
Click to expand...
Click to collapse
tootysa said:
My phone its f***
What i do
Honor 7x
Click to expand...
Click to collapse
tootysa said:
Me too
Any idea?
Click to expand...
Click to collapse
Did you guys unlock your bootloader prior to having this situation? aka did you start with
Phone unlocked.
FRP locked.
My solution is for this situation ^ and this situation only, not for any other case.
One other thing it springs right now in my mind is, did you factory reset and delete the fingerprints ? As this might be related...
Kucharskov said:
I have strange problem... I have "Phone unlocked, frp lock". But on my P9 Lite only fastboot mode works.
Rrecovery mode (vol+ i power) or download mode (vol+, vol-, power) are not responding - phone reboots always to Huawei logo.
Any way to fix that?
Click to expand...
Click to collapse
That's called a soft brick and have you tried eRecovery?
You need to go back to stock using a stock firmware which you have to find on the internet, then make a folder on your SDCard called DLOAD and put it in there, then press all three buttons and the eRecovery should boot up and detect the stock firmware.
EDIT: The guys that got stuck didn't read the part where I said VNS-L31 On B380 and did this having a custom ROM. How I know this? I've also followed my own guide and in the moment you relock your bootloader you will NOT be able to boot into your ROM anymore and you will boot to e-recovery
(which doesn't give too many options), if you were on Nougat or even on Marshmallow (skip the rollback part? )follow the rollback tutorial from N to MM from this Forum Section to get back to stock C432B160/1 , if you can't find the link just PM me
Again, I have VNS-L31 and I'm talking only from what I did, I don't know anything about your device
Man it's not working for me to relock the bootloader. its the same result. what can i do?
really need your help sir
Alexander33 said:
Note: THIS IS NOT A SOLUTION TO BYPASS FRP!
I am not responsible if you are dumb dumb and break your phone
This Solution is written in under 10 minutes AND WORKS ONLY AND ONLY FOR STOCK people with no experience stay away
This is not a comprehensive solution, if you don't know what you're doing then don't do it!
This solution might work for all huawei phones where:
1. The Oem-unlock is greyed out and NOT activated in Developer Options
2 .Bootloader is unlocked & FRP is locked.
3. You are on !!! STOCK !!!
Problem case:
Huawei P9 lite VNS-L31 on B380
Bootloader unlocked.
FRP Locked.
Fastboot commands fail with
Code:
FAILED (remote: Command not allowed)
except
Code:
fastboot oem get-bootinfo
and
Code:
fastboot devices
Solution:
Have ready your Unlock bootloader code from Huawei
Factory Reset your device. (Factory Reset implies removing Fingerprints and standard Factory Reset)
Reboot to fastboot ,in fastboot you should see:
Phone: unlocked
FRP: locked
Re-lock your bootloader and factory reset ( it will do it automatically)
Code:
fastboot oem relock *Here Huawei Code*
Reboot normally, skip everything
Activate Developer Options
Activate OEM unlocking from Dev Options
Reboot fastboot, now you should see:
Phone: locked
FRP: unlocked
Unlock bootloader again, it will factory reset again
Code:
fastboot oem unlock *Here Huawei Code*
Skip everything again
Reboot again to fastboot and flash recovery, now you will see:
Phone: unlocked
FRP: unlocked
Code:
fastboot flash recovery *imagename*
The OEM Unlock option now is greyed out and ACTIVE
Sucess!​After a few hours of debugging and searching for answers I finally managed to flash TWRP, hope this helps.​
Click to expand...
Click to collapse
Sir please help me , I need step by step tutorial from you please I need your facebook account name and I will pm you.
I'm on stock ROM and already do factory reset. But the bootloader still unlocked. When I'm trying to lock, its failed. Can someone help me?
my phone seems to be stuck at emui circled been about 5mins like that
honor 9 lite
Alexander33 said:
Did you guys unlock your bootloader prior to having this situation? aka did you start with
Phone unlocked.
FRP locked.
My solution is for this situation ^ and this situation only, not for any other case.
One other thing it springs right now in my mind is, did you factory reset and delete the fingerprints ? As this might be related...
That's called a soft brick and have you tried eRecovery?
You need to go back to stock using a stock firmware which you have to find on the internet, then make a folder on your SDCard called DLOAD and put it in there, then press all three buttons and the eRecovery should boot up and detect the stock firmware.
EDIT: The guys that got stuck didn't read the part where I said VNS-L31 On B380 and did this having a custom ROM. How I know this? I've also followed my own guide and in the moment you relock your bootloader you will NOT be able to boot into your ROM anymore and you will boot to e-recovery
(which doesn't give too many options), if you were on Nougat or even on Marshmallow (skip the rollback part? )follow the rollback tutorial from N to MM from this Forum Section to get back to stock C432B160/1 , if you can't find the link just PM me
Again, I have VNS-L31 and I'm talking only from what I did, I don't know anything about your device
Click to expand...
Click to collapse
If you have this situation : phone Relocked --> its mean that the phone has been unlocked before and then relocked
If you have this situation : phone locked --> its mean that the phone has never been unlocked before
it's a security from huawei to know if the phone still have a warranty
I have the same situation : phone relocked and frp lock (P20 lite with ANE-LX1 C652 )
because i relocked the bootloader without leaving the frp unlocked.
When you relock the bootloader ( relock phone) the phone will do an automatic factory reset, and if he fail with, you can't unlock bootloader again because of the frp lock, and you can not unlock frp from developper option because the phone won't start.
I tried the Firmware Finder solution to get erecovery working with DNS, i found an update for (ANE-LX1 C652 not FullOTA) and i register it for download, the phone start downloading, after finish downloading i get a fail install error.
i tried register many version C432 C185 ..... but the erecovery is not reconizing them i think that i need a FullOTA for my ANE-LX1 C652.
Installing update with sdcard dload, always fail .
re
Hello dear,
so i have unlocked my phone and this was the beginning of the problems, I had to deal with samsung phones before but the huawei was very sensitive, so i got into a problem and broke the phone system, which had taken the phone to an expert and had restored the stock phone system n it was good to roll back ,phone to work at least, he tells me that he did relock the bootloader but the message of warning still appears everytime i booted up ,
now ive the same problem as u have, and i noticed that the adb commands works only when the phone is on system ,either when i enter the FASTBOOT MODE ,ADB commands do not work anymore ,even the gray OEM unlocking,, and now i do not know if this solution works with me or not ,if i can get rid the warning message?? i dont need that silly unlocking anymore
ِِCan u advise me PLEASE !!!!
markraiem said:
Hello dear,
so i have unlocked my phone and this was the beginning of the problems, I had to deal with samsung phones before but the huawei was very sensitive, so i got into a problem and broke the phone system, which had taken the phone to an expert and had restored the stock phone system n it was good to roll back ,phone to work at least, he tells me that he did relock the bootloader but the message of warning still appears everytime i booted up ,
now ive the same problem as u have, and i noticed that the adb commands works only when the phone is on system ,either when i enter the FASTBOOT MODE ,ADB commands do not work anymore ,even the gray OEM unlocking,, and now i do not know if this solution works with me or not ,if i can get rid the warning message?? i dont need that silly unlocking anymore
ِِCan u advise me PLEASE !!!!
Click to expand...
Click to collapse
The warning will always appear as long as the Bootloader is unlocked. read the first 3 conditions . If you are on stock and can boot on stock, delete fingerprints and any PINs and Google accounts, then Factory Reset and this should set you to FPR Unlocked, BL Unlocked. Here just lock the bootloader back and then reboot normally and use the device as you normally do, the moment you add your Google Account and/or Fingerprint the FRP will lock back. If you want to continue flashing custom ROMs etc. follow the tutorial but read all the comments (relevant ones) before you do it.
This solution might work for all huawei phones where:
1. The Oem-unlock is greyed out and NOT activated in Settings -> Developer Options
2 .Bootloader is unlocked & FRP is locked.
3. You are on !!! STOCK !!!
Click to expand...
Click to collapse
if that applies to you, you can try my tutorial, otherwise I have no other suggestion for you, I quit tampering with my Huawei long ago, stock is quite fine for me.
I don't have the code, how do i lock and unlock bootloader? thx
to me puts
PHONE Locked
FRP Lock
phone stuck on recovery mode

Relocking bootloader possible?

Hi,
I unlocked my bootloader half a year ago. I tried out different custom roms.
Now I want to go back to stock with locked bootloader, because camera isn´t "green" anymore with the latest PIE rom.
So I want to know if it is possible to relock the bootloader.
I tried it via fastboot (fastboot flashing lock) but everytime I get a message "FAILED (remote: unknown command)".
Is there a way to relock the bootloader?
As far as I know you can relock the bootloader using flashtool. Connect your device in fastboot mode and press the BLU button in flashtool. There should be an option to relock it
[email protected] said:
As far as I know you can relock the bootloader using flashtool. Connect your device in fastboot mode and press the BLU button in flashtool. There should be an option to relock it
Click to expand...
Click to collapse
No, it first wants my in flash mode and then it says, failed to TA. I dont get the Unlock/Relock window.
SkyHigh76 said:
Is there a way to relock the bootloader?
Click to expand...
Click to collapse
No

Categories

Resources