Easiest way to lock bootloader - Nexus 5X Q&A, Help & Troubleshooting

Hi, I need to lock bootloader.
What is the easiest and most anticipated method now?
Simply flash stock image (if so, which build?) with ADB and oem lock?
Or maybe it's better option? Please help

borda01 said:
Hi, I need to lock bootloader.
What is the easiest and most anticipated method now?
Simply flash stock image (if so, which build?) with ADB and oem lock?
Or maybe it's better option? Please help
Click to expand...
Click to collapse
Fastboot the latest factory image then fastboot OEM lock. If you need help, just follow my guide:
https://forum.xda-developers.com/showthread.php?t=3206930
Sent from my Nexus 5X using Tapatalk

Related

[Q] Can I lock back the bootloader?

Can I lock back the bootloader in my Galaxy Nexus to go back to stock?
locking the bootloader does not return you to stock. you need to flash the stock rom via fastboot to return it to stock.
If you want it lock up again use ''fastboot oem lock'' command.
Zepius said:
locking the bootloader does not return you to stock. you need to flash the stock rom via fastboot to return it to stock.
Click to expand...
Click to collapse
Yes, I know I need to flash the stock rom as well. Thanks
madd0g said:
If you want it lock up again use ''fastboot oem lock'' command.
Click to expand...
Click to collapse
Will this return the stock recovery?
JGeZau said:
Yes, I know I need to flash the stock rom as well. Thanks
Will this return the stock recovery?
Click to expand...
Click to collapse
no. nothing about locking the bootloader returns anything to stock.
the only thing locking the bootloader does is:
1) remove the lock symbol on the google bootup
2) no longer allows flashing of insecure images.
JGeZau said:
Will this return the stock recovery?
Click to expand...
Click to collapse
You get the stock recovery with getting the nexus image and flashing with ''fastboot flash recovery recovery.img''. So basically getting a factory device is with downloading the image, doing the flash-all and fastboot oem lock at the end.
ah ok, thank you all
Edit:
Zepius, I followed the guide in your signature. It was painless, thanks

Bootloader doesnt show Fastboot option (Noob)

hi guys,
i tried following a the htc unlock guides. but when i boot my m9 into the bootloader (vol down + power on ) there is no option for fastboot.
when i use the command fastboot devices my device is recognized but i cant use the fastboot oem get_identifier_token command
it just gives me an error.
can someone please give me tip? am i missing something?
thanks in advance for your help
chronicg said:
hi guys,
i tried following a the htc unlock guides. but when i boot my m9 into the bootloader (vol down + power on ) there is no option for fastboot.
when i use the command fastboot devices my device is recognized but i cant use the fastboot oem get_identifier_token command
it just gives me an error.
can someone please give me tip? am i missing something?
thanks in advance for your help
Click to expand...
Click to collapse
Instructions are a bit wanky. You need to be in download mode for the instructions to work. Had similar issue.
Fastboot Doesnt Show
dratsablive said:
Instructions are a bit wanky. You need to be in download mode for the instructions to work. Had similar issue.
Click to expand...
Click to collapse
I tried going into download mode and then doing "fastboot boot recovery.img" so that I could take a nandroid in it's current stock form before flashing the TWRP recovery. All i got was a "Start Downloading" Prompt and when I'd select it, the device kept saying "Under Flash" over and over again. Any idea of what to do or do I have to take the plunge and flash the boot with the recovery image?
debasser2 said:
I tried going into download mode and then doing "fastboot boot recovery.img" so that I could take a nandroid in it's current stock form before flashing the TWRP recovery. All i got was a "Start Downloading" Prompt and when I'd select it, the device kept saying "Under Flash" over and over again. Any idea of what to do or do I have to take the plunge and flash the boot with the recovery image?
Click to expand...
Click to collapse
you can't boot recovery
you need to flash TWRP 2.8.6.4 beta
Make a nandroid and save it to your pc
In TWRP Terminal use this command
Code:
mount -t ext4 /dev/block/bootdevice/by-name/system /system
Reboot recovery and your ready to start flashing SuperSU / roms
clsA said:
you can't boot recovery
Click to expand...
Click to collapse
do you know why this is?
Update: found the answer plus more details for the other answers above, in this thread.
Captain_Throwback said:
8. How do I backup stock recovery prior to flashing TWRP?
You can't. The "fastboot boot" command appears to be disabled on the M9's ABOOT, so TWRP must be fastboot flashed over stock recovery. The firmware zip included in the OTA will include a usable stock recovery image. That can be extracted and flashed after stock system is restored so that the OTA can be applied.
Click to expand...
Click to collapse
i just bought this phone, and i also have this new "download mode"
the instructions ive found for unlocking the bootloader all belong to the old version of this fastboot mode.
does anyone know how i can unlock my bootloader so i can have root please?
thanks in advance
reignzy said:
i just bought this phone, and i also have this new "download mode"
the instructions ive found for unlocking the bootloader all belong to the old version of this fastboot mode.
does anyone know how i can unlock my bootloader so i can have root please?
thanks in advance
Click to expand...
Click to collapse
You need to be in download mode to unlock the bootloader.
Follow this guide by KingInTheNorth to unlock your bootloader and root.
Just a small note: if you're on a 5.1 stock rom, you need to enable OEM unlock in developer options first.
Sent from my HTC One M9 using Tapatalk
kingvortex said:
You need to be in download mode to unlock the bootloader.
Follow this guide by KingInTheNorth to unlock your bootloader and root.
Just a small note: if you're on a 5.1 stock rom, you need to enable OEM unlock in developer options first.
Sent from my HTC One M9 using Tapatalk
Click to expand...
Click to collapse
Thank you sir, i think thats exactly the answer ive been searching for
Wish me luck im trying now
reignzy said:
Thank you sir, i think thats exactly the answer ive been searching for
Wish me luck im trying now
Click to expand...
Click to collapse
You're welcome.
You should be fine.
Sent from my HTC One M9 using Tapatalk
kingvortex said:
You're welcome.
You should be fine.
Sent from my HTC One M9 using Tapatalk
Click to expand...
Click to collapse
bootloader now unlocked, time for the fun to begin!
YUS!!! thank you again kind sir
No problem.
Sent from my HTC One M9 using Tapatalk
kingvortex said:
You need to be in download mode to unlock the bootloader.
Follow this guide by KingInTheNorth to unlock your bootloader and root.
Just a small note: if you're on a 5.1 stock rom, you need to enable OEM unlock in developer options first.
Sent from my HTC One M9 using Tapatalk
Click to expand...
Click to collapse
Thanks, just got a M9 and going to Download mode worked.
kingvortex said:
No problem.
Sent from my HTC One M9 using Tapatalk
Click to expand...
Click to collapse
i have htc one m9 demo device so im not allowed to change any of developer options. though usb debugging is enabled. is there any way i can unlock bootloader ?
someone tricked me nd sold this to me as a original deivce. quick help would be appreciated.
numanmalik77 said:
i have htc one m9 demo device so im not allowed to change any of developer options. though usb debugging is enabled. is there any way i can unlock bootloader ?
someone tricked me nd sold this to me as a original deivce. quick help would be appreciated.
Click to expand...
Click to collapse
As long as its not a verizon branded phone, you may be able to unlock it at www.htcdev.com/bootloader.I say may be because im not sure about a demo device, and whats different on that than a regular phone.
cmlusco said:
As long as its not a verizon branded phone, you may be able to unlock it at .I say may be because im not sure about a demo device, and whats different on that than a regular phone.
Click to expand...
Click to collapse
the difference is that i can not store any data in the phone. the app named "demo" keeps popping up automatically. and when it does my all data is gone like my contacts, messages, even the pictures.
in settings there are some option which i can not change, like i can not lock the phone or enter in the security section.
The phone is international version, i tried to unlock it from htcdev but for that u must be able to enter in FASTBOOT nd that OEM option in developer setting must be enabled. i am not able to enter any of those. No fastboot option in Settings. nd when i boot to Bootloader mode there is no option like fastboot. i hope this will make u understand what im trying to say! thannks
I dont know if its a demo thing, but general m9's dony even have the oem option in developer settings. There is no fastboot option to select in the bootloader, you just use a cmd prompt on your pc while in bootloader to type fastboot oem get_identifier token. Mabey i still dont understand.
In settings - display and gestures look for daydream and see if it gives you the option to shut it off. Or go to manage apps find daydream and see if you can disable it. I believe demo mode is part of daydream. Also may be called basic daydream. Also look for any other apps that say demo and try to disable them.

Not working Nexus 5X

I can't run Nexus 5X after flash stock firmware.
Phone restarts when is boot animation.
I have locked bootloader.
Please help
reboot to fastboot, use a computer with fastboot drivers and use the following commands...
fastboot format cache
fastboot format userdata
And NEVER uncheck that "allow unlocking" box
noidea24 said:
reboot to fastboot, use a computer with fastboot drivers and use the following commands...
fastboot format cache
fastboot format userdata
And NEVER uncheck that "allow unlocking" box
Click to expand...
Click to collapse
Thank You for answer but I can't do this because I have locked bootloader.
I tried to think of everything I have to give to repair.
Have you tried a factory reset from the stock recovery?
The_mamba said:
Have you tried a factory reset from the stock recovery?
Click to expand...
Click to collapse
Yes
I have this phone only 2 weeks.
XPawlex said:
Thank You for answer but I can't do this because I have locked bootloader.
I tried to think of everything I have to give to repair.
Click to expand...
Click to collapse
bootloader does not have to be unlocked for those commands.
Once you try the above suggestions, download the latest OTA and ADB sideload it. No unlocked bootloader required. The instructions on how to sideload are on the download page.
Sent from my Nexus 5X using Tapatalk
noidea24 said:
bootloader does not have to be unlocked for those commands.
Click to expand...
Click to collapse
uhm, from what I remember from the Nexus 6 brick disaster due to locked bootloader + disabled OEM unlocking + fail OTA, people were claiming that they couldn't do those 2 commands either with a locked bootloader.
noidea24 said:
bootloader does not have to be unlocked for those commands.
Click to expand...
Click to collapse
I haven't tested with the latest bootloaders, but I thought I recalled you couldn't do any write operations through the bootloader when it was locked.
Thank You
Thank you all for your answers, I will give tomorrow to repair. I will answer when I get it back and write what was the cause.
They gave me money for the phone, topic is closed.

Relock Bootloader

Greetings fellow xda member, i need some guide to relock my bootloader. I read about using miflash with clean and lock option, but one thing that make me confuse, wich rom should i use? Global or china rom? I'm on 10.0.4.0 global right now, cause i read in miui forum that i need to use Chinese rom to able to lock my bootloader.
Thanks in advance
w4y4n said:
Greetings fellow xda member, i need some guide to relock my bootloader. I read about using miflash with clean and lock option, but one thing that make me confuse, wich rom should i use? Global or china rom? I'm on 10.0.4.0 global right now, cause i read in miui forum that i need to use Chinese rom to able to lock my bootloader.
Thanks in advance
Click to expand...
Click to collapse
use global 10.0.60 you need the fastboot rom format for miflash.. google redminote 5 pro hub central. youll find links there for zip and fastboot rom
raptorddd said:
use global 10.0.60 you need the fastboot rom format for miflash.. google redminote 5 pro hub central. youll find links there for zip and fastboot rom
Click to expand...
Click to collapse
Thank you sir, i'll try and report it back later :good:
Today i manage to relock my bootloader, but clean all and lock option can't relock it. It only put my phone on stock condition with stock recovery and stock rom, just as same as clean all option. To relock bootloader, i use fastboot command "fastboot oem lock". Hope it can help whose want to relock bootloader
w4y4n said:
Today i manage to relock my bootloader, but clean all and lock option can't relock it. It only put my phone on stock condition with stock recovery and stock rom, just as same as clean all option. To relock bootloader, i use fastboot command "fastboot oem lock". Hope it can help whose want to relock bootloader
Click to expand...
Click to collapse
stranged. but good to know that command worked.

How to Relock Bootloader of OnePlus 7t

Anyone know how to Relock Bootloader of OnePlus 7t
frank602z said:
Anyone know how to Relock Bootloader of OnePlus 7t
Click to expand...
Click to collapse
fastboot oem lock
abalam said:
fastboot oem lock
Click to expand...
Click to collapse
Does it swipe the phone?
I know it does when unlocking but I'm not sure about locking... Actually I never did it xD
abalam said:
fastboot oem lock
Click to expand...
Click to collapse
After that, I ended up getting a loop of:
"Your device is corrupt. it can't be trusted and will not boot. Visit this link on another device"
frank602z said:
After that, I ended up getting a loop of:
"Your device is corrupt. it can't be trusted and will not boot. Visit this link on another device"
Click to expand...
Click to collapse
Did you do any modifications on your phone like root?
If so, you'll need to restore to stock either with fastboot ROM or MSM tool, the lock the bootloader.
Sent from my OnePlus7TPro using XDA Labs
Lossyx said:
Did you do any modifications on your phone like root?
If so, you'll need to restore to stock either with fastboot ROM or MSM tool, the lock the bootloader.
Sent from my OnePlus7TPro using XDA Labs
Click to expand...
Click to collapse
:good:
Never lock the bootloader after making system-level changes!
Lossyx said:
Did you do any modifications on your phone like root?
If so, you'll need to restore to stock either with fastboot ROM or MSM tool, the lock the bootloader.
Sent from my OnePlus7TPro using XDA Labs
Click to expand...
Click to collapse
how do i restore to stock? please help me
is it safe to just relock normally in fastboot via command prompt if ur on beta 2 one plus ?? Do i need any files to do it ? except adb etc...
If You did not messed with Rom it will be ok, but if You root it, first You need to go back to stock rom
Will the phone boot after relocking with a custom rom without root?
If You are full stock, stock rom, fastboot, all is stock, You should lock bootloader with no problem.
First search and read. I will be not responsible for bricking Your device.
Read about msm unbricking tool
I get "your device corrupt" after I try to relock my bootloader in 7T..
Im full stock because I flashed stock with this tutorial:
https://forum.xda-developers.com/oneplus-7t/how-to/rom-stock-fastboot-roms-oneplus-7t-t3979213
Any ideas?
yanokashi said:
I get "your device corrupt" after I try to relock my bootloader in 7T..
Im full stock because I flashed stock with this tutorial:
https://forum.xda-developers.com/oneplus-7t/how-to/rom-stock-fastboot-roms-oneplus-7t-t3979213
Any ideas?
Click to expand...
Click to collapse
Use MSM tool.
Sent from my OnePlus7TPro using XDA Labs
Globus.gd said:
If You are full stock, stock rom, fastboot, all is stock, You should lock bootloader with no problem.
First search and read. I will be not responsible for bricking Your device.
Read about msm unbricking tool
Click to expand...
Click to collapse
My phone is full stock, never rooted, just one day i unlock the bootloader but (so far) i want the bootloader locked again. I did the same procedure but wrote "lock" instead and nothing happend.
---------- Post added at 09:43 AM ---------- Previous post was at 09:28 AM ----------
abalam said:
fastboot oem lock
Click to expand...
Click to collapse
I tried 3 weeks ago and no work!
And what You get as response for: fastboot oem device-info
??
yanokashi said:
I get "your device corrupt" after I try to relock my bootloader in 7T..
Im full stock because I flashed stock with this tutorial:
https://forum.xda-developers.com/oneplus-7t/how-to/rom-stock-fastboot-roms-oneplus-7t-t3979213
Any ideas?
Click to expand...
Click to collapse
Download the same version zip file and then use the local upgrade method to flash. I hope the "Corrupt" wiriting will go way.
Globus.gd said:
And what You get as response for: fastboot oem device-info
??
Click to expand...
Click to collapse
Done! Just wrote fastboot oem lock .....and walahhh! My bootloader is lock againg and i have my netflix with high definition videos again (L1) plus my google pay is working again! Thanks!:good:
---------- Post added at 10:36 PM ---------- Previous post was at 10:30 PM ----------
The problem is with rooted devices. If anyone have a full stock (without root) HD1905 and only the bootloader unlocked....just use again de adb program and write
FASTBOOT OEM LOCK and the problem with some app dispear and your phone run like factory as normal.
nice tips!
wilsonmd said:
Done! Just wrote fastboot oem lock .....and walahhh! My bootloader is lock againg and i have my netflix with high definition videos again (L1) plus my google pay is working again! Thanks!:good:
The problem is with rooted devices. If anyone have a full stock (without root) HD1905 and only the bootloader unlocked....just use again de adb program and write
FASTBOOT OEM LOCK and the problem with some app dispear and your phone run like factory as normal.
Click to expand...
Click to collapse
Got my HD1905, unlocked bootloader (no root etc. Only to be able to use TWRP, just in case) and installed my apps. Then I noticed the Netflix problem with unlocked bootloader. If I do a 'fastboot oem lock' now, I'm pretty sure it will do a factory reset, correct?
Thx, W

Categories

Resources