Related
Hi everyone,
It seems I was stupid enough to choose a wrong model (MediaPad M1) in TWRP Manager (downloaded from Google Play) while attempting to install TWRP recovery.
This resulted in an infinite bootloop where the "Huawei MediaPad" logo keeps appearing, the tablet restarts and again the same.
I do have access in Recovery and Bootloader mode, but all my attempts did not yield any results. Things I have tried so far:
- Download the Stock ROM from needrom.com (versions B009 and B019), extracted them and loaded the "dload" folder onto an SD card and executed recovery (by pressing both Vol UP/DOWN and starting the tablet). Even though the procedure seems to be perfoming normally, indicator reached successfully 100%, when the tablet restarts after the supposed successful recovery I am still left with the same bootloop.
My SD is a 64GB one, formatted with exFAT if this makes any difference.
- I have tried extracting UPDATE.APP using Huawei Update Extractor (http://forum.xda-developers.com/showthread.php?t=2433454) and tried to push via fastboot all necessary parts (i.e. BOOT.img, RECOVERY.img, SYSTEM.img, etc) but I get the "FAILED (remote: Command not allowed)" error message.
My bootloader was unlocked from the beginning (at least that's what showing when I enter bootleader/rescue mode with red letters - "PHONE UNLOCKED").
Any suggestions would be greatly appreciated! Thanks!
What commands are you using? It is peculiar that fastboot mode fails to flash. It may be that your bootloader is not properly unlocked even though it shows that it is.
If you have a bootloader unlock code for your device, I would suggest that you try explicitly unlocking the bootloader when in fastboot mode (it won't hurt to do this even if your bootloader is already unlocked):
Code:
fastboot oem unlock <YOUR_BOOTLOADER_UNLOCK_CODE>
Then you can verify that the bootloader is actually unlocked by issuing the following command:
Code:
fastboot oem get-bootinfo
If your bootloader is properly unlocked, then the previous command should return output similar to the following:
Code:
(bootloader) unlocked
OKAY [ 0.001s]
finished. total time: 0.002s
At this point, let's try to restore your original BOOT partition and RECOVERY partition.
Now, gather the following partition images from your OEM firmware package:
BOOT.img
RECOVERY.img
SYSTEM.img
USERDATA.img
Only BOOT.img and RECOVERY.img should be needed to solve your issue, but we'll have SYSTEM.img and USERDATA.img ready and available here just in case our efforts fail with just boot and recovery alone.
Now erase and flash boot and recovery as follows (replace /path/to/oem/ in the commands below with the full path to the files you extracted from your OEM firmware):
Code:
fastboot erase recovery
fastboot erase boot
fastboot flash recovery </path/to/oem/RECOVERY.img>
fastboot flash boot </path/to/oem/BOOT.IMG>
fastboot erase cache
fastboot reboot
Hopefully, at this point your bootloop issue is resolved and your ROM boots normally. If not, then read on.
Uh oh, time to flash SYSTEM.img and USERDATA.img too and see if that makes a difference. While we're at it, let's also reflash BOOT.img and RECOVERY.img. Use the following commands (replace /path/to/oem/ in the commands below with the full path to the files you extracted from your OEM firmware):
Code:
fastboot erase recovery
fastboot erase boot
fastboot erase system -w
fastboot flash recovery </path/to/oem/RECOVERY.img>
fastboot flash boot </path/to/oem/BOOT.IMG>
fastboot flash userdata </path/to/oem/USERDATA.IMG>
fastboot flash system </path/to/oem/SYSTEM.IMG>
fastboot erase cache
fastboot reboot
...and hopefully now you're back up and running.
Good luck!
In case you don't have a unlock code and *already* bricked it, you can get the imei from fastboot as well. Simply send the following command from fastboot:
fastboot oem get-psid
Using the imei you can then request an unlock code from huawei on their web site.
Thank you both for replying!
Unfortunately, I don’t have an unlock code. I have contacted Huawei through https://emui.huawei.com/en/plugin.php?id=unlock&mod=detail months ago asking them for an unlock code for the bootloader but I never got a reply. I have even tried again a couple of months ago but they didn’t answer back. It seems there is a limitation on the time entitled to ask for an unlock code – I believe 3 or 6 months if I remember correctly.
I have just tried contacting them again through an e-mail form, let’s hope this time they’ll reply.
Now please allow me to fill you up in some more test/trials I did today:
I issued the “fastboot oem get-bootinfo command” and the result is this:
(bootloader) unlocked
OKAY [ -0.000s]
finished. total time: -0.000s
(Not even a milisecond in replying. This looks a bit suspicious, right?)
But when I try to continue as per your instructions (i.e. issue the command “fastboot erase recovery”) this is what I get:
erasing 'recovery'...
FAILED (remote: Command not allowed)
finished. total time: -0.000s
So I cannot go on using your suggestions
I have also tried to use DC-Unlocker to unlock the bootloader (perhaps wasted money since the bootloader is already unlocked but I just wanted to try). When I bought the credits and opened DC Unlocker Client, the option for Unlock was grayed out, but the option for Factory Reset Protection was selectable. Based on this, I am now suspecting that the tablet has got FRP protection enabled, since I did have a PIN set-up before choosing the wrong model in TWRP manager and brick it. So I tried DC Unlocker’s Factory Reset Protection (paid 15 wasted euros!) but again no luck. This is the log from that attempt:
===================================================================
Before detection Huawei Android phones, enable 'Manufacture' mode:
in dial pad type *#*#2846579#*#* for Qualcomm and Kirin based models, or *#*#14789632#*#* for MTK, then select
'ProjectMenu',
'Background settings',
'USB ports settings',
'Manufacture mode'.
Step by step guide for other Huawei phone unlock:
https://www.dc-unlocker.com/huawei_phones_detect_unlock_tutorials
===================================================================
DC - Unlocker 2 Client 1.00.1322
Detecting phone :
selection :
manufacturer - Huawei phones
model - Auto detect (recommended)
Found Phone : HUAWEI M2-803L
Model : Huawei phone in fastboot mode
Serial NR. : YVF4C15928000296
Firmware : V100R001C00B000
unlocked
Battery state: 3648mv
===================================================================
Factory reset protection Erase start
unknown error (398)
===================================================================
Since I already paid the €15 at DC Unlocker I decided to give a go using their other piece of software, DC Phoenix. This one allowed me to flash pieces of the UPDATE.app package while in fastboot mode, without complaining about locks. It seemed to be flasing normally (I tried flashing all contents of the latest UPDATE.app package) and then (as per DC’s instructions) I tried re-flashing everything using the second option (Upgrade Mode) while in Repair mode (i.e. Vol +/- pressed while powering the tablet).
No success either – Tried various combination of DC Phoenix – even only the files you suggested (BOOT & RECOVERY, BOOT & RECOVERY & USERDATA & SYSTEM).
Is there a way to find out if FRP has been activated through fastboot? Tried Googling it but no usable results came up.
Any other suggestions would really, really be appreciated!
manowar666 said:
Thank you both for replying!
Unfortunately, I don’t have an unlock code. I have contacted Huawei through https://emui.huawei.com/en/plugin.php?id=unlock&mod=detail months ago asking them for an unlock code for the bootloader but I never got a reply. I have even tried again a couple of months ago but they didn’t answer back. It seems there is a limitation on the time entitled to ask for an unlock code – I believe 3 or 6 months if I remember correctly.
I have just tried contacting them again through an e-mail form, let’s hope this time they’ll reply.
Click to expand...
Click to collapse
I did contact Huawei for an unlock code, myself - I sent emails to [email protected] and [email protected] and received a reply back from them the next day. Here is what they said:
Dear User,
Huawei Customer Service is pleased to be at your service.
Apology for any inconvenience.
If you would want to unlock your phone, you should meet the following conditions:
1.Please register your Huawei ID in our official website http://emui.huawei.com/en/ on your phone.
2.Log in your Huawei ID continuously for 14 days.
3.Each Huawei ID should not apply for the unlock code more than twice within 6 months.If you meet the criteria,please go to http://emui.huawei.com/en/ and click the 'download'button to login your Huawei ID other than any other third party ID to apply for the unlock code.Please contact us by mail or local service hotline as following if error message appears.
TEL: http://consumer.huawei.com/en/contact-us/index.htm?tag=hotline
Mail: http://consumer.huawei.com/en/contact-us/index.htm?tag=email
Please submit your mobile model, SN, IMEI/MEID and erro message in your e-mail.We also need to know that your phone is rooted, it can be out of the best working state and some of the functions may not be able to work normally. In additon, the system is vulnerable to be invaded by viruses once your phone is permitted to unlock. For the lack of testing,third party software may not be compatible with your phone. Unlocking will bring unexpected negative impacts and the device will be not normal, and can not be restored, Huawei after-sales service office will not provide warranty service for your rooted phone, and you may bear the cost. So we strongly advise you to think twice.
If you have any other problems, please send your feedback to us. We will be at your service to help you to solve your problems.
Once again thank you for contacting Huawei device.
Best Regards.
Huawei Device Customer Care Team
Click to expand...
Click to collapse
I didn't want to faff around with all that logging in nonsense for two weeks, and also the Huawei bootloader code site seemed to be offline (kept getting "Page not found" errors with the error page in Chinese characters and what was ostensibly an HTTP 600 error, which was why I contacted Huawei support over email), so I just ponied up about $4.25 for 4 dc-unlocker credits (4 euros) and got my bootloader unlock code from the dc-unlocker software. Neat, clean, easy and non-messy.
manowar666 said:
Now please allow me to fill you up in some more test/trials I did today:
I issued the “fastboot oem get-bootinfo command” and the result is this:
(bootloader) unlocked
OKAY [ -0.000s]
finished. total time: -0.000s
(Not even a milisecond in replying. This looks a bit suspicious, right?)
Click to expand...
Click to collapse
Yes, that does seem very odd. I would expect it to take at least some time in userspace (the "total time" field).
manowar666 said:
But when I try to continue as per your instructions (i.e. issue the command “fastboot erase recovery”) this is what I get:
erasing 'recovery'...
FAILED (remote: Command not allowed)
finished. total time: -0.000s
So I cannot go on using your suggestions
I have also tried to use DC-Unlocker to unlock the bootloader (perhaps wasted money since the bootloader is already unlocked but I just wanted to try). When I bought the credits and opened DC Unlocker Client, the option for Unlock was grayed out, but the option for Factory Reset Protection was selectable. Based on this, I am now suspecting that the tablet has got FRP protection enabled, since I did have a PIN set-up before choosing the wrong model in TWRP manager and brick it. So I tried DC Unlocker’s Factory Reset Protection (paid 15 wasted euros!) but again no luck.
Click to expand...
Click to collapse
I find it very peculiar that your bootloader is unlocked but FRP is activated. I think that dc-unlocker does not give you the option to unlock the bootloader because FRP protection is still active - according to all guides, FRP must first be deactivated if you want to unlock the bootloader.
What does your phone say in the bootloader screen for the FRP? You'll find it directly under the "Phone Unlocked" text. It should say either "FRP Locked" in green or "FRP Unlock" in red.
manowar666 said:
Is there a way to find out if FRP has been activated through fastboot? Tried Googling it but no usable results came up.
Any other suggestions would really, really be appreciated!
Click to expand...
Click to collapse
There isn't, directly, but you can try to issue the fastboot command
Code:
fastboot oem frp-erase
although at this point I am not very hopeful that it will work.
FRP is nothing but the developer option to allow an OEM unlock of the phone - it is the option mentioned in this image in the Huawei "Unlock bootloader" guide thread.
Like I said, I find it very peculiar that FRP is enabled but the bootloader is "unlocked". Did you at any point reset the developer options or reflash the stock ROM before you soft-bricked the device? Did you pick up this phone second-hand/used or something?
I think that the root (excuse me, I couldn't resist) of all your problems is that FRP is still enabled, and this is what is causing your flash attempts to fail.
Here is the dc-unlocker guide to repair a bricked Huawei phone even if the bootloader and FRP are locked. If you follow this guide very carefully, maybe it can save you. Since you already seem to have tried "Method 1" of the guide, maybe you can try "Method 2".
Another suggestion I have is that you can contact the dc-unlocker guys for online chat support (when you see that the chat is online). They are very helpful, and since you've thrown so much money at them (be sure to mention that, just in case they don't know), they should be able to do something to help you out. Good luck, and I hope that you can get your phone back online...
I've been faced with all the same issues as the OP for the last 24 hours and thought all was lost. I had been through all the same stuff - every fastboot command and every key combination possible. I'd tried different tools and apps to get some life out of the device but no luck. I had even downloaded the ROM from beast.in.black's thread and extracted it to the SD card but it didn't do anything for me.
Worse still, the tablet was now out of juice. And as soon as I plugged it into the mains, the screen lit up and the all too familiar fastboot screen would stay on, meaning the tablet was barely charging long enough for me to try anything new with adb / fastboot or whatever.
So in trying to get the screen off and charge the tablet, while it was plugged in I held vol up / vol down / power together for 10 seconds. I was hoping this would leave the screen off (I had managed this earlier while plugged into USB) but instead it booted again. So I walked away for a minute, then came back expected to see the fastboot screen but no, it was in the middle of an EMUI software install. Huzzah! I left it to do its thing but at the end, it came up and said install failed and my only option was to press power to reboot. Sigh. So I pressed power and then got another surprise. The Huawei boot logo. The tablet was booting. A few seconds later I'm at the "Choose your regional settings & language" screen in the setup wizard. After trying everything under the sun, it turns out all I needed was the ROM on the SD card and to give the tablet the three-finger-salute while plugged into mains.
Happy days!
I found the Official M2-803L ROM!
For anyone who needs it, I've found an official download (direct from the Huawei China support site) for the M2-803L.
I've posted the ROM details here for anyone who needs this ROM.
Status update for anyone that might be interested: I was able to restore the tablet with the help of DC-Unlocker. I highly recommend them for any unlocking/restoring needs.
More specifically, I contected them via email and they were kind enough to give me credits (since I already paid them) in order to try again with Method 2 as per https://www.dc-unlocker.com/DC-Phoenix-flash-repair-tutorial
Step 2 of this method did not work for me (i.e. flashing in upgrade mode) but I was able to replace this step simply by re-flashing with DC Phoenix in fastboot mode.
After this, my IMEI was zeroed-out (that was a problem since this tablet is 4G-enabled thus I couldn't register on my provider's network) but I was also to fix that by using HCU-Client (had to purchase 8 more credits from DC-Unlocker).
All are working fine now.
Special thanks to @beast.in.black for pointing me towards the right direction!
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...
I recently purchased a used Pixel C. The previous owner stated that the bootloader is unlocked but he never flashed anything. It is running stock. I want to re-lock to the bootloader to do away with the annoying message upon boot up. What is the appropriate fastboot command? Some posts make mention of new fastboot commands. Thanks
reboot on fastboot mode
type: fastboot flashing lock
wait for format userdata
done
Solved
Thanks. That worked perfectly.
Hmmm... My bootloader is unlocked and the developer option is grayed out to lock it.
If I follow these commands to lock via fastboot ("fastboot flashing lock") I get the following error:
FAILED (remote: Enable OEM unlock is not set)
geekdaddy said:
Hmmm... My bootloader is unlocked and the developer option is grayed out to lock it.
If I follow these commands to lock via fastboot ("fastboot flashing lock") I get the following error:
FAILED (remote: Enable OEM unlock is not set)
Click to expand...
Click to collapse
Settings>Developer options>Enable OEM Unlocking
tabormeister said:
Settings>Developer options>Enable OEM Unlocking
Click to expand...
Click to collapse
Thanks -- but that option is greyed-out.
No longer a problem for me since I think I'll probably run rooted with the final rev of lineageos +microg and Magisk. So I need to stay unlocked anyhow.
geekdaddy said:
Thanks -- but that option is greyed-out.
No longer a problem for me since I think I'll probably run rooted with the final rev of lineageos +microg and Magisk. So I need to stay unlocked anyhow.
Click to expand...
Click to collapse
I just flashed LOS17.1 yesterday and HOLY crap it's great. Good call.
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
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 propertiesThe 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?