I need help locking bootloader. - Huawei Mate 10 Questions & Answers

Hi,
I'm sick of the boot warning messages that pops up whenver i boot my phone. How do I restore stock bootloader?
Some of the things I tried and failed are:
Factory reset
fastboot flash system system.img (I can only get this to work if I leave bootloader unlocked)
fastboot oem lock (unlock code) This also work but I will not be able to boot back into system, it would boot into eRecovery instead.

hungrymr2 said:
Hi,
I'm sick of the boot warning messages that pops up whenver i boot my phone. How do I restore stock bootloader?
Some of the things I tried and failed are:
Factory reset
fastboot flash system system.img (I can only get this to work if I leave bootloader unlocked)
fastboot oem lock (unlock code) This also work but I will not be able to boot back into system, it would boot into eRecovery instead.
Click to expand...
Click to collapse
Only way would be reinstalling stock using HuRUpdater, NoCheck or dload. After you have done that you can relock from fastboot.

ante0 said:
Only way would be reinstalling stock using HuRUpdater, NoCheck or dload. After you have done that you can relock from fastboot.
Click to expand...
Click to collapse
In this way relock from fast boot will lock bootloader?
Inviato dal mio BLA-L09 utilizzando Tapatalk

L3onX said:
In this way relock from fast boot will lock bootloader?
Inviato dal mio BLA-L09 utilizzando Tapatalk
Click to expand...
Click to collapse
It will Re-lock bootloader. It will say Relocked in fastboot but the warning will go away.

L3onX said:
In this way relock from fast boot will lock bootloader?
Inviato dal mio BLA-L09 utilizzando Tapatalk
Click to expand...
Click to collapse
ante0 said:
It will Re-lock bootloader. It will say Relocked in fastboot but the warning will go away.
Click to expand...
Click to collapse
But make sure you are completely stock before doing it as it will fail to boot if any of your partitions are modified (If you have TWRP for example it will fall back to sec_recovery, but not for the other partitions)

Related

stuck in bootloader....HELP

I'm selling my DNA, I tried to factor lock it back after unlocking it...it wont boot into the operating system. It loops into the bootloader with a message that says SECURITY WARNING, TAMPERED
how do I fix this issue?
obededom said:
I'm selling my DNA, I tried to factor lock it back after unlocking it...it wont boot into the operating system. It loops into the bootloader with a message that says SECURITY WARNING, TAMPERED
how do I fix this issue?
Click to expand...
Click to collapse
did you flash a recovery?
if not flash a recovery though fastboot
go into recovery and flash a rom
MustafaHadaKing said:
did you flash a recovery?
if not flash a recovery though fastboot
go into recovery and flash a rom
Click to expand...
Click to collapse
Yes I did install a Custom recovery
Can I still use it? It's saying the phone is locked
Do I need to try to unlock again?
Beating head against the wall currently.
If one of you guys get me out of this lll name my next son after you
obededom said:
Beating head against the wall currently.
If one of you guys get me out of this lll name my next son after you
Click to expand...
Click to collapse
did you flash RUU before relocking?
MustafaHadaKing said:
did you flash RUU before relocking?
Click to expand...
Click to collapse
I'm thinking I should have done that, huh?
No, didn't.
What can I do?
Beating head still
re unlock flash recovery , rom etc then flash back to factory then relock
crackeyes said:
re unlock flash recovery , rom etc then flash back to factory then relock
Click to expand...
Click to collapse
Reunlock through adb/fastboot way I did it the first time?
obededom said:
Reunlock through adb/fastboot way I did it the first time?
Click to expand...
Click to collapse
Just reflash the unlock code.bin file.
Sent from my HTC6435LVW using xda app-developers app
worked...
you guys are wizards
so...from this unlocked phone, can I just flash the RUU, boot it and then relock it?
obededom said:
so...from this unlocked phone, can I just flash the RUU, boot it and then relock it?
Click to expand...
Click to collapse
yes follow the steps on this thread
http://forum.xda-developers.com/showthread.php?t=2017525
(1) Flash RUU
(2) Turn Phone Completely Off
(3) Hold Volume Down Key and Power to Restart to Fastboot
(4) Reflash your Unlock Token (the original one sent from HTC during initial Unlock)
(5) Enter "Yes" at Unlock Warning - System will not Restart
(6) After Restart, Shut Phone Down Completely Again
(7) Reboot into Fastboot and Check your Lock Status - Should now say "Unlocked"
(8) Flash Unlocked Kernel & Recovery Again
(9) Profit

Relocking Bootloader

Hi guys,
I got a bootloader unlocked ANE-LX2J and I want to lock it again but I dont know the next step.
I still have the bootloader unlock code and already flashed FULL OTA using TWRP and did factory reset.
So now, my P20 Lite is running pure stock again and ready to be locked right? or still not lol :silly:
Based on what I read here, after relocking bootloader using fastboot oem relock command, the warning/alert that shows when the device is booting is still there and I want to get rid of it.
Thanks :highfive:
RalphXVIII said:
Hi guys,
I got a bootloader unlocked ANE-LX2J and I want to lock it again but I dont know the next step.
I still have the bootloader unlock code and already flashed FULL OTA using TWRP and did factory reset.
So now, my P20 Lite is running pure stock again and ready to be locked right? or still not lol :silly:
Based on what I read here, after relocking bootloader using fastboot oem relock command, the warning/alert that shows when the device is booting is still there and I want to get rid of it.
Thanks :highfive:
Click to expand...
Click to collapse
Yes, you're ok to relock your bootloader if all partition and recovery are stock and your device is working without issues. After relock the recovery will do Factory Data Reset and no more warnings "your device has been unlocked and can't be trusted"
Boot into Fastboot&Rescue Mode and use this command:
Code:
fastboot oem relock [I][B]yourcode[/B][/I]
Then you enter into Lock Bootloader menu and just follow the instructions.
YES -
NO -
kilroystyx said:
Yes, you're ok to relock your bootloader if all partition and recovery are stock and your device is working without issues. After relock the recovery will do Factory Data Reset and no more warnings "your device has been unlocked and can't be trusted"
Boot into Fastboot&Rescue Mode and use this command:
Code:
fastboot oem relock [I][B]yourcode[/B][/I]
Then you enter into Lock Bootloader menu and just follow the instructions.
YES -
NO -
Click to expand...
Click to collapse
Does the Lock Bootloader menu will automatically show after relock command? I'll give it a shot later. Thanks :highfive:
RalphXVIII said:
Does the Lock Bootloader menu will automatically show after relock command? I'll give it a shot later. Thanks :highfive:
Click to expand...
Click to collapse
Yes, if your code is correct.
If my phone was rooted, will relocking the bootloader unroot it?
GJonas said:
If my phone was rooted, will relocking the bootloader unroot it?
Click to expand...
Click to collapse
it will show a red text saying your system has been tampered with and turn off..
you will need to restore a completly stock rom with sdcard before you can boot the phone.

I can't relock my mate20pro

I unlocked my mate20 pro, but problem is now i can't relock it , even I use "fastboot oem relock +unlock code"
anybody can help ?
have you tried fastboot oem lock?
you don't have to specify the code
i just tried also and cannot lock
Daniehabazin said:
have you tried fastboot oem lock?
you don't have to specify the code
Click to expand...
Click to collapse
still can't relock..................wait for solution
richard_li said:
still can't relock..................wait for solution
Click to expand...
Click to collapse
Refer to my post here ?
https://forum.xda-developers.com/ma...ocking-bootloader-magisk-root-t3885422/page22
I accidentally relocked the phone by using the hstool method of flashing a full firmware.
it does relock the phone and required me to unlock it again using the fastboot oem unlock code
xeroxide said:
I accidentally relocked the phone by using the hstool method of flashing a full firmware.
it does relock the phone and required me to unlock it again using the fastboot oem unlock code
Click to expand...
Click to collapse
That's interesting. So all your data was wiped when you used the hstool?
Someone else said flashing firmware via dload method also relocks the bootloader.
hmm i'm not sure.
I'll explain the whole situation.
I had just unlocked the bootloader and installed magisk.
after installing magisk, I installed a few modules, one of which made my phone bootloop.
I managed to get back into fastboot mode, use hstool to select my firmware (224) along with the patched hisuite from funkyhuawei.
after my phone recovered, it seems to have been completely reset and locked.
*edit*
I guess I should also add, I've never installed TWRP on this phone, only patched the recovery_ramdis.img for Magisk
xeroxide said:
hmm i'm not sure.
I'll explain the whole situation.
I had just unlocked the bootloader and installed magisk.
after installing magisk, I installed a few modules, one of which made my phone bootloop.
I managed to get back into fastboot mode, use hstool to select my firmware (224) along with the patched hisuite from funkyhuawei.
after my phone recovered, it seems to have been completely reset and locked.
*edit*
I guess I should also add, I've never installed TWRP on this phone, only patched the recovery_ramdis.img for Magisk
Click to expand...
Click to collapse
After locking, can you use the same code to unlock it again ?
EagleEye92 said:
After locking, can you use the same code to unlock it again ?
Click to expand...
Click to collapse
Yes sure
EagleEye92 said:
After locking, can you use the same code to unlock it again ?
Click to expand...
Click to collapse
Yes
ok just an update, while mucking around I accidentally softbricked my phone.
I used the external usb method (where you update using the code *#*#​2846579#*#*) and it 100% relock the phone.
*edit*
and yes, the same code works to unlock it again. KEEP THE CODE SAFE!
xeroxide said:
ok just an update, while mucking around I accidentally softbricked my phone.
I used the external usb method (where you update using the code *#*#​2846579#*#*) and it 100% relock the phone.
*edit*
and yes, the same code works to unlock it again. KEEP THE CODE SAFE!
Click to expand...
Click to collapse
Can you say me something about the usb method? dont know, what this is. :silly:
ClintP said:
Can you say me something about the usb method? dont know, what this is. :silly:
Click to expand...
Click to collapse
You need an external usb-c drive with some firmware on it.
I initially used v187 from this thread
https://forum.xda-developers.com/mate-20-pro/how-to/firmware-update-187-brings-oem-unlock-t3897301
Since then I downloaded a v206 which works over USB but I cannot recall where I got it from.
Note that you will loose all user data since the phone will be fully wiped.
Also this method requires a phone that is working, as in able to boot and access the dialer and menus.
If I find out where I got the v206 I will post it here as well.
I should also add, maybe it might work with a memory card as well... But this method requires an external source for the firmware since it formats the entire phone
@ xeroxide Thx for your help.
I Try this at the weekend.
If you need to relock your bootloader, this is the process:
Using eRecovery, restore your phone to stock
Once done, boot into recovery and RESET your phone (if you dont, it will not allow you to lock the bootloader)
Boot into fastboot mode (Holding Vol-DOWN, plug in usb cable) , and run the command
fastboot oem relock < bootloader unlock code>
the phone should now ask you that it will wipe your device, confirm,
Enjoy locked phone!
deepsrd said:
If you need to relock your bootloader, this is the process:
Using eRecovery, restore your phone to stock
Once done, boot into recovery and RESET your phone (if you dont, it will not allow you to lock the bootloader)
Boot into fastboot mode (Holding Vol-DOWN, plug in usb cable) , and run the command
fastboot oem relock < bootloader unlock code>
the phone should now ask you that it will wipe your device, confirm,
Enjoy locked phone!
Click to expand...
Click to collapse
Now it works well... i relocked my phone..........but i don't know why i failed last time because i followed exactly the steps...
deepsrd said:
If you need to relock your bootloader, this is the process:
Using eRecovery, restore your phone to stock
Once done, boot into recovery and RESET your phone (if you dont, it will not allow you to lock the bootloader)
Boot into fastboot mode (Holding Vol-DOWN, plug in usb cable) , and run the command
fastboot oem relock < bootloader unlock code>
the phone should now ask you that it will wipe your device, confirm,
Enjoy locked phone!
Click to expand...
Click to collapse
richard_li said:
Now it works well... i relocked my phone..........but i don't know why i failed last time because i followed exactly the steps...
Click to expand...
Click to collapse
it means now relocked and problem solved.........
deepsrd said:
If you need to relock your bootloader, this is the process:
Using eRecovery, restore your phone to stock
Once done, boot into recovery and RESET your phone (if you dont, it will not allow you to lock the bootloader)
Boot into fastboot mode (Holding Vol-DOWN, plug in usb cable) , and run the command
fastboot oem relock < bootloader unlock code>
the phone should now ask you that it will wipe your device, confirm,
Enjoy locked phone!
Click to expand...
Click to collapse
this worked for me thanks loads!

Lock bootloader Xiaomi Mi A3

how to lock bootloader on Mi A3?
thanks
danger2u said:
how to lock bootloader on Mi A3?
thanks
Click to expand...
Click to collapse
Code:
fastboot flashing lock
All data will be deleted. Reset
Vip02 said:
Code:
fastboot flashing lock
All data will be deleted. Reset
Click to expand...
Click to collapse
thank u very much
works great
Hi, I write again here, sorry. Can anyone help me with the block bootloader procedure? I want to try custom roms and unlock bootloader is simple, but if I want to restore the phone like new, like when you open the box, what do I have to do? Anyone can help me step by step? Thank you so much
I have the bootloader unlocked and Stock rom official, to take advantage of the warranty what is the procedure to relock the bootloader. I read in this thread to fastboot and run: fastboot flash lock
Has no contraindications?
can you also use mi flash tool and flash_all_lock.sh script?
Thanks
Switch to partition A, run flash_all.bat from the latest fastboot rom, start the phone. If it boots correctly, lock the bootloader with fastboot flashing lock command or run flash_all_lock.bat
Thanks.
hi I want to root mia3 and I unlock the bootloader then root unsuccesfull
and phone start up but hang and wifi not work I try to flash stock rom 3-4 different rom flashed sucessfully but when start up no data delete and phone is on menu
I relock bootloader phone say system destroyed
I flash phone
now phone not start up and go to fastboot directly
please help me
khzrxda said:
hi I want to root mia3 and I unlock the bootloader then root unsuccesfull
and phone start up but hang and wifi not work I try to flash stock rom 3-4 different rom flashed sucessfully but when start up no data delete and phone is on menu
I relock bootloader phone say system destroyed
I flash phone
now phone not start up and go to fastboot directly
please help me
Click to expand...
Click to collapse
Visit service center.
_mysiak_ said:
Visit service center.
Click to expand...
Click to collapse
I switch to partition a
active slot a
phone now is on but problem still is and not solve
wifi not work and hng
khzrxda said:
I switch to partition a
active slot a
phone now is on but problem still is and not solve
wifi not work and hng
Click to expand...
Click to collapse
If you were able to switch partitions, then you did not lock your bootloader.
Reflash full stock Android 10 ROM, it might solve your wifi issues.

Question Redmi note 10 stuck in fastboot logo after reset Mi Account

After resetting my account (old method) stuck in the logo and then in fastboot, I tried installing several firmware with umt but it remains the same.
Hey bro try the Mi flash for flashing stock rom Asaf for not bricking device
i am flash mi flash fastboot mode .Mi Flash Errror - "Not Allowed in Locked State​
Phone hasn't unlocked the bootloader yet? Until it does, there's no way.
dhanyasrimobiles said:
i am flash mi flash fastboot mode .Mi Flash Errror - "Not Allowed in Locked State​
Click to expand...
Click to collapse
Locked state or snapshotted state
dhanyasrimobiles said:
i am flash mi flash fastboot mode .Mi Flash Errror - "Not Allowed in Locked State​
Click to expand...
Click to collapse
If there is an error like this as shown in figure then go to fastboot mode and use the command:- fastboot.exe snapshot-update cancel and then try to flash the stock rom.1st image shows the error.2nd image shows the written solution done by another person and then i used to get out of this problem.3rd image shows the adb command and it's result
StaryMuz said:
Phone hasn't unlocked the bootloader yet? Until it does, there's no way.
Click to expand...
Click to collapse
How to unlock bootloader
Het789209 said:
Locked state or snapshotted state
Click to expand...
Click to collapse
Locked state
Bootloader can only be unlocked by applying to the manufacturer - Xiaomi using its unlocking application. After registering with the manufacturer and then requesting an unlock, you will have to wait one week and then the unlock will be enabled.

Categories

Resources