Question regarding relocking bootloader - Xiaomi Redmi Note 3 Questions & Answers

Today i finally unlocked my bootloader officially...
My doubt is that,
1. How to relock bootloader.
2. If it is relocked, how to unlock it again.

Same question
the same Question ?
Any answers??​

asrupesh said:
Today i finally unlocked my bootloader officially...
My doubt is that,
1. How to relock bootloader.
2. If it is relocked, how to unlock it again.
Click to expand...
Click to collapse
To relock the bootloader, just flash an official miui fastboot rom via miflash and you're done....
If you have unlocked officially, you can just unlock your bootloader anytime without asking permission from xiaomi again...
If you have unlocked your device unofficially, repeat the steps you did for unlocking your device or unlock officially.....

ayush321 said:
To relock the bootloader, just flash an official miui fastboot rom via miflash and you're done....
If you have unlocked officially, you can just unlock your bootloader anytime without asking permission from xiaomi again...
If you have unlocked your device unofficially, repeat the steps you did for unlocking your device or unlock officially.....
Click to expand...
Click to collapse
Thanks for replying today i flash miui stock fastboot via miflash and checked using this code "fastboot oem device-info"
it still shows "device unlocked= true"
it didint relock my bootloder....

asrupesh said:
Thanks for replying today i flash miui stock fastboot via miflash and checked using this code "fastboot oem device-info"
it still shows "device unlocked= true"
it didint relock my bootloder....
Click to expand...
Click to collapse
can you try with fastboot oem lock?

rajneeshk said:
can you try with fastboot oem lock?
Click to expand...
Click to collapse
Sorry dude I can't, I dont want to risk it....

asrupesh said:
Today i finally unlocked my bootloader officially...
My doubt is that,
1. How to relock bootloader.
2. If it is relocked, how to unlock it again.
Click to expand...
Click to collapse
I see many asking how to Relock Bootloader, especially those who had unlocked unofficially.
http://forum.xda-developers.com/showpost.php?p=66962198&postcount=7
The steps to be followed are following:
(1) Turn on USB debugging for your phone;
Go to Settings -- About Phone --> Touch 7 times on "MIUI version" to Enable Developer Options.
Now go to Settings - Additional Settings - Developer Options --> USB debugging.
Enable USB Debugging and Connect to PC.
(2) Download Fastboot ROM (file extension .tgz or .tar) from
Code:
http://en.miui.com/a-234.html
(3) Boot into EDL
adb devices (to check it's connected)
adb reboot edl
(4) Use MI Flash Tool to Flash the Fastboot ROM
One done it will be locked... To relock follow same steps as done earlier - either official or unofficial

Related

Locking and unlocking bootloader on stock ROM&Recovery

Hi!
What happens if you don't have permission to unlock bootloader and you still try to do it using fastboot oem unlock on Xiaomi Phones?
I have already got the permission and I've rooted my phone, so I didn't really try it because I was simply afraid. Has anybody tested that?
Also, if I relock my bootloader again using fastboot oem lock, will I be able to unlock it using fastboot oem unlock or will I have to use MI tool?
Aaaand the last question - I haven't installed custom rom or TWRP - I booted TWRP using fastboot boot xxx.img, then installed SuperSU package. Is it dangerous to lock bootloader with phone rooted? Recovery is still stock, so ....

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!

how to relock bootloader on black shark

to relock the bootloader I tried the "fastboot flashing lock" command without quotes via adb pc fastboot the device will ask you to reset the system once you start the phone go to the developer settings and deactivate the 'unlock oem' check then restart and play original device is made for future joyui11
babboooo said:
to relock the bootloader I tried the "fastboot flashing lock" command without quotes via adb pc fastboot the device will ask you to reset the system once you start the phone go to the developer settings and deactivate the 'unlock oem' check then restart and play original device is made for future joyui11
Click to expand...
Click to collapse
This is work?
babboooo said:
to relock the bootloader I tried the "fastboot flashing lock" command without quotes via adb pc fastboot the device will ask you to reset the system once you start the phone go to the developer settings and deactivate the 'unlock oem' check then restart and play original device is made for future joyui11
Click to expand...
Click to collapse
Can you give step by step for us noobs?
Lekauseni said:
Can you give step by step for us noobs?
Click to expand...
Click to collapse
1.enter fastboot
2.adb inout fastboot flashing lock
3.rec you drvice
4.enter your device system to developer settings,turn down the OEM
5.reboot
Wanna ask if i already flash twrp as recovery would this step pass to relock bootloader?
satoririto said:
1.enter fastboot
2.adb inout fastboot flashing lock
3.rec you drvice
4.enter your device system to developer settings,turn down the OEM
5.reboot
Click to expand...
Click to collapse
Can you tell step by step?
After my bs2 enters boots mode the system doesn't not recognize again.... It give error waiting for any devices

Unlock bootloader twice?

I already unlocked my device once and flashed a custom rom but due to issues in custom rom, I reverted back to stock MIUI and relocked the bootloader with
"fastboot OEM lock"
Now i can't find any methods to unlock the bootloader again and it shows error "token missing" in ̶m̶i̶ ̶f̶l̶a̶s̶h̶ mi unlock tool when I try to unlock bootloader again.
kp1284 said:
I already unlocked my device once and flashed a custom rom but due to issues in custom rom, I reverted back to stock MIUI and relocked the bootloader with
"fastboot OEM lock"
Now i can't find any methods to unlock the bootloader again and it shows error "token missing" in MI flash tool when I try to unlock bootloader again.
Click to expand...
Click to collapse
You must use Mi Unlock not Miflash.
NOSS8 said:
You must use Mi Unlock not Miflash.
Click to expand...
Click to collapse
Yes i used mi unlock it shows error

Categories

Resources