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.
Related
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
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
hi
i rooted my device and installed twrp and DU rom.
a week ago i wanted to unroot my device. i made a huge mistake and did it via an app instead pc...
now my device is locked but i have twrp and cant flash anything so i cant unlock my bootloader anymore...
pls help!
thank you
Unrooting your device doesn't lock the bootloader. Unless you went into developer options and toggeled OEM unlocking off.
Exodusche said:
Unrooting your device doesn't lock the bootloader. Unless you went into developer options and toggeled OEM unlocking off.
Click to expand...
Click to collapse
well the problem is that it is locked and i have twrp installed. now i cant flash and boot anything and so i cant unlock it anymore?
imnaze said:
well the problem is that it is locked and i have twrp installed. now i cant flash and boot anything and so i cant unlock it anymore?
Click to expand...
Click to collapse
To unlock BL, you need to permit it in the dev menu and run a fastboot commmand. Are you sure TWRP avoid you to do that?
Hi, I used fastboot to boot TWRP without flashing it (using fastboot boot twrp.img). Foolishly of me when exit TWRP I was asked to disabled Stock Recovery wich I swiped yes. Now my stock recovery is gone. How do I enable it via TWRP again without having to flash it? or what are my options? phone functionlity was not afected, just the stock recovery.
thanks.
imho you either use twrp OR stock recovery. so in my opinion youve done all right.
Download fastboot image.. extract boot.img from it. Boot in TWRP using fastboot .. then install->install image->boot.img(file you extracted)->flash->choose recovery, not boot when where to flash->done.
If it doesn't work then flash the whole fastboot image with mitool.
h0LLe said:
imho you either use twrp OR stock recovery. so in my opinion youve done all right.
Click to expand...
Click to collapse
dragneelfps said:
Download fastboot image.. extract boot.img from it. Boot in TWRP using fastboot .. then install->install image->boot.img(file you extracted)->flash->choose recovery, not boot when where to flash->done.
If it doesn't work then flash the whole fastboot image with mitool.
Click to expand...
Click to collapse
I ended up flashing the whole image beacuse it bricked when using the command "fastboot oem lock".
any idea why it bricked? i did flash a stock recovery before in order to lock it again.
After rooting it im interested in locking the bootloader again. Maybe I skipped a procedure in order to lock the bootloader again??
Right now im rooted, phone working, stock recovery (since I flashed a fastboot image with SP tools) and unlocked bootloader but I want to lock it without bricking it again.
thanks.
pach33 said:
I ended up flashing the whole image beacuse it bricked when using the command "fastboot oem lock".
any idea why it bricked? i did flash a stock recovery before in order to lock it again.
After rooting it im interested in locking the bootloader again. Maybe I skipped a procedure in order to lock the bootloader again??
Right now im rooted, phone working, stock recovery (since I flashed a fastboot image with SP tools) and unlocked bootloader but I want to lock it without bricking it again. (i lock bootloader for my friend which has redmi 3s)
thanks.
Click to expand...
Click to collapse
To lock bootloader again you must flash stock image via fastboot with "lock bootloader" bat file (it is in stock image flashtool zip). But why U need to lock bootloader? i dont see sense to do it.
dromaczek said:
To lock bootloader again you must flash stock image via fastboot with "lock bootloader" bat file (it is in stock image flashtool zip). But why U need to lock bootloader? i dont see sense to do it.
Click to expand...
Click to collapse
Hi, thanks for the answer, I want to lock it because some features got disabled when unlocking the bootloader, like xiaomis "Find mi Device". I also read that having the bootloader unlocked may compromise your data security.
pach33 said:
Hi, thanks for the answer, I want to lock it because some features got disabled when unlocking the bootloader, like xiaomis "Find mi Device". I also read that having the bootloader unlocked may compromise your data security.
Click to expand...
Click to collapse
:laugh::laugh::laugh::laugh: funniest thing i read on the internet today
chandradeepdey01 said:
:laugh::laugh::laugh::laugh: funniest thing i read on the internet today
Click to expand...
Click to collapse
He write only true! He could "read that having the bootloader unlocked may compromise your data security" :laugh::laugh::laugh::laugh::laugh:
chandradeepdey01 said:
:laugh::laugh::laugh::laugh: funniest thing i read on the internet today
Click to expand...
Click to collapse
dromaczek said:
He write only true! He could "read that having the bootloader unlocked may compromise your data security" :laugh::laugh::laugh::laugh::laugh:
Click to expand...
Click to collapse
Glad I made you guys laugh. :good: Next time I will better use the noob friendly Q&A.
pach33 said:
Glad I made you guys laugh. :good: Next time I will better use the noob friendly Q&A.
Click to expand...
Click to collapse
Woah, didn't mean to offend you bro. It was sarcasm.
It is replaced not disabled...
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!