How to Unlock Bootloader of Moto G5 Plus (XT 1686) - Moto G5 Plus Guides, News, & Discussion

Guys unlocking Moto G5 Plus Bootloader is quite easy.
Just download ADB and Moto Drivers.
Visit Moto Bootloader unlock website by clicking here
Now enable USB Debugging and Allow OEM unlock by going in Developer options.
Then reboot to fastboot by turning off your phone and then pressing Volume Down and Power Key together
Connect phone and in command window type fastboot oem get_unlock_data
Then copy the code and use Moto Scrub tool at Step 5.
Paste the code obtained above in Step 6 on Moto Website.
Click on I agree and then on get unlock code.
You shall receive a unlock key.
Now type fastboot oem unlock UNIQUE_KEY
twice.
Congrats you have successfully unlocked your bootloader.
For more detailed tutorial Please visit source URL by Clicking Here.

Hello,
I'm planning to buy this device, specifically the XT1684 or XT1685 variant. Are these specfic variants supported and are there any culprits I should be aware of? For example, is there a possibility of me being locked out like with LG's G/V series devices? Or is the bootloader unlock procedure completely smooth?

thanks for the guide. I have just unlocked it.
Any guide to root it?

souvikroy1111 said:
thanks for the guide. I have just unlocked it.
Any guide to root it?
Click to expand...
Click to collapse
Can't say for sure since I don't own the device, but I guess flashing the SuperSU zip in TWRP will do (when the TWRP for this device releases, that is).

as usually unlock bootloader void the warranty, right???
thanks

ironia. said:
as usually unlock bootloader void the warranty, right???
thanks
Click to expand...
Click to collapse
Yes. It does.

Am unable to unlock bootloader of my moto g5 plus please help me
When i ask for oem unlock data
The response is unlock data unavailable

_m_u_j_a_h_i_d_ said:
Am unable to unlock bootloader of my moto g5 plus please help me
When i ask for oem unlock data
The response is unlock data unavailable
Click to expand...
Click to collapse
You have to talk to Motorola... There is nothing we can do to help this.

Will they help to unlock bootloader?

_m_u_j_a_h_i_d_ said:
Will they help to unlock bootloader?
Click to expand...
Click to collapse
https://forums.lenovo.com/t5/MOTOROLA-Android-Developer/Bootloader-Unlock-Problems/td-p/3222809

Just have read at 4pda.ru forum that now Amazon phone can be also unlocked like it's written in OP
Who wants to unlock it - try ))

UltraMaks said:
Just have read at 4pda.ru forum that now Amazon phone can be also unlocked like it's written in OP
Who wants to unlock it - try ))
Click to expand...
Click to collapse
There is a thread specific to this here... Seems there was a glitch and Moto was issuing codes for a few days until it was caught and fixed.

The instructions worked for me, allowing to unlock the bootloader. Device was a reconditioned moto g5 plus (XT1685) bought from amazon (not an "amazon exclusive", the international version).

Invalid Boot State
fastboot.exe oem unlock 7JNIQIPPF4VEIRPLWARE
...
(bootloader) invalid boot state
OKAY [ 0.004s]
finished. total time: 0.004s
please resolve.
hapticc said:
Guys unlocking Moto G5 Plus Bootloader is quite easy.
Just download ADB and Moto Drivers.
Visit Moto Bootloader unlock website by clicking here
Now enable USB Debugging and Allow OEM unlock by going in Developer options.
Then reboot to fastboot by turning off your phone and then pressing Volume Down and Power Key together
Connect phone and in command window type fastboot oem get_unlock_data
Then copy the code and use Moto Scrub tool at Step 5.
Paste the code obtained above in Step 6 on Moto Website.
Click on I agree and then on get unlock code.
You shall receive a unlock key.
Now type fastboot oem unlock UNIQUE_KEY
twice.
Congrats you have successfully unlocked your bootloader.
For more detailed tutorial Please visit source URL by Clicking Here.
Click to expand...
Click to collapse

Fastboot is not working on my G5 Plus
The adb devices show my device before reboot:
C:\Windows\system32>adb devices
List of devices attached
0036349461 device
But when I execute the command "adb reboot bootloader" my mobile restart on fastboot mode and after it the commands like "fastboot devices" or "fastboot oem get_unlock_data" doesn't response...

Related

[HELP] Bootloader

please help, i can't unlocked my bootloader :'(
my rooting status : "Bootloader unlocked allowed : Yes"
but every time i flash, it makes error please help!
(bootloader) Unlock phone req
FAILED (remote: oem unlock fa
finished. total time: 0.007s
Are you sure you entered the boot loader key correctly, i. e. capital letters and no spaces?
The key has to be entered exactly like this:
Code:
fastboot.exe -i 0x0fce oem unlock 0x[I](your correct key)[/I]
Good luck!
Regards,
Chipy
Chip_88 said:
Are you sure you entered the boot loader key correctly, i. e. capital letters and no spaces?
The key has to be entered exactly like this:
Code:
fastboot.exe -i 0x0fce oem unlock 0x[I](your correct key)[/I]
Good luck!
Regards,
Chipy
Click to expand...
Click to collapse
like this one right ?
fastboot.exe -i 0x0fce oem unlock 0x9A32EFD0DDFXXXX
Click to expand...
Click to collapse
ehl.ey14 said:
like this one right ?
Click to expand...
Click to collapse
Exactly, but I think you shouldn't post your unlock key in such a public way...
Did it work?!
Chip_88 said:
Exactly, but I think you shouldn't post your unlock key in such a public way...
Did it work?!
Click to expand...
Click to collapse
(bootloader) Unlock phone req
FAILED (remote: oem unlock fa
finished. total time: 0.007s
Click to expand...
Click to collapse
same like this
Did you copied fastboot.exe to C:/ ?!
Did you start your device in fastboot mode?! Did the LED turn blue?!
Do you get any result, when you enter: fastboot.exe -i 0x0fce getvar version ?!
Chip_88 said:
Did you copied fastboot.exe to C:/ ?!
Did you start your device in fastboot mode?! Did the LED turn blue?!
Do you get any result, when you enter: fastboot.exe -i 0x0fce getvar version ?!
Click to expand...
Click to collapse
i used minimal adb 0.03 is the version? it is always detected, i installed properly the sony adb
ehl.ey14 said:
i used minimal adb 0.03 is the version? it is always detected, i installed properly the sony adb
Click to expand...
Click to collapse
If you would have mention before, that you're using minimal adb... :silly:
Then try: fastboot oem unlock *YOUR UNLOCK KEY*
Succeeded?!
Chip_88 said:
If you would have mention before, that you're using minimal adb... :silly:
Then try: fastboot oem unlock *YOUR UNLOCK KEY*
Succeeded?!
Click to expand...
Click to collapse
with space or not?
ehl.ey14 said:
with space or not?
Click to expand...
Click to collapse
Try it WITH space: fastboot oem unlock KEY
Don't forget fastboot reboot in the end. :laugh:
Chip_88 said:
Try it WITH space: fastboot oem unlock KEY
Don't forget fastboot reboot in the end. :laugh:
Click to expand...
Click to collapse
same :
<boatloader> Unlock phone requested
FAILED <remote : oem unlock 0XFFFFFFFFFFFFFFFF>
finished. total time: 0.007s
Click to expand...
Click to collapse
ehl.ey14 said:
same :
Click to expand...
Click to collapse
Very strange!
Could have some reasons:
1. Are you sure, you entered the correct 14 digits of your IMEI, when you asked for your unlock key on Sony?
Normally, the IMEI has 15 digist, but you have to leave the last one away.
Did you do so?!
2. The command fastboot oem unlock KEY has to be entered following the right folder structure.
So try the following: Open your Explorer. Go to the folder of your "minimal adb" installation.
Let's suppose you installed in on the partition E: into the folder Minimal ADB and Fastboot.
By the way: You didn't mentioned which system you're running. And it's harder then to give correct instructions.
On Vista, right click on that folder and choose "Open Command Prompt Here";
on other Windows versions it should be similar to this.
Now, the commander opens and should say something like: E:\Minimal ADB and Fastboot>.
And then write adb devices. Wait for the output.
If you get your device listed there, you did it right.
If not, you made something wrong.
If this shouldn't work again, please, be so kind to give us a detailed overview of all the steps you exactly did.
Good luck!
Try to get another unlock key from sony.
When I unlocked my bootloader I didn't use the unlock key for a week and when I finaly had time to do it I received the same error, so I went back to sony website and requested a new unlock key. It worked like a charm.
gtx_cj said:
Try to get another unlock key from sony.
When I unlocked my bootloader I didn't use the unlock key for a week and when I finaly had time to do it I received the same error, so I went back to sony website and requested a new unlock key. It worked like a charm.
Click to expand...
Click to collapse
Thanks for your answer.
It would be also the next / last step, I would suggest to her - after all the other advices weren't successful.
Chip_88 said:
Very strange!
Could have some reasons:
1. Are you sure, you entered the correct 14 digits of your IMEI, when you asked for your unlock key on Sony?
Normally, the IMEI has 15 digist, but you have to leave the last one away.
Did you do so?!
2. The command fastboot oem unlock KEY has to be entered following the right folder structure.
So try the following: Open your Explorer. Go to the folder of your "minimal adb" installation.
Let's suppose you installed in on the partition E: into the folder Minimal ADB and Fastboot.
By the way: You didn't mentioned which system you're running. And it's harder then to give correct instructions.
On Vista, right click on that folder and choose "Open Command Prompt Here";
on other Windows versions it should be similar to this.
Now, the commander opens and should say something like: E:\Minimal ADB and Fastboot>.
And then write adb devices. Wait for the output.
If you get your device listed there, you did it right.
If not, you made something wrong.
If this shouldn't work again, please, be so kind to give us a detailed overview of all the steps you exactly did.
Good luck!
Click to expand...
Click to collapse
i'll try it later
gtx_cj said:
Try to get another unlock key from sony.
When I unlocked my bootloader I didn't use the unlock key for a week and when I finaly had time to do it I received the same error, so I went back to sony website and requested a new unlock key. It worked like a charm.
Click to expand...
Click to collapse
what do you mean? i already did this, 10 time unlock keys but the same keys
Chip_88 said:
Thanks for your answer.
It would be also the next / last step, I would suggest to her - after all the other advices weren't successful.
Click to expand...
Click to collapse
</3
ehl.ey14 said:
i'll try it later
what do you mean? i already did this, 10 time unlock keys but the same keys
</3
Click to expand...
Click to collapse
'coz you didn't answer the whole day, I already thought, you unlocked your device already!
Go for it, ehl.ey14!
... and let us know, what's your result!!!
Hi there,
I must try here, and ask.... If you could help me with unlocking my bootloader.
I tried various "no boot needed" rom-s and nothing worked ! Whoever I try to ask, nobody is saying anything useful.
My t-mobile (phone is locked, only for theirs sim cards) is saying that's locked by sony, local service guy is saying something different and I don't know which side could I believe !
I would like to change that "bootloader unlock allowed:no" to yes
and after that- install ultimate hd rom. So I would ,kindly, like you to point me (what) and how should I unlock my boot loader. (I believe, there are ways and it could be done)
Big thanks and best wishes !
Željko :good:
Hi Željko!
As far as I know, the information in your device Bootloader Unlock Allowed has to be positive, i. e., saying Yes!
Otherwise you can't unlock your bootloader for free and have to choose a paid unlock.
Sorry for not having better news for you! =/
that's positive :laugh:
positive that it can be unlocked.. either way, it's going to be cheaper than new mobile phone
The best I was hoping is some homemade method, but... this is ok
another question !
When I contacted that local servicer, he said that some bootloaders can and some can't be unlocked (on lt18i), would you know why or is that true ?!
and, btw, I asked for price... he said, if unlocking is successful he's going to charge me around 20usd (just for reference)
Thanks
Chip_88 said:
'coz you didn't answer the whole day, I already thought, you unlocked your device already!
Go for it, ehl.ey14!
... and let us know, what's your result!!!
Click to expand...
Click to collapse
still locked

remote: oem unlock is not allowed

Hi,
I am using my Nextbit Robin Oem Unlock from last 1 year but today i decided to go back to stock with locked Oem.
I flashed the stock rom and locked the Oem at the same time but when i restarted the phone it got stuck at the boot.
So I went ahead with the 'fastboot oem unlock' command, and here's the problem. All flashing command returns FAILED <remote: device is locked...>.
fastboot oem device-info reads: Device tampered: false, Device unlocked: false. So bootloader is locked. At this point I assume that the bootloader is unlocked, but revert back to locked after reboot (the phone automatically rebooted after executing oem unlock command, so can't get around that).
Tried numerous other methods, using different adb files, no dice. Can't even flash TWRP. Tried adb sideload, same. Tried executing fastboot oem unlock with various different parameter, still locked after reboot. I cannot flash anything into locked bootloader.
Google researched it for few hours, same problem happened to other phones from other manufacturers that came returned from warranty replacement with modified motherboard; OR tampered/broken eMMC/NAND flash. But no such case for Nextbit Robin (yet?).
Pretty hopeless right now since I just found out that Nextbit Robin support ended on Aug 1st.
Guess I'm stuck with locked bootloader and no cell signal phone. Unless someone can help. One can always hope.
Anyway, thanks for reading.
Mukul_Meena said:
Admin Note: This is a special Q&A-formatted thread. Please follow this link to view it in your browser: http://xda.tv/post76659814
Click to expand...
Click to collapse
If you bootloader is unlocked I think you can give a try to the Nextbit's Unbrick Tool
As you want to go back to stock , I think this is a good idea.
Now if your bootloader isn't unlocked there is unfortunately nothing I can do for you , unless you unlock it .
Edit #1: If your bootloader is locked , go to bootloader mode by pressing volume down + power button for about 20 seconds and try to see the bootloader state with fastboot commands. If it is unlocked , follow the process in the @nextbitKhang's thread .
Yes that's the main issue. Oem is Locked.
Is there any Oem unlock code i can use to unlock from ADB?
I don't think so ,I'm not sure, but I hope you'll find one.
On your Robin go to settings > system > about phone > tap build number until it shows developer options.
Go into developer options which is in settings > system > developer options.
Make sure OEM unlocking is enabled. (for good measure disable then re-enable)
Also make sure usb debugging is enabled. Have the Robin plugged into a computer so you can enable to pop-up on Robin asking for access for the computer.
Once they are both enabled shut down your phone. Turn it back on while pressing vol down+power and plugged into your computer.
In adb run command fastboot oem unlock
please i'm experiencing the same issue not on nextbit but on GIonee.
i have re-activate both OEM unlocking and USB debugging several times but it all void
same error: Remote: OEM unlock is not allowed
please kindly help

Downgrade from Pie to Oreo without Root and unlocked Bootloader?

Hey guys,
can someone tell me if it's possible to downgrade the stock android pie version to stock oreo without rooting my device or unlock the bootloader?
I read some threads and posts but i'm not sure, because the information is disputed.
So can i flash the old stock android without getting a brick or getting stuck in edl-mode?
Thank you for your answers
Mansil234 said:
Hey guys,
can someone tell me if it's possible to downgrade the stock android pie version to stock oreo without rooting my device or unlock the bootloader?
I read some threads and posts but i'm not sure, because the information is disputed.
So can i flash the old stock android without getting a brick or getting stuck in edl-mode?
Thank you for your answers
Click to expand...
Click to collapse
Hello,
I think that it's not possible without unlocking bootloader. The unique solution is to enter in edl-mode but this is more dangerous than unlock the bootloader. Unlock bootloader is very simple and not dangerous, you are just going to loose all of your data but with a backup this is not a problem.
Root is not necessary for that, if you need help to do your downgrade with bootloader unlocking tell me !
I'm here if you have any question or if you need help !
Pierre
Flashing via EDL Mode only works with unlocked bootloader!
Unlock Bootloader will erasing all data (reset system)!
Pierre_C said:
Hello,
I think that it's not possible without unlocking bootloader. The unique solution is to enter in edl-mode but this is more dangerous than unlock the bootloader. Unlock bootloader is very simple and not dangerous, you are just going to loose all of your data but with a backup this is not a problem.
Root is not necessary for that, if you need help to do your downgrade with bootloader unlocking tell me !
I'm here if you have any question or if you need help !
Pierre
Click to expand...
Click to collapse
Can you send me the links for unlock bootloader and oreo firmware? I can't find them
ᵀᴴᴱK!D ᴼᴿᴵᴳᴵᴻᴬᴸ ツ™ said:
Can you send me the links for unlock bootloader and oreo firmware? I can't find them
Click to expand...
Click to collapse
I don't now the link but I can explain you the process.
/!\ This will erase all of your data !!
1) 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.
At that time you have 2 option, official option and non-official version.
- Official Version,
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) 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.
2) Now, 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.
3) 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 OTP for confirmation use it to complete the process.
7) Now wait until your application gets approved, you will receive the OTP 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 device will be unlocked
Non-Official but simple version :
1) 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.
4) Download Miniamal ADB and fastboot in you are on windows, https://forum.xda-developers.com/showthread.php?t=2317790
If you are on linux use
Code:
sudo apt-get install fastboot
Code:
sudo apt-get install adb
3) On Windows in Minimal ADB and fastboot or on Linux on the terminal enter this command
Code:
fastboot oem unlock
4) Your phone will reboot, it's unlock !
PS: Sorry for my bad English
Pierre
PC295 said:
Flashing via EDL Mode only works with unlocked bootloader!
Unlock Bootloader will erasing all data (reset system)!
Click to expand...
Click to collapse
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

[Guide]Un/locking Motorola Bootloader

UnLocking and ReLocking Motorola Bootloader​
Unlocking the Bootloader | Motorola Support US
Visit the customer support page to view user guides, FAQs, bluetooth pairing, software downloads, drivers, tutorials and to get repair and contact us information.
motorola-global-portal.custhelp.com
Unlocking the Bootloader | Motorola Support UK
Visit the customer support page to view user guides, FAQs, bluetooth pairing, software downloads, drivers, tutorials and to get repair and contact us information.
en-gb.support.motorola.com
Moto Bootloader Unlocking site
Motorola UK's bootloader unlock website
Re-Locking see Post #4
More about bootloader UnLocking Post #2
Can my bootloader be unlocked? post#3
List of CIDs
Is the Bootloader UnLocked?
Why is OEM Unlocking greyed out?
Alt Data Input method for Moto Unload Site - (Updated instructions 17 June 2023)
Note:
Moto Site is finicky, and instead of it saying I'm sorry there's an error, it just says​"Your device does not qualify for bootloader unlocking."​So if you get this notice but you have a qualifying Cid (see post #3)​try again later.​
Carrier-exclusive models (ex. Verizon, AT&T, Tracfone) are almost never unlockable.​Bootloader unlock codes are not available for Amazon Branded devices​
Warnings
My warning: If you unlock the bootloader.​Don't expect that it can be relocked.​There are many people that have Unlocked the bootloader.​Only to find out that it will not relock.​​Or if it Locks it has a warning​​​
Your device has loaded a different operating system.
Click to expand...
Click to collapse
or​​
Verity mode is set to disabled.
Click to expand...
Click to collapse
​
Read the warnings on the Offical Unlocking site.​Official Motorola Bootloader Unlocker Site​
UnLocking the Bootloader
There is an Offical list of Devices that can be Unlocked, but it has never been kept up to date.​If you want to know if your device can be Unlock, you need to go through the process to find out.​
You need to setup ADB/Fastboot on another device (Win/Linux/Mac/Chromebook)
[Index] Setting up and Using ADB/Fastboot
Follow the directions on the Official Motorola Bootloader Unlocker Site
Be careful not to remove part of the unlock key, when removing the junk, spaces and extra lines.
Paste it into data scrub tool: https://support.motorola.com/us/en/dataScrubTool
Motorola will email you a key.
Use that key like this.
Code:
fastboot oem unlock UNIQUE_KEY
Can My Bootloader Be UnLocked?
Carrier exclusive models (ex. Verizon, AT&T, Tracfone) are almost never unlockable.​Bootloader unlock codes are not available for Amazon Branded devices​
List of CIDs
You can check if the devices CID is eligible for unlocking
Why is OEM Unlocking greyed out?
Alt Data Input method for Moto Unload Site - 18 June 2023
Alt Unlocking Method Post #5 Old
Older: Sunshine method
There is an Unofficial method using an app called Sunshine.
XDA thread: https://forum.xda-developers.com/showthread.php?t=2792487
Official Site: http://theroot.ninja/
Locking Motorola Bootloader
Relocking Motorola Bootloaders can be difficult.
Don't relock the bootloader if it was unlocked by any other method than Offical.
ReFlash Stock Firmware, Factory Reset, Reboot. and make sure everything is working correctly before relocking.
Current locking instructions - 27 April 2021
You can't relock the bootloader without the stock firmware!! - Jun 1, 2020
If the device was rooted, reflash stock firmware.
Your device likely uses fastbootd
[Guide] Flashing Motorola Firmware
After flashing Firmware, power up the phone to make sure it will boot.
If it starts up ok
return to bootloader and run
Code:
fastboot oem lock
Follow the instructions in your terminal's output.
You should see something like "signed system image required" which means you have to
Flash all system.img_sparsechunk.X parts a second time.
When finished run the lock command again and follow the instructions in your output line.
Continue until your bootloader is locked.
Other methods that have worked in the past
Run
Code:
fastboot devices
fastboot oem lock
fastboot oem lock
fastboot reboot bootloader
Check if bootloader says
Code:
flashing_locked
If the bootloader doesn't lock
You may need to try something like.
Code:
fastboot oem lock begin
fastboot oem lock begin
fastboot oem lock
fastboot oem lock
fastboot oem lock
fastboot flash boot boot.img
fastboot oem lock
or
Code:
fastboot oem lock
fastboot oem lock
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash boot boot.img
fastboot oem lock
I saw the same thing on my end at first. Found this to work repeatedly....
fastboot oem lock (enter this a few times until i says something to the effect of...."you still need to flash a signed boot.img")
fastboot flash boot boot.img (this will now flash fine without saying the image is not signed)
fastboot oem lock (if you prefer to re-lock. You'll need the unlock key again if you plan to unlock).
Click to expand...
Click to collapse
- https://forum.xda-developers.com/showpost.php?p=79305396&postcount=12
Head on over to https://support.lenovo.com/us/en/downloads/ds101291 and download the tool, after installed put your phone in bootloader/fastboot mode and go through the rescue steps up until the firmware is downloaded, do not click rescue after the firmware is fully downloaded just head on over to C:\ProgramData\LMSA\Download\RomFiles and open the downloaded firmware and take the boot image from there and copy it to your fastboot tools folder and flash that boot.img check that the firmware matches the version installed on your phone before flashing the boot.img.
Click to expand...
Click to collapse
- https://forum.xda-developers.com/showpost.php?p=79300655&postcount=2
also see
How to re-lock Bootloader of all Potter version by aSaro12
Solution to flash stock rom(factory image) via fastboot and locking the bootloader.. by rishivg
[NOOB GUIDE] Unroot/Relock Bootloader - VZW Developer Edition Moto X by tonyf7
[GUIDE] [XT1575] Return to stock and relock bootloader by acejavelin
Re-Lock Bootloader Of Moto G5 Plus (Indian Variant) by Nirbhay2
https://forum.xda-developers.com/g5-plus/help/problem-locking-t3801320
Re-lock bootloader without OEM unlocking
It's been 7 days since I came back to stock already and OEM unlocking is still greyed out. Is there any way to force it true so I can relock bootloader? That happened when I first tried to unlock bootloader, but I could allow it in like 4 days If...
forum.xda-developers.com
flash either stock or a stock-based rom along with Magisk and enable OEM unlock in the dev options and the you should be able to re-lock.
Click to expand...
Click to collapse
Magisk Hide must be enabled. Only this option hides the unlocked bootloader which results in an active toggle for the OEM Unlock option.
Click to expand...
Click to collapse
Old
Official Motorola Instructions Page
https://motorola-global-portal.custhelp.com/app/standalone/bootloader/recovery-images
Alt UnLocking Method
or
Bypass Email method
Alt Data Input method for Moto Unload Site - 18 June 2023
Old Method
You have to remove the hashtags "#" from the code you get from the phone.
Remove the quotes "Part1" from the link below.
Code:
https://support.motorola.com/us/en/api/mse/bootLoaderVerifyPhone?serialNo="Part1"&secSerialNo=&processorUid="part4"&bootloaderHash="Part3"&infoOnly=N
There is a chance this could change with newer devices.
The 1st part should be 16 characters long.
The 4th part should be 32 characters long.
The 3rd part should be 40 characters long.
Click to expand...
Click to collapse
So, a good unlock code will look like this. Mine is 19 characters long.
Code:
{"status_code":"0000","status_description":"Successful!","Boot_loader_unlock_code":"7*****************B"}
If it cannot be unlocked. It maybe something like.
Code:
{"status_code":"0020","status_description":"Either there are errors in input data or this device does not have bootloader lock code available yet.","Boot_loader_unlock_code":null}
if you see
Code:
{"status_code":"0003","status_description":"Processor UID cannot be empty!","Boot_loader_unlock_code":null}
the link is not correct, try creating the link again.
Credits
Tutorial] Getting your Unlock code without having to wait for email from Motorola by rcmaehl
Trouble unlocking bootloader? try this! by jbtumbleson
Just copied from link below
Setting lock/unlock properties​The ro.oem_unlock_supported property should be set at build time based on whether the device supports flashing unlock.
If the device suppports flashing unlock, set ro.oem_unlock_supported to 1.
If the device doesn't support flashing unlock, set ro.oem_unlock_supported to 0.
If the device supports flashing unlock, then the bootloader should indicate the lock status by setting the kernel command line variable androidboot.flash.locked to 1 if locked or 0 if unlocked.
For devices that support dm-verity, use ro.boot.verifiedbootstate to set the value of ro.boot.flash.locked to 0; this unlocks the bootloader if the verified boot state is orange.
Locking/Unlocking the Bootloader | Android Open Source Project
source.android.com
Unlocking the bootloader will disable FRP
This can be verified with
Code:
fastboot getvar all
https://forum.xda-developers.com/general/rooting-roms/guide-flashing-motorola-firmware-t4042039
Sent from my ocean using XDA Labs
Is the bootloader Unlocked?
You can check if the bootloader is unlocked with
Code:
fastboot getvar securestate
If you see this the Bootloader is still Locked
Code:
securestate: oem_locked
If you see this the bootloader is UnLocked
Code:
securestate: flashing_unlocked
Why is OEM unlocking greyed out/ unavailable?
It's not unusual for OEM unlocking on Moto devices, to be greyed out.
You need to connect to wifi/LTE and it should be available in 3 or so days after that.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Troubleshooting
If 3 days after connection to the internet and still is greyed out
see
Possible work around ( moto g20 xt2128-1 ) -29 Sept 2021
OEM unlocking greyed out (Possible fixes)
List of CIDs
Run getvar cid to see which CID your device has.
Code:
fastboot getvar cid
The table below will indicate whether your device is eligible for the bootloader unlock program:
Your device is unlockable if the CID
value returned is:
Your device is NOT eligible for bootloader unlock
if the CID value returned is one of these:
0x0000
0x0003
0x0007
0x0009
0x000B
0x000C
0x000D
0x000E
0x0014
0x0015
0x00DE
0x00320x0001
0x0002
0x0004
0x0005
0x0006
0x0008
0x000A
0x000F
0x0010
0x0011
as well as any other not listed on the left
Source
English Community-Lenovo Community
Thanks for the very helpful writeup.
One question tho. I've gotten the email with the unlock code but how do I apply it? I'm assumng ADB?
NM, I reread your first post
fastboot oem unlock UNIQUE_KEY
Thanks again for the info
rotorline said:
Thanks for the very helpful writeup.
One question tho. I've gotten the email with the unlock code but how do I apply it? I'm assumng ADB?
Click to expand...
Click to collapse
The same way you got the code you gave Motorola
All fastboot commands are used in fastboot or bootloader mode.
Code:
fastboot oem unlock UNIQUE_KEY
i need help relocking motorola one p30 play bootloader usa variant. please help!
sd_shadow said:
Locking Motorola Bootloader
Relocking Motorola Bootloaders can be difficult.
Don't relock the bootloader if it was unlocked by any other method than Offical.
ReFlash Stock Firmware, Factory Reset, Reboot. and make sure everything is working correctly before relocking.
Current locking instructions - 27 April 2021
If the device was rooted, reflash stock firmware.
Your device likely uses fastbootd
[Guide] Flashing Motorola Firmware
After flashing Firmware, power up the phone to make sure it will boot.
If it starts up ok
return to bootloader and run
Code:
fastboot oem lock
Follow the instructions in your terminal's output.
You should see something like "signed system image required" which means you have to
Flash all system.img_sparsechunk.X parts a second time.
When finished run the lock command again and follow the instructions in your output line.
Continue until your bootloader is locked.
Other methods that have worked in the past
Run
Code:
fastboot devices
fastboot oem lock
fastboot oem lock
fastboot reboot bootloader
Check if bootloader says
Code:
flashing_locked
If the bootloader doesn't lock
You may need to try something like.
Code:
fastboot oem lock begin
fastboot oem lock begin
fastboot oem lock
fastboot oem lock
fastboot oem lock
fastboot flash boot boot.img
fastboot oem lock
or
Code:
fastboot oem lock
fastboot oem lock
fastboot flash oem oem.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash boot boot.img
fastboot oem lock
- https://forum.xda-developers.com/showpost.php?p=79305396&postcount=12
- https://forum.xda-developers.com/showpost.php?p=79300655&postcount=2
also see
How to re-lock Bootloader of all Potter version by aSaro12
Solution to flash stock rom(factory image) via fastboot and locking the bootloader.. by rishivg
[NOOB GUIDE] Unroot/Relock Bootloader - VZW Developer Edition Moto X by tonyf7
[GUIDE] [XT1575] Return to stock and relock bootloader by acejavelin
Re-Lock Bootloader Of Moto G5 Plus (Indian Variant) by Nirbhay2
https://forum.xda-developers.com/g5-plus/help/problem-locking-t3801320
Re-lock bootloader without OEM unlocking
It's been 7 days since I came back to stock already and OEM unlocking is still greyed out. Is there any way to force it true so I can relock bootloader? That happened when I first tried to unlock bootloader, but I could allow it in like 4 days If...
forum.xda-developers.com
Old
Official Motorola Instructions Page
https://motorola-global-portal.custhelp.com/app/standalone/bootloader/recovery-images
Click to expand...
Click to collapse
i have a motorola one(xt1941-3) and i really need help locking the bootloader . whenever i type 'fastboot oem lock' it says it still requires signed boot.img even though im on the latest august security patch(qpks30.54-22-24).
smartasiankid said:
i have a motorola one(xt1941-3) and i really need help locking the bootloader . whenever i type 'fastboot oem lock' it says it still requires signed boot.img even though im on the latest august security patch(qpks30.54-22-24).
Click to expand...
Click to collapse
Yes, Locking Moto Bootloaders is a mess.
Locking is actually more likely to cause a bricked device than unlocking.
The only advice I can give is the following
Follow the instructions in your terminal's output.
You should see something like "signed system image required" which means you have to
Flash all system.img_sparsechunk.X parts a second time.
When finished run the lock command again and follow the instructions in your output line.
Continue until your bootloader is locked.
Click to expand...
Click to collapse
sd_shadow said:
Yes, Locking Moto Bootloaders is a mess.
Locking is actually more likely to cause a bricked device than unlocking.
The only advice I can give is the following
Click to expand...
Click to collapse
Idid all that safely till it says "still requires signed boot.img"d
smartasiankid said:
Idid all that safely till it says "still requires signed boot.img"d
Click to expand...
Click to collapse
Yes, I don't recommend Locking Moto Devices, too many issues.
hello!
is there any chance to remove the "verity mode is set to disabled"?
thank you
sd_shadow said:
UnLocking and ReLocking Motorola Bootloader
Unlocking the Bootloader | Motorola Support US
Visit the customer support page to view user guides, FAQs, bluetooth pairing, software downloads, drivers, tutorials and to get repair and contact us information.
motorola-global-portal.custhelp.com
Moto Bootloader Unlocking site
Re-Locking see Post #4
More about bootloader UnLocking Post #2
Can my bootloader be unlocked? post#3
List of CIDs
Alt Unlocking Method/ Skip Email Step Post #5 (doesn't seem to work anymore)
Is the Bootloader UnLocked?
Why is OEM Unlocking greyed out?
Note:
Moto Site is finicky, and instead of it saying I'm sorry there's an error, it just says​"Your device does not qualify for bootloader unlocking."​So if you get this notice but you have a qualifying Cid (see post #3)​try again later.​
Carrier exclusive models (ex. Verizon, AT&T, Tracfone) are almost never unlockable.​Bootloader unlock codes are not available for Amazon Branded devices​
Warnings
My warning: If you unlock the bootloader.​Don't expect that it can be relocked.​There are many people that have Unlocked the bootloader.​Only to find out that it will not relock.​​Or if it Locks it has a warning​​​
or​​
​
Read the warnings on the Offical Unlocking site.​Official Motorola Bootloader Unlocker Site​
Click to expand...
Click to collapse
Thank you. Since all I really want to do is restore deleted text pics and data, Is there any other way you might recommend that doesn't require an unlocked bootloader?
I have also read an article suggested to install TWRP and that the bootloader doesnt have to be unlocked in order to do it. Therefore , enabling root like capabilities. Any thoughts on this?
And another article saying that the Tracfones will unlock after 12 months and 1 day of service?

Question OEM unlocking T-Mobile

My unlocking is greyed out. Is there a way to get the bootloader unlocked? I really want to get a pixel style rom and get rid of T-Mobile crap
Technically you would want to SIM-unlock your phone first - this will enable the "OEM Unlock" toggle, but thanks to @Ju5t3nC4s3, you can skip that and, assuming you already have the unlock token from OnePlus, just do the following:
1. Run: adb shell pm disable-user com.qualcomm.qti.uim
2. Go to Developer Options and flip the OEM Unlock toggle
3. Now run: adb shell pm enable com.qualcomm.qti.uim
4. From now on the toggle will be disabled again, but now in "on" mode
5. Reboot to fastboot
6. Run: fastboot flash cust-unlock unlock_code.bin
7. Run: fastboot oem unlock
Keep in mind that unlocking the bootloader will factory reset the phone, so make sure you backup all the data from it before doing that.
vponomarev said:
Technically you would want to SIM-unlock your phone first - this will enable the "OEM Unlock" toggle, but thanks to @Ju5t3nC4s3, you can skip that and, assuming you already have the unlock token from OnePlus, just do the following:
1. Run: adb shell pm disable-user com.qualcomm.qti.uim
2. Go to Developer Options and flip the OEM Unlock toggle
3. Now run: adb shell pm enable com.qualcomm.qti.uim
4. From now on the toggle will be disabled again, but now in "on" mode
5. Reboot to fastboot
6. Run: fastboot flash cust-unlock unlock_code.bin
7. Run: fastboot oem unlock
Keep in mind that unlocking the bootloader will factory reset the phone, so make sure you backup all the data from it before doing that.
Click to expand...
Click to collapse
Actually
vponomarev said:
Technically you would want to SIM-unlock your phone first - this will enable the "OEM Unlock" toggle, but thanks to @Ju5t3nC4s3, you can skip that and, assuming you already have the unlock token from OnePlus, just do the following:
1. Run: adb shell pm disable-user com.qualcomm.qti.uim
2. Go to Developer Options and flip the OEM Unlock toggle
3. Now run: adb shell pm enable com.qualcomm.qti.uim
4. From now on the toggle will be disabled again, but now in "on" mode
5. Reboot to fastboot
6. Run: fastboot flash cust-unlock unlock_code.bin
7. Run: fastboot oem unlock
Keep in mind that unlocking the bootloader will factory reset the phone, so make sure you backup all the data from it before doing that.
Click to expand...
Click to collapse
I found away around the factory reset also, lol
Nickdroid86 said:
My unlocking is greyed out. Is there a way to get the bootloader unlocked? I really want to get a pixel style rom and get rid of T-Mobile crap
Click to expand...
Click to collapse
Could just use my tool. https://forum.xda-developers.com/t/...ader-unlock-enabler-engineer-decrypt.4378651/
Ju5t3nC4s3 said:
Could just use my tool. https://forum.xda-developers.com/t/...ader-unlock-enabler-engineer-decrypt.4378651/
Click to expand...
Click to collapse
Looks like I need to go buy a laptop, was hoping to avoid that lol.
Also, I don't have an unlock token. Didn't know that was a thing with OnePlus guess I been out of it for a while
Nickdroid86 said:
Also, I don't have an unlock token. Didn't know that was a thing with OnePlus guess I been out of it for a while
Click to expand...
Click to collapse
Once u flip the switch u can easly get token needed to sumbmit to oneplus. What model do u have. Theres other ways to do it without having to get the unlock.bin from oneplus
I got my token from OP but even after installing it, I'm still SIM locked.
I can flash ROM's though.
Oem_Unlock will not sim unlock the device .
this is not working. I am using the tool and I got OEM unlocking toggled on and then re-greyed out in the on position. Not sure what to do next. Nothing seems to be working and there's no sounds in the video so I have no clue what's being done.
Is it true all of this is pointless because my SIM is not unlocked????
Nickdroid86 said:
Is it true all of this is pointless because my SIM is not unlocked????
Click to expand...
Click to collapse
No, only T-Mobile can SIM-unlock your phone - you are probably getting error 255 right now when you try requesting a permanent unlock.
There is a strict requirement that phone must stay registered on T-Mobile's network for a few days (I think, three). Before that no one will be able to SIM-unlock your phone. After 3 days call T-Mobile support and ask nicely for SIM-unlock. They will probably tell you that you have to first pay-off your phone and wait 40 days. Ask even more nicely and give some reason. I used "I want to unlock this phone for development purposes".
It may take a few tries and pure luck to get to a rep that will be willing to help you.
vponomarev said:
No, only T-Mobile can SIM-unlock your phone - you are probably getting error 255 right now when you try requesting a permanent unlock.
There is a strict requirement that phone must stay registered on T-Mobile's network for a few days (I think, three). Before that no one will be able to SIM-unlock your phone. After 3 days call T-Mobile support and ask nicely for SIM-unlock. They will probably tell you that you have to first pay-off your phone and wait 40 days. Ask even more nicely and give some reason. I used "I want to unlock this phone for development purposes".
It may take a few tries and pure luck to get to a rep that will be willing to help you.
Click to expand...
Click to collapse
Ok so for my question. Do I need to do this to unlock my bootloader and root? I thought that the all in one tool posted above didn't require that SIM be unlocked but I'm not seeing how because it's not working.
Nickdroid86 said:
Ok so for my question. Do I need to do this to unlock my bootloader and root? I thought that the all in one tool posted above didn't require that SIM be unlocked but I'm not seeing how because it's not working.
Click to expand...
Click to collapse
What exactly is not working?
Just get the latest platform tools and run those commands I mentioned earlier after enabling USB debugging. Worked for me even before I was able to SIM-unlock my phone.
If you're planning to use your phone with T-Mobile, it doesn't matter that your phone stays SIM-locked, but the most important part is to request unlock token from OnePlus, so if you haven't done so yet, do it ASAP - for some reason they don't send it to you right away, but wait exactly 7 days.
Here are the instructions: https://forum.xda-developers.com/t/how-to-unlock-the-t-mobile-bootloader.4256319/
I was able to get it to work up to the unlock token. Now I'm waiting on a response from Oneplus since Sunday.
Ju5t3nC4s3 said:
Actually
I found away around the factory reset also, lol
Click to expand...
Click to collapse
I got my Tmobile Oneplus 9 Pro sim unlocked but it still shows my network locked and OEM is still grayed out. Any suggestions...?
How did u get the sim unlocked, sounds like you dont have it fully unlocked.
So I got my code and then got this, but my phone didn't reset?
op\unlock_code.bin
Sending 'cust-unlock' (0 KB) OKAY [ 0.000s]
Writing 'cust-unlock' (bootloader) Device is unlocked.
OKAY [ 0.016s]
Finished. Total time: 0.045s
NVM got it, was missing last command

Categories

Resources