yashsingh1/xdaforums huggingface dataset:
[Upgrading, Modifying and Unlocking] limsao:
Hi i am trying to unlock xt2221-1 bootloader. i receive key by mail from moto website but when i validate on the phone. i receive this error:

(bootloader) Not allowed by current Virtual A/B state!

here is log

C:\Users\sdrp53\Documents\adb\platform-tools>fastboot oem unlock BAKIJMGRW4PBWYAERHOR
(bootloader) Not allowed by current Virtual A/B state!
(bootloader) Pls check: fastboot getvar snapshot-update-status
(bootloader) Failed to erase userdata
FAILED (remote: '')
fastboot: error: Command failed

i then check update status

C:\Users\sdrp53\Documents\adb\platform-tools>fastboot getvar snapshot-update-status
snapshot-update-status: snapshotted
Finished. Total time: 0.003s

i then try to cancel snapshot update

C:\Users\sdrp53\Documents\adb\platform-tools>fastboot snapshot-update cancel
Snapshot cancel (bootloader) Snapshot Cancel is not allowed in Lock State
FAILED (remote: '')
fastboot: error: Command failed

Please help me
[Upgrading, Modifying and Unlocking] WoKoschekk:
A/B devices have two firmware slots with physically partitions. For example: /system has a size of 2GB. So, you need 4GB for /system_a and /system_b. A virtual A/B device like yours uses only one slot that applies to slot A or B.

The most advantage of A/B devices is the update process. The update gets installed in the background and without any waiting time in recovery. Also it enables a rollback option. In case that the updated slot won't boot the device will rollback to the previous slot.

On virtual devices the previous slot = updated slot and a rollback is impossible, since all previous data gets overwritten during the update.

To make a rollback possible, Android duplicates all partitions related to your bootloader and stores them. All other updateable partitions are not duplicated during the update, but snapshotted to be able to recreate them if the update will fail. These snapshots are also compressed to reduce their size.

The command 'snapshot-update cancel' means:

snapshot-update cancel On devices that support snapshot-based updates, cancel
an in-progress update. This may make the device
unbootable until it is reflashed.

see 'fastboot --help'.

As you can see the command won't help to unlock the bootloader.

Did u try 'fastboot flashing unlock'? The 'oem unlock' is only useable for older devices.
[Upgrading, Modifying and Unlocking] limsao:
Thx for answer. already tried 'fastboot flashing unlock' without success

C:\Users\sdrp53\Documents\adb\platform-tools>fastboot flashing unlock
(bootloader) usage: fastboot oem unlock < unlock code >
FAILED (remote: '')
fastboot: error: Command failed
[Upgrading, Modifying and Unlocking] WoKoschekk:
To be honest, I don't know anything about Virtual A/B scheme. But first I would try to flash the current installed firmware. You don't need an unlocked bootloader for this.

lolinet mirrors - firmware, software, iso etc.

lolinet mirrors - powered by h5ai

mirrors.lolinet.com

After that I would try to unlock the bootloader again.

It must be possible since you have received an unlock code by Motorola. The shown error message is related to the update process and maybe related to the active slot. Flashing the firmware will reset the state of your active slot and all other states of the bootloader like i.e. the unbootable flag of your slots.
[Upgrading, Modifying and Unlocking] limsao:
Thx for all unlocked by tiny fastboot script

[Debug] Currently in used fastboot version:
fastboot version 29.0.6-eng.awhite6.201204.121848
Installed as C:\Users\sdrp53\Downloads\Compressed\XT2221-1_RHODE_RETEU_12_S1SRS32.38-132-8_subsidy-DEFAULT_regulatory-DEFAULT_cid50_CFC.xml\tools\mfastboot\29.0.6\mfastboot.exe

Processing device: [Z......B]

[-] NOTE: Please enter the unlock code for [Z......B], then press Enter.
[-] For example: DVNJ6NFFT2MLEZABQ4FQ

Please enter the unlock code: >>BAKIJMGRW4PBWYAERHOR

Executing: fastboot -s Z......B oem unlock BAKIJMGRW4PBWYAERHOR

(bootloader) Bootloader is unlocked!
OKAY [ 2.728s]
Finished. Total time: 2.734s
[Upgrading, Modifying and Unlocking] Kerrylee1738$$$:
Something similar happened to me as well, only it said it couldn't validate the code they sent and they refused to help me since they don't support the bootloader unlock program as weird as that is. I ended up just selling the phone for one I would have no issue with....Google pixel. Better brand and way better phones and customer service
[Upgrading, Modifying and Unlocking] OoLunar:
The issue I had this time when rooting was the Motorola website was incorrectly saying that my phone was not qualified to unlock the bootloader. Here's the link I used: https://en-us.support.motorola.com/app/standalone/bootloader/unlock-your-device-b

When submitting the "Can my device be unlocked?" request, the website will submit a post request as following:

curl -X POST \
"https://en-us.support.motorola.com/cc/productRegistration/verifyPhone/<line 1>/<line 4>/<line 3>/"

These "lines" or "parts" are your device id retrieved from fastboot oem get_unlock_data. Take the device id, put it all on one line, removing any extra (bootloader) or INFO at the beginning. Once your device id is on one line, the same format that the support website required, you are going to "split" the device id by their #. Literally replace the # with a newline. Then open up the following URL in your browser:

Make sure you're logged in on the website.

https://en-us.support.motorola.com/cc/productRegistration/unlockPhone/<line 1>/<line 4>/<line 3>/

After that, you should be redirected to https://en-us.support.motorola.com/app/standalone/bootloader/unlock-your-device-c, receiving an email with your code very shortly. Follow the rest of the guide as expected. I hope this helps <3
[Upgrading, Modifying and Unlocking] sd_shadow:
I can verify your method does work.

Thanks for the update.
[Upgrading, Modifying and Unlocking] sd_shadow:
saved
[Upgrading, Modifying and Unlocking] WoKoschekk:
According to this "splits" I did a bit of research:

The value of the command get_unlock_data is taken from /dev/block/by-name/cid (see screenshot).

I also noticed that line #1 represents your IMEI (I changed some bytes in the picture, but structure remains the same). To get it in the right order you have to swap the hex digits of each byte.

Example:

3A 15 58 06 26 80 11 73 (screenshot) =>

351856062081137 (IMEI)

The 'A' seems to be a placeholder/indicator?

Then line #2 represents your serial number + device series as seen in the text section.

Lines #3 and #4 (first 4 Byte) seem to be verification digests. Line #3

could be

a SHA1 checksum (=20 Byte) and line #4

could be

a CRC32 checksum. Such checksums are often used for verification purposes in a lot of known file systems. But I'm not sure about that and I don't know what section they do verify.

I compared three Moto devices and their /cid partitions. All of them have completely different values for lines #3 and #4.

Just wanted to share these informations with you.
[Upgrading, Modifying and Unlocking] Wish39:
Tried this but I only get a page in simple HTML that says "Not qualified". My phone is a G Stylus 5G 2022 from Metro, it should be eligible. Seems like their whole system is broken.
[Upgrading, Modifying and Unlocking] kenshopraa:
Brother I have exactly the same problem, but I don't understand your process very well, can you explain us well? copy all the lines that the bootloader code gives me:

The URLs I tried were these, but none of them worked.

I am doing something wrong?

BOOTLOADER CODE:

3A05058618074937#5A593232465751444456006D6F746F2067320000#DE9526F851CCD97E7B058DAAD96B9AD2C12325DCB78B56C7837E5BE5A8BC99EC#B58789FD000000000000000000000000

URL 1:

Page Not Found | 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.

en-us.support.motorola.com

URL 2:

https://en-us.support.motorola.com/cc/productRegistration/verifyPhone/3A05058618074937/5A593232465751444456006D6F746F2067320000/DE9526F851CCD97E7B058DAAD96B9AD2C12325DCB78B56C7837E5BE5A8BC99EC/B58789FD000000000000000000000000/

please help me
[Upgrading, Modifying and Unlocking] WoKoschekk:
do the following: take your bootloader code ↓

and move the cursor to every '#' and hit 'Enter'!

What do you get? yes,

4

LINES!! after you had generate your 4 lines, read the guide again.
[Upgrading, Modifying and Unlocking] Wish39:
I found a solution, just use Motorola UK's bootloader unlock website and you'll be able to get your unlock code. It worked for me.
[Upgrading, Modifying and Unlocking] armorgeddon:
Wow guys, thanks so much for pointing out the issues with the US unlocking website and the UK website working as it should. Lenovo/Motorola should hire some professionals instead of the bunch of amateurs they've currently working there. Until then this was my last device I ever brought from them.
[Upgrading, Modifying and Unlocking] xdauser1620:
When i POST the url site says Phone qualifies sometimes it says not qualifies but not redirects me to C site.

Is the last longest 64 char part right? When i replace # with lines my line 3 is not the 40 char length string.

EDIT

Motorola UK's bootloader unlock website link worked for me but it took multiple tries.
[Upgrading, Modifying and Unlocking] gcrozatti:
Do not try to re-lock your bootloader. You will, with 99% of probability **** your phone.
[Upgrading, Modifying and Unlocking] kenshopraa:
I confirm, I just did it from the Motorola UK page, it took 6 tries! Thank you
[Upgrading, Modifying and Unlocking] jimjims89:
Hi all I think I have bricked my device (Moto razr 5g).

I unlocked the bootloader, loaded stock android 11 on it (everything running smoothly) and I was trying to relock it by running the command "fastboot oem lock" nowI am getting the error Check 'OEM unlocking' in Android Settings > Developer

(bootloader) Options

FAILED (remote failure)

finished. total time: 0.072s

Is there anything I can do?
[Upgrading, Modifying and Unlocking] WoKoschekk:
is it locked now or not? you wrote "I was trying...now I am getting the error..."
[Upgrading, Modifying and Unlocking] jimjims89:
Yes sorry its saying on the bootloader flash locked
[Upgrading, Modifying and Unlocking] WoKoschekk:
You could try to...

...flash the stock firmware.

...change the boot slot. Get your active slot with 'fastboot getvar all' and then run

'fastboot -aa' => switch to slot _A

'fastboot -ab' => switch to slot _B

...boot your boot.img/twrp.img/lineageOS-recovery.img (if any TWRP/LOS is available?) with

'fastboot boot IMAGE'

Last chance: blankflash!
[Upgrading, Modifying and Unlocking] fathergweedo:
If you can get into to fastboot (as it seems you can), try the official LSMA tool from Motorola / Lenovo to rescue. It should find the latest firmware for the device and restore it to pure stock. There are threads here describing usage.
[Upgrading, Modifying and Unlocking] sd_shadow:
LMSA will not work if device has a custom ROM.
[Upgrading, Modifying and Unlocking] jimjims89:
Correct, unfortunately a message is popping up when i connect my phone to LMSA that my phone is flash locked and to bring it into a service centre. What is blankflash?
[Upgrading, Modifying and Unlocking] jimjims89:
I tried switching the slot and it says FAILED, then i tried booting with the image and

downloading 'boot.img'...

OKAY [ 2.315s]

booting...

(bootloader) Fastboot boot command is not available in locked device

FAILED (remote failure)

finished. total time: 2.385s

Hmm not looking good
[Upgrading, Modifying and Unlocking] WoKoschekk:
search here in the forum, you'll find a lot about it
[Upgrading, Modifying and Unlocking] Renate:
Blankflash is the minimum amount of software that you have to flash to get fastboot working (from where you can flash the rest).
[Upgrading, Modifying and Unlocking] freeride01:
It seems that the unlocking method does not work anymore.

I have a MotoG4.

My CID is 0032 (unlockable).

After several tries at the website providing my unlock code to motorola, I got only "Your device does not qualify for bootloader unlocking."

Finally, a "Request unlock key" button appeared and I clicked it.

I have not gotten any unlock key at my e-mail. Nothing.

This happened several times, I should have gotten probably 3 e-mails by now, but NO.
[Upgrading, Modifying and Unlocking] WoKoschekk:
Which variant do you have? XT2071-?

Some variants of your device still use Android 11 but others not. They have been upgraded to Android 12. Here are two links for firmware builds:

lolinet mirrors - firmware, software, iso etc.

lolinet mirrors - powered by h5ai

mirrors.lolinet.com

Moto Updates Tracker

An automated channel that tracks Motorola updates releases. By @vachounet and @yshalsager https://mirrors.lolinet.com/firmware/motorola More automated channels that you may like: @yshalsager_projects

t.me

In general you'll need at a minimum the latest ever installed firmware build on your device (at least it depends on the security patch date) to relock the bootloader.

All builds with a lower version no./patch date will be recognized as a downgrade and may not to be used for relocking!

Blankflash aka EDL (Emergency Download) mode:

Mostly used to fix issues related to a corrupt bootloader when you can't boot neither into fastboot mode nor anything else. That's the definition of a hard brick.

EDL is a boot state in which your SoC activates a special protocol to let your primary bootloader (pbl) communicate via USB port. For establishing this communication a blankflash file is needed on your desktop. With this setup you are able to flash a new bootloader and unbrick your device.

For further information visit: Blankflash and EDL Mode
[Upgrading, Modifying and Unlocking] WoKoschekk:
**edit: forget it, thought of NOT unlockable.
[Upgrading, Modifying and Unlocking] WoKoschekk:
The request button appeared directly after first attempt. But it leads to an error page after confirmation of "legal agreement/warranty void prompt" and the request fails. No mail received.

Page Not Found | 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.

en-us.support.motorola.com

But manually still no problem and mail received.
[Upgrading, Modifying and Unlocking] freeride01:
What do you mean by "manually"? What do you do after you click on Can my device be unlocked?
[Upgrading, Modifying and Unlocking] WoKoschekk:
Post #111 Take the string that you normally paste on Moto's website:

Then split it after each '#' to get 4 parts of it. Then paste the needed parts without the '#' into that URL (part 2 is not needed for the URL!):

https://en-us.support.motorola.com/cc/productRegistration/unlockPhone/<part 1>/<part 4>/<part 3>

#########

For example:

String:

0A40040192024205#4C4D355631323030373731363031303332323239#BD008A672BA4746C2CE02328A2AC0C39F951A3E5#1F532800020000000000000000000000

Splits:

0A40040192024205# (part 1)
4C4D355631323030373731363031303332323239# (part 2)
BD008A672BA4746C2CE02328A2AC0C39F951A3E5# (part 3)
1F532800020000000000000000000000 (part 4)

URL:

https://en-us.support.motorola.com/cc/productRegistration/unlockPhone/0A40040192024205/1F532800020000000000000000000000/BD008A672BA4746C2CE02328A2AC0C39F951A3E5
[Upgrading, Modifying and Unlocking] freeride01:
Hi,

thanks for the explanation.

I followed it exactly. Sometimes after hitting Enter I got to the page that says "You should have received your unlock code.....", and sometimes I got an "Unknown error" page.

Either way, I did not get an e-mail with unlock code.
[Upgrading, Modifying and Unlocking] WoKoschekk:
But you are logged in, right?
[Upgrading, Modifying and Unlocking] freeride01:
Yes.
[Upgrading, Modifying and Unlocking] freeride01:
It's getting late, so I'll continue tomorrow...
[Upgrading, Modifying and Unlocking] WoKoschekk:
When logged in open that link here and paste your own in the address bar and hit enter. 4 attempts => 3 codes (screenshots). 1 attempt gave me an error.
[Upgrading, Modifying and Unlocking] sd_shadow:
Try a different email address.

If you want me to submit the code, you can pm the code.

https://xdaforums.com/conversations/add?to=sd_shadow

I've gotten the unlock emails, many times, even for others.
[Upgrading, Modifying and Unlocking] freeride01:
Hi again.

So yesterday after I turned off my PC it turns out motorola has finally sent me an e-mail with the unlock key.

Thank you for the help!
[Upgrading, Modifying and Unlocking] Sinakers:
Hi,

I'm trying to unlock the bootloader of my Moto G (XT-1033). Its CID is 0x0007, which should be eligible for unlocking. However, the site is prompting me that my device doesn't qualify for bootloader unlocking. I've even tried following the method in Post #138, but I just land on an Error page. Is there anything else I can do?

Edit: Oh nevermind; seems like their website is buggy. I've got the code now
[Upgrading, Modifying and Unlocking] WoKoschekk:
disregard the error message and keep trying. I do always start from this page here. Then I login, click on the "here" link you can see there and on the next page I paste my custom link to get the unlock code. If you get forwarded to the error page just try it there until you get your code (2-3x).
[Upgrading, Modifying and Unlocking] freeride01:
Hi,

so I unlocked the bootloader, installed TWRP and am now trying to root the phone, but ran into a problem. I posted it in the Moto G4 forum.
[Upgrading, Modifying and Unlocking] Joutcast78:
This a sidebar for and all Motorola Users.

1) If your warranty is still active.

&

You unlock your phone and brick it in the process. But are still able to get into bootloader. Issue the relock command and confirm it. Send the device back via the Motorola Portal and just say "Device Won't Boot". Motorola will repair the device as it shows as a locked device. I just did it.
[Upgrading, Modifying and Unlocking] Joutcast78:
Accidentally double posted please remove THIS MESSAGE ONLY
[Upgrading, Modifying and Unlocking] majored:
Im not following 100 percent either so i took my code minus the bootloader on every line did this literally with / /<line 1>/<line 4>/<line 3>/" with my code of course and nope
[Upgrading, Modifying and Unlocking] majored:
I bought this phone from a friend and we called atnt and they said it was carrier unlocked. i switched my service to it and now i just have a locked phone i got the store receipt but does anyone know if the sites that charge 30$ can unlock it ? Looks like no phone for me again tomorrow
[Upgrading, Modifying and Unlocking] majored:
do i need these i missed this <>?
[Upgrading, Modifying and Unlocking] radspaced:
A bit of a derailment, but how you guys are actually able to use the motorola unlock site? I already made an account but when I click the button "PROCEED ANYWAY" it just redirects me to a page with "There has been an error with your request." written on it. My browser (Librewolf) deletes cache and cookes when it closes automatically, so I did that, and even cleared them manually, no dice. I also tried with another browser (Firefox Nightly appimage) and it didn't work there either.

I don't know if it changes something, but I'm in Brazil, but I never asked the site to redirect me to the brazillian site (and even when I did, nothing changed in then URL bar, at least that I've seen). My account was also made in the american(?) site, since I suspect there isn't any of this tech-y stuff on the third world site.
[Upgrading, Modifying and Unlocking] sd_shadow:
Moto site is really flaky, keep trying.

Try the UK site, vpn, or a different isp

Or you can message me directly with the code and I can try, I usually don’t have a problem.
[Upgrading, Modifying and Unlocking] radspaced:
It worked now... weird.

I'm having different problems now. With my moto e13 the command `fastboot oem get_unlock_data` returns "FAILED (remote: `unknown cmd`)", which makes me think there's something wrong with the phone, or the command is deprecated. I tripple checked all the usual stuff, OEM unlock, USB debugging, even tried disabling my PIN to no avail. I was looking at different methods, but fastboot can't even get my CID.

I also made a post on Lenovo's forum in regards to this. It was going to be about the flaky site, but since it started working it's about this next step I'm having trouble with. Gonna try a few `fastboot flash` commands to see if I can get anything.

edit: typo
[Upgrading, Modifying and Unlocking] majored:
ok heres my main question i hgave a prepaid att moto 5g i paid the bill up but theres supposedly a 60 day time period before i can carrier unlock is there a way around the 60 day thing att says only the app on the phone can unlock it ?????
[Upgrading, Modifying and Unlocking] radspaced:
fug :DDD

It seems that Android Go devices can't have their bootloader unlocked(!?) At least that's what a "Senior Motoagent" said. My post has been redirected to here.
[Upgrading, Modifying and Unlocking] sd_shadow:
This is a discussion about unlocking the bootloader and has nothing to do with the carrier lock.

Please ask about the carrier lock in a different thread.
[Upgrading, Modifying and Unlocking] majored:
Exactly you cant carrier unlock a phone with a locked bootloader
[Upgrading, Modifying and Unlocking] majored:
if it was that easy id unlock bootloader and flash new Rom
[Upgrading, Modifying and Unlocking] crazynickdwb:
Did you end up trying this, and can you reflash everything in edl mode?
[Upgrading, Modifying and Unlocking] xdauser1620:
The question is: What is the below command good for?

fastboot oem unlock-go

android.stackexchange.com/questions/226090/what-is-the-difference-between-fastboot-oem-unlock-and-fastboot-oem-unlock-go

Most device will prompt an Yes/No UI, and the user can press Volume Up/Down to choose an option, and press power to comfirm.

"fastboot oem unlock-go" will skip the prompt. But no all device support this command.

So it seems this command not for Android go devices. . .
[Upgrading, Modifying and Unlocking] TICh33k:
"Most device will prompt an Yes/No UI, and the user can press Volume Up/Down to choose an option, and press power to comfirm.

"fastboot oem unlock-go" will skip the prompt. But no all device support this command."

Source:

https://android.stackexchange.com/a/232042
[Upgrading, Modifying and Unlocking] sd_shadow:
This method seems not to work anymore.

Could just be a temporary issue.
[Upgrading, Modifying and Unlocking] NashvilleKarl:
I'm going to try this message out today and I'm also looking to hear from anybody who has any experience with mtkclient as I have used it on many media tech devices, however this is my first Motorola and it appears that they have tried to keep you from brom mode...

Anyway I'll report back later about posting to the UK site and whether it's works for me or not, and please if anybody knows anything about using mtkclient with Motorola devices please send me a message ASAP

THANKS
[Upgrading, Modifying and Unlocking] xdauser1620:
They not only not want you to use BROM they might not put test points on the device. How do you force it to BROM mode if it not exist. I think you should try different regions not just the UK site until you get your code.
[Upgrading, Modifying and Unlocking] Kliper23:
can anyone help me get my code, ive tried the link method and the UK website but no luck, can anyone help me

3A25511720082694#5A463635323332

4B4351006D6F746F207A340000#1978

7A428823EBD06A69974B22FB583E1BF

2C2D5#6E955A1800000000000000000

0000000
[Upgrading, Modifying and Unlocking] WoKoschekk:
your phone can't be unlocked. sorry.
[Upgrading, Modifying and Unlocking] WoKoschekk:
just for verification.

this is your URL:

https://en-us.support.motorola.com/cc/productRegistration/unlockPhone/3A25511720082694/6E955A18000000000000000000000000/19787A428823EBD06A69974B22FB583E1BF2C2D5

an incorrect URL will show this here: