[GUIDE][WINDOWS][LINUX] How to unlock your bootloader ! Official and Unofficial way - Xiaomi Mi A2 Lite Guides, News, & Discussion

Hi all,
The main advantage of unlocking the bootloader on Android is rooting. If you want your Android is rooted or if you want a custom ROM to install the unlocking bootloader is an initial step.
/!\ This will erase all of your data !!
You are using Windows ?
Simple but unofficial method :
1) On your device, enable developer options by going to Settings > About Phone, scroll down to Build number and tap 5-7 times to enable developer option.
2) Once you enabled the Developer Options. Returned back to Settings > Developer Options > USB Debugging and OEM Unlock. Just Enable there options.
3) Proceed to put your Xiaomi Mi A2 Lite into Fastboot mode by powering it on while holding Volume Down and Power buttons simultaneously. Hold until you see your phone is booted into Fastboot mode, now connect your phone to your computer.
4) Download Minimal ADB and Fastboot here : https://androidfilehost.com/?fid=962187416754459552
5) Now it’s time to unlock your phone,
Open in operator mode Minimal ADB and Fastboot and enter this command :
Code:
fastboot oem unlock
Your phone will reboot and your data will be erased but your bootloader is now unlocked !
Long but official method :
This method require some days because you have to ask xiaomi to send you an unlock code.
1) On your device, enable developer options by going to Settings > About Phone, scroll down to Build number and tap 5-7 times to enable developer option.
2) Once you enabled the Developer Options. Returned back to Settings > Developer Options > USB Debugging and OEM Unlock. Just Enable there options.
3) Proceed to put your Xiaomi Mi A2 Lite into Fastboot mode by powering it on while holding Volume Down and Power buttons simultaneously. Hold until you see your phone is booted into Fastboot mode, now connect your phone to your computer.
4) Go to http://en.miui.com/unlock, click on Unlock button on the webpage now you have to login and then proceed to tap on Download Mi Unlock from the resulting page.
5) After the successful login, the validation process will start on your phone, and for the first time, you will get a message that “You don’t have the permission to Unlock the device”
4) Now click on the “Go” button or use Go to MIUI Unlock page to receive the unlocking permission.
5) Now click on the Unlock Now and log in with your Mi account details and fill all details.
6) You will get a password for confirmation use it to complete the process.
7) Now wait until your application gets approved, you will receive the password on your phone number once it’s approved.
8) Now Open the Mi Flash tool click on unlock and pass the two pop-up.
Your phone will reboot and your data will be erased but your bootloader is now unlocked !
You are using Linux ?
Simple and unofficial methods, official methods doesn't work on linux :
1) On your device, enable developer options by going to Settings > About Phone, scroll down to Build number and tap 5-7 times to enable developer option.
2) Once you enabled the Developer Options. Returned back to Settings > Developer Options > USB Debugging and OEM Unlock. Just Enable there options.
3) Proceed to put your Xiaomi Mi A2 Lite into Fastboot mode by powering it on while holding Volume Down and Power buttons simultaneously. Hold until you see your phone is booted into Fastboot mode, now connect your phone to your computer.
4) Enter these commands in the Terminal :
Code:
sudo apt-get install fastboot
Code:
sudo apt-get install adb
5) Now it’s time to unlock your phone,
In terminal enter this command :
Code:
fastboot oem unlock
Your phone will reboot and your data will be erased but your bootloader is now unlocked !
Thanks Kineceleran for a solution to avoid the erasing data (I don't test it),
When you get in to fastboot mode hold to volume down button before and write "fastboot oem unlock" don't release until phone shows mi logo at the startup.
PS: Sorry for my bad English
Pierre
If I help you, drop a thanks

Actually you could avoid the erasing data
When you get in to fastboot mode
hold to volume down button before and write "fastboot oem unlock" code
dont release until phone shows mi logo at the startup.

Kineceleran said:
Actually you could avoid the erasing data
When you get in to fastboot mode
hold to volume down button before and write "fastboot oem unlock" code
dont release until phone shows mi logo at the startup.
Click to expand...
Click to collapse
Thanks for that I added this in the main post

Pierre_C said:
Thanks for that I added this in the main post
Click to expand...
Click to collapse
Usually i select the option "clean all and lock" on mi flash when i flash stock rom(for being pure).
I tried vol down method several times you can try this
sorry for my bad english tho :/

ohh no, the 100st thread about unlocking bootloader on original android-devices. And that in double

harvey said:
ohh no, the 100st thread about unlocking bootloader on original android-devices. And that in double
Click to expand...
Click to collapse
Yes but not for the Mi A2 lite and double post is a mistake

Pierre_C said:
Yes but not for the Mi A2 lite and double post is a mistake
Click to expand...
Click to collapse
And whats the difference between "fastboot unlock oem" for windows/linux or unlocking mia2 or mia2lite or google-pixels? There is no.
by the way: your tip on linux to make an "apt-get install fastboot/adb" could load an older version of this apps (depends on the distribution) which are not able to handle a/b formatted phones. so be careful!
Everybody who wants to root looks at the "rooting" threads, and in the a2lite threads for rooting in their 1st posts you can read how to unlock bootloader. No necessary for another "tutorial" imho.
And another by the way: Why is the fastboot-method "inofficial"? That are the tools from google themself for developing android.
Your "official way" is only needed if you have xiamoi-phone with miui on it.

What's the point of requesting the bootloader unlocking code from Xiaomi if it's as simple as running a command in fastboot with no strings attached?! Am I missing something?
Can someone clarify if the Mi A2 Lite, not being a MIUI device, needs the Xiaomi Unlocking procedure?
NOTE: Afaik, avoiding the data-wipe after unlocking the bootloader works for as long as you don't go into recovery mode, because the wiping task stays pending forever and some day you'll enter recovery and get your phone wiped anyway.

joint.striker said:
What's the point of requesting the bootloader unlocking code from Xiaomi if it's as simple as running a command in fastboot with no strings attached?! Am I missing something?
Can someone clarify if the Mi A2 Lite, not being a MIUI device, needs the Xiaomi Unlocking procedure?
NOTE: Afaik, avoiding the data-wipe after unlocking the bootloader works for as long as you don't go into recovery mode, because the wiping task stays pending forever and some day you'll enter recovery and get your phone wiped anyway.[/QUOTE
yes sounds not too good ending up with a wiped storage all of a sudden, but if after unlocking bootloader you install twrp and root the phone iam pretty sure the pending wipe will be gone, cheers
Click to expand...
Click to collapse

just to be clear whats the difference between the official and unofficial way?
does warranty status change depending on which way you use?

joint.striker said:
NOTE: Afaik, avoiding the data-wipe after unlocking the bootloader works for as long as you don't go into recovery mode, because the wiping task stays pending forever and some day you'll enter recovery and get your phone wiped anyway.
Click to expand...
Click to collapse
Can someone confirm this? I'm about to root one A2 Lite and would love to keep the data on.
Thanks!

Does this unlock process on linux works for xiomi MI redmi note 5 pro or not...!

Hi.
I'm trying to unlock A2 Lite from EndeavourOS (Arch Linux).
Installed ADB/fastboot (sudo pacman -S android-tools):
Android Debug Bridge version 1.0.41
Version 33.0.3p1-android-tools
However when executing "fastboot oem unlock" command, it hangs with the below:
< waiting for any device >
The device itself is visible when checking with "adb devices" command:
List of devices attached
3e334c3d0205 device
Are there perhaps some additional steps or soft I'm missing? Any idea what could be wrong?
Thanks in advance.

Hi,
Here is a great way to do it. Worked very well for me:
https://forum.xda-developers.com/t/guide-vm-xiaomi-unlock-bootloader-using-linux-and-mi-unlock-tool-or-any-other-virtual-machine.4569985/

Related

Can I relock bootloader after chinese rom / 8.1 update to enable andriod pay?

I had one of the phones with the garbage global roms and updated the device with the chinese rom hikari_calyx provided. I then updated to 8.1. Is it now possible for me to relock my device safely? Has anyone done this? I would like to have andriod pay.
Thanks in advance.
Yes you can My bootloader is locked again with Chinese stock android.
1. Go into Download Mode.
2. Start Minimal ADB & Fastboot.
3. Use the command
Code:
fastboot oem lock
You will get asked if you want to lock the bootloader again, select yes:
4. Press volume +, then press power button
Good luck
Robin>Hood said:
Yes you can My bootloader is locked again with Chinese stock android.
1. Go into Download Mode.
2. Start Minimal ADB & Fastboot.
3. Use the command
Code:
fastboot oem lock
You will get asked if you want to lock the bootloader again, select yes:
4. Press volume +, then press power button
Good luck
Click to expand...
Click to collapse
Here is a howto that Robinhood created: https://forum.xda-developers.com/nokia-7/how-to/guide-how-to-recovery-mode-t3813950/
Mine worked as well. *Note* I was stuck on the NOKIA screen after subsequent reboot and thought I bricked my phone. The next reset took a long time on NOKIA screen as well. Phone updated latest security patch and again, long reboot time. Afterwards, normal / fast reboot times without issue. I am not able to get 4G/LTE in Canada: I am not a phone person so i don't know if thats a function of the rom or hardware but just reporting in case it is of interest.

[GUIDE][WINDOWS][LINUX] How to unlock your bootloader ! Official and Unofficial way

Hi all,
The main advantage of unlocking the bootloader on Android is rooting. If you want your Android is rooted or if you want a custom ROM to install the unlocking bootloader is an initial step.
/!\ This will erase all of your data !!
You are using Windows ?
Simple but unofficial method :
1) On your device, enable developer options by going to Settings > About Phone, scroll down to Build number and tap 5-7 times to enable developer option.
2) Once you enabled the Developer Options. Returned back to Settings > Developer Options > USB Debugging and OEM Unlock. Just Enable there options.
3) Proceed to put your Xiaomi Mi A2 Lite into Fastboot mode by powering it on while holding Volume Down and Power buttons simultaneously. Hold until you see your phone is booted into Fastboot mode, now connect your phone to your computer.
4) Download Minimal ADB and Fastboot here : https://androidfilehost.com/?fid=962187416754459552
5) Now it’s time to unlock your phone,
Open in operator mode Minimal ADB and Fastboot and enter this command :
Code:
fastboot oem unlock
Your phone will reboot and your data will be erased but your bootloader is now unlocked !
Long but official method :
This method require some days because you have to ask xiaomi to send you an unlock code.
You need Windows it doesn't work on Linux.
1) On your device, enable developer options by going to Settings > About Phone, scroll down to Build number and tap 5-7 times to enable developer option.
2) Once you enabled the Developer Options. Returned back to Settings > Developer Options > USB Debugging and OEM Unlock. Just Enable there options.
3) Proceed to put your Xiaomi Mi A2 Lite into Fastboot mode by powering it on while holding Volume Down and Power buttons simultaneously. Hold until you see your phone is booted into Fastboot mode, now connect your phone to your computer.
4) Go to http://en.miui.com/unlock, click on Unlock button on the webpage now you have to login and then proceed to tap on Download Mi Unlock from the resulting page.
5) After the successful login, the validation process will start on your phone, and for the first time, you will get a message that “You don’t have the permission to Unlock the device”
4) Now click on the “Go” button or use Go to MIUI Unlock page to receive the unlocking permission.
5) Now click on the Unlock Now and log in with your Mi account details and fill all details.
6) You will get a password for confirmation use it to complete the process.
7) Now wait until your application gets approved, you will receive the password on your phone number once it’s approved.
8) Now Open the Mi Flash tool click on unlock and pass the two pop-up.
Your phone will reboot and your data will be erased but your bootloader is now unlocked !
You are using Linux*?
Simple and unofficial methods, official methods doesn't work on linux :
1) On your device, enable developer options by going to Settings > About Phone, scroll down to Build number and tap 5-7 times to enable developer option.
2) Once you enabled the Developer Options. Returned back to Settings > Developer Options > USB Debugging and OEM Unlock. Just Enable there options.
3) Proceed to put your Xiaomi Mi A2 Lite into Fastboot mode by powering it on while holding Volume Down and Power buttons simultaneously. Hold until you see your phone is booted into Fastboot mode, now connect your phone to your computer.
4) Enter these commands in the Terminal :
Code:
sudo apt-get install fastboot
Code:
sudo apt-get install adb
5) Now it’s time to unlock your phone,
In terminal enter this command :
Code:
fastboot oem unlock
Your phone will reboot and your data will be erased but your bootloader is now unlocked !
PS: Sorry for my bad English
Pierre
If I help you, drop a thanks
There's a difference between official and unofficial method? If I unlock my bootloader using the unofficial method what happen? Can I relock it?

Bootloader relock

Hi,
is it a problem to relock the bootloader ?
What steps do i have to do ?
Greetz
adb devices
Now, you will see a serial number in the command prompt window which indicates that the device is connected.
adb reboot bootloader
As the device booted into Fastboot mode, type the following command to lock the bootloader.
fastboot oem lock
Now, a confirmation pop-up will appear on the device screen. Use the volume buttons to navigate the highlight to “Relock Bootloader” and press the Power button to confirm it.
And after this, what will happen? Especially when you are rooted? Will it wipe all your data and can you start all over again, or will you face errors/issues/bootloops?
Person I wont just relock my bootloader. Your hash records are broken and you won't get working upgrades anymore, it's even the question if you still can oem unlock it again..... Besides this I don't know if, when you will brick your device, the msm tools still work. If you want to go back to stock better use MSMtools directly and go back to stock. https://www.xda-developers.com/how-to-unbrick-oneplus-nord-msmdownloadtool/amp/
Matija Gubec said:
adb devices
Now, you will see a serial number in the command prompt window which indicates that the device is connected.
adb reboot bootloader
As the device booted into Fastboot mode, type the following command to lock the bootloader.
fastboot oem lock
Now, a confirmation pop-up will appear on the device screen. Use the volume buttons to navigate the highlight to “Relock Bootloader” and press the Power button to confirm it.
Click to expand...
Click to collapse
Is this a safe method ? I dont want to brick the phone.... because i read a thread,where the relock ends in a bootloop..... THX
Im not test it but i have last week close BL on my O+ 8pro without any problem!
But before you close BL read this:
https://forum.xda-developers.com/on...de-fix-persist-img-loss-finger-print-t4125909
So i make it. And everything works without any problem.
If you have root remove it.
Flash last original firmware!
(so if you use patched boot.img you have now the "original" again!)
Then relock bootloader...
After that i test it with FP,Face Unlock and OTA update!
Everything is fine ...
reef2009 said:
Person I wont just relock my bootloader. Your hash records are broken and you won't get working upgrades anymore, it's even the question if you still can oem unlock it again..... Besides this I don't know if, when you will brick your device, the msm tools still work. If you want to go back to stock better use MSMtools directly and go back to stock. https://www.xda-developers.com/how-to-unbrick-oneplus-nord-msmdownloadtool/amp/
Click to expand...
Click to collapse
This 10.5.11.AC01AA version is ok?

Sideloaded Android 12 DevPrev3 on Pixel 3A, bricked phone

Yesterday I sideloaded the Android 12 Dev Preview 3 on my Google Pixel 3A. Enabled Developer options (did NOT! enable OEM unlocking, this wan't an instruction) and ADB. Sideloaded the file via Recovery.
Sideloading went fine, Stage 1 > Stage 2. Finished succesfull. Reboot device > Nothing.
'Can't find valid operating system. The device will not start.' Visit g.co/abh etc. (not very helpfull).
I can get in to fastboot. Devices state = Locked (ADB instructions didn't tell me to select this in developer options).
Can't boot into recovery, resque mode is also broken. Cannot use flash.android.com or pixelrepair.withgoogle.com. In my Country (Netherlands) the Phone isn't for sale officialy (only via grey import). My phone is from Germany. Can't get any Support from google or RMA it.
Any commands for flashing via fastboot are not allowed since flashing is not unlocked (it's stated above but i'll mention it again).
Softbricked and can't do anything. This is very sad.
Any tips?
Reading my own notes I would try to unlock the bootloader
- Hold power to reboot
- Press power to pause
- Hold volume-up + power to enter bootloader mode
If you can enter fastboot mode, try unlocking
fastboot devices
Should list a device...
fastboot flashing unlock
You will then have to use the phone to select yes to the unlock. you use the volume keys to select and the power button to confirm.
mulperi said:
Reading my own notes I would try to unlock the bootloader
- Hold power to reboot
- Press power to pause
- Hold volume-up + power to enter bootloader mode
If you can enter fastboot mode, try unlocking
fastboot devices
Should list a device...
fastboot flashing unlock
You will then have to use the phone to select yes to the unlock. you use the volume keys to select and the power button to confirm.
Click to expand...
Click to collapse
Ofc. thats what I tried first thing. Problem is there is no OS to boot into and to enable OEM unlock. That's also the reason pixel repair tool and flash.android.com do not work. Currently in contact with Google Netherlands to arrange an RMA. (The pixel phones aren't available in the Store here, so it's kind off a pain in the ass).

Samsung Xcover6 unlock bootloader (SM-G736B) before rooting

Wanting to root the device via magisk, I tried first to unlock the bootloader of my phone but apparently failed.
I started by activating the developer mode, set oem unlocking developer option in the settings then tried adb reboot bootloader : no success, the phone simply rebooted. A fastboot oem unlock just hung out waiting for a device.
I can go into download mode or recovery mode if that may help...
Any idea how to unlock this bootloader ? How can i check it is effectively unlocked ?
Thanks in advance for any help
It's well known that SAMSUNG mobiles don't have the Fastboot feature: there it's the Download mode.
FYI:
Power off your device. Press Volume Up + Volume Down and plug in your device to a PC to boot into download mode
When you enter download mode, Long press Volume Up button to unlock the bootloader.
ok well, let's forget about fastboot command then.
I'll answer myself on the original question, to unlock the bootloader:
switch off the phone
press volume up and volume down key
plugin a usb cable
choose "device unlock" with a long press volume up
after released the key up, choose "unlock" with volume up again
Now I'm looking to enter the download mode which I can't reach anymore. Any idea xXx yYy ?
Answer myself again
Apply the 3 first steps of my previous answer, you'll be in the same unlock screen as before but the first option will be "Continue". Choose it with volume up and you will end up in download mode !
Now I'll try rooting with magisk...
Rooting with magisk 25.2 done by a classical patching of AP from november release: AP_G736BXXU1BVK2_G736BXXU1BVK2_MQB58744363_REV00
It appears that this is the only thread on the entire forum for this phone?
Having just bought one for the removable battery and the dual SIM, I discovered that samsung in their infinite wisdom disabled the multiple users feature in their oneUI ROM, which really sucks because that was part of the reason I wanted the phone, to segregate certain apps into their own user account.
This all made me realize Root + custom ROM is probably the only way I will ever get that basic functionality returned.
So here I see that rooting is doable, but there appears to be zero results for un-samsung'd ROMs.
Which market is G736B? I was looking at ordering but I am in the US and the Samsung site is giving me the SM-G736UZKEXAA. Would the classical patching work on that?
The G736B model is sparsely distributed in EU, Asia, Africa and Oceania (see here). Your G736W US model is also based on Snapdragon 778G, it is probably the same phone with a few subtleties concerning 5G support (if any, can't find out) and software bloatware. I'd be surprised the above patching doesn't work but ... it's only a guess !
geekall said:
Wanting to root the device via magisk, I tried first to unlock the bootloader of my phone but apparently failed.
I started by activating the developer mode, set oem unlocking developer option in the settings then tried adb reboot bootloader : no success, the phone simply rebooted. A fastboot oem unlock just hung out waiting for a device.
I can go into download mode or recovery mode if that may help...
Any idea how to unlock this bootloader ? How can i check it is effectively unlocked ?
Thanks in advance for any help
Click to expand...
Click to collapse
you da real mvp bro

Categories

Resources