[GUIDE][Windows and x64 Linux]How to lock your bootllader and back to stock rom - Moto E6 Plus Guides, News, & Discussion

Hello everyone, this guide will be as simple as possible, taking into account that they deal with almost all the same things as to unlock the bootloader
First of all from flashtool flash the stock version number 76 (the one used to unlock the bootloader)
Turn on the device in fastboot mode, and use this command "fastboot flashing lock or fastboot flashing lock_critical" to then proceed to turn off the device
Then from lolinet download the latest stock version for your region and your device version either arm or arm64, once downloaded flash from flashtool, they must do this after blocking the bootloader because the last stock does not allow said unlocking
After doing all this, you should already have the bootloader locked with its latest corresponding stock version, I must remind you that basically the same thing is used as when unlocking the device.

Related

Fastboot and oem unlock

Yesterday I thought I bricked my phone. I too also got stuck on the secure boot error 1003 boot loop. It happened when I tried to relock my bootloader with fastboot oem lock. Can anyone explain why that happened and if, after you obtain root, if it's possible to go back and relock the bootloader. I was attempting to get android pay working again, plus it flashes that message about having an unlocked bootloader. Is it possible to re-lock the bootloader after you have root, and if so, what did I do wrong. I finally restored back to factory using the lg bridge tool and download mode, which was a [email protected]#% to get into with a bootlooping phone.
Thanks in advance.
happimeal said:
Yesterday I thought I bricked my phone. I too also got stuck on the secure boot error 1003 boot loop. It happened when I tried to relock my bootloader with fastboot oem lock. Can anyone explain why that happened and if, after you obtain root, if it's possible to go back and relock the bootloader. I was attempting to get android pay working again, plus it flashes that message about having an unlocked bootloader. Is it possible to re-lock the bootloader after you have root, and if so, what did I do wrong. I finally restored back to factory using the lg bridge tool and download mode, which was a [email protected]#% to get into with a bootlooping phone.
Thanks in advance.
Click to expand...
Click to collapse
To answer your question, when you root the g4 on marshmallow using chainfire's systemless root, It on the fly flashes a different boot image, thus if you relock the bootloader after rooting the device on the 6.0 marshmallow firmware it will end up with the security error because the boot image has been "modified" and a modified image won't be allowed to boot if the bootloader is locked so the answer is unfortunately no you can't have a locked bootloader and have root at the same time, If you want to relock the bootloader on the 6.0 firmware to get rid of the boot image showing "unlocked bootloader" you should flash the KDZ for the 6.0 firmware in this case H81120i firmware and then go into developer settings and uncheck enable oem unlocking and also make sure you boot into fastboot mode, you can do this via the adb shell. another option to not have the "unlocked bootloader" show every boot would be to go back to the 5.1 firmware which did not have this. I hope this helps.
Thank you for a great explanation.
If you ask the people at xposed modules they may be able to do something maybe....
5.1 still displays bootloader unlocked message.
cschmid44 said:
To answer your question, when you root the g4 on marshmallow using chainfire's systemless root, It on the fly flashes a different boot image, thus if you relock the bootloader after rooting the device on the 6.0 marshmallow firmware it will end up with the security error because the boot image has been "modified" and a modified image won't be allowed to boot if the bootloader is locked so the answer is unfortunately no you can't have a locked bootloader and have root at the same time, If you want to relock the bootloader on the 6.0 firmware to get rid of the boot image showing "unlocked bootloader" you should flash the KDZ for the 6.0 firmware in this case H81120i firmware and then go into developer settings and uncheck enable oem unlocking and also make sure you boot into fastboot mode, you can do this via the adb shell. another option to not have the "unlocked bootloader" show every boot would be to go back to the 5.1 firmware which did not have this. I hope this helps.
Click to expand...
Click to collapse
I have installed h815 KDZ files using LGUP. When i reboot it still displays Bootloader unlocked message. I can not use bootloader unlock/lock guide as I have bootloader unlocked.
Any other means to get rid of the message.
bump for way to relock h815

change from china stock rom

How to unlock bootloader and install EU Rom ?
I don't have my Mi Max 2 by now but i suppose it works like this:
1) Unlock the bootloader officially (there should be some tutorials for this as it works the same on all mi phones)
2) Download an adb/fastboot package
3) Download and flash TWRP (http://en.miui.com/thread-644074-1-1.html)
4) Start TWRP (Turn phone off and then hold Power and VoL- (or VOL+ - not sure) i think) and flash ROM, then SuperSU. Maybe you have to format data first to get rid of the encryption
5) done
I've got my device with unlocked bootloader. So no need to unlock again. Tried to OTA update, but never successful. Then tried flash global update rom manually from twrp (have to install first). Now I have latest update global rom abd of course with root (for some system mod ).
I don't know how to back to stock recovery and locked bootloader. But I will find away to do it someday :laugh:
Back to Stock--->Mi Max 2 Global--->Flashing Guide
Fastboot Update or relocked bootloader: http://en.miui.com/a-234.html

Get back to stock an relock bootloader

Hi all,
I have a Mi 9 europe version and want to get back to stock.
The current status of my device is:
- Bootloader unlocked
- TWRP
- flashed GSI FlokoRom
Can I just put the phone into fastboot mode and flash (10.2.24.0 PFAEUXM from there) with MI flash tool as mentioned there? Is it possible to relock the bootloader after this or will it brick my device?
I recommend you to flash rom WITHOUT LOCKING at first time. Even if something is wrong you should be able to flash twrp and then flash any rom.
But if after flashing your ohone boot up normally, flash it again and tick LOCK BOOTLOADER. Simple and secure way to get stock phone.

How to safely back to stock (factory state - get warranty)?

I want to back to stock on my Xiaomi A2 (full factory state - bootloader locked, no TWRP etc.) to get ma warranty back.
My current status:
- bootloader and critical unlocked
- loaded V10.0.8.0.PDIMIXM ROM (Fastboot official) from https://forum.xda-developers.com/mi-a2/how-to/ota-v9-6-5-0-odimife-t3823445 (used edl mode)
- previously I installed TWRP, decryption disabler and magiks
My last way to install ROM was by edl mode - downloaded fastboot version and used MiFlash tool (clean all). Previously I tried to run flash_all.bat from fastboot ROM, but it stopped on lashing devcfg_a (FAILED (remote: Flashing is not allowed for Critical Partitions), but I have critical unlocked.
My question is: Should I use MiFlash with edl mode to back to full stock with "clean all and lock" mode? Is it safe? I am afraid of locking bootloader and missing something what should be done before (I read it can brick the phone).
Should I install recovery first (missing in fastboot package), enable encryption or do something more?
Just flash fastboot image and relock and it'll be fine
I've reinstalled stock rom just yesterday, i had the same error with Mi Flash, i've flashed all manually from ADB, if you're coming from an Android Q ROM flash back the persist partition (i've a full Pie Backup) first or your WiFi MAC will disappear, when you've installed all (if the phone boot with Android One and everything Is working) just lock the bootloader (i've just used Oem Lock, idk about critical partitions) and you're good to go
When I used Mi A2 Toolkit, there were 3 options when I was unlocking bootloader: "Unlock OEM", "Unlock Flashing" and "Unlock flashing critical". I am not sure if executed all of them, but I am sure they were at least 2 of them.
So do I have to lock in the opposite way "Lock flashing critical", "Lock flashing" and "Lock OEM" or just "Lock OEM"? I need to be sure.
Can something happen if I will try to lock in that way, but I didn't unlock if before?
There is a toggle in developer options, "OEM Unlocking," which needs to be toggled on to lock or unlock the bootloader with fastboot. I would leave the bootloader and critical both unlocked until you are ready to use the warranty. If you have a bad flash and then lock the bootloader or critical then you might have a hard time getting everything working again.

Question Can't find valid os??

I was locking my bootloader to try to reroot and pass safetynet. So, I factory reset it, set it up, and then went into the bootloader and typed "fastboot flashing lock". I selected yes to confirm the locking of my bootloader and then my phone rebooted. But now my phone says "Can't find valid operating system" and I can't boot into Android. i was able to unlock the bootloader again but now i don't have magisk installed and I can't even boot into Android to install anything. Is there anything i can do to fix this?
Yes, if you're bootloader is unlocked then you can fastboot flash (or use Chrome web based Android Flash Tool) factory images from https://developers.google.com/android/images
If you want to root extract the boot.img from the zip and patch with Magisk, then fastboot flash boot magisk_patched.img after you boot the phone once on stock unrooted kernel.
Thank you. I did it with the flash tool. Then later, it happened again and I realized I could use the boot.img. I'm glad these Google pixels are noob friendly.
Never lock your bootloader unless you know for a fact that you are on bone stock OEM firmware.

Categories

Resources