[Droid Ultra General] JulesJam:
OK, I tried it without the zeros padding my MEID or my UID, I also tried verifyPhone and same error message. I guess it could be that only those devices that are allowed to be unlocked are in the database being queried, which of course would mean that there is no way to get the bootloader unlock codes for those that are not allowed to be unlocked from that database :(

But also unlike the OG Moto X, where there were both Verizon XT1060 retail and Dev Eds, for Moto X 2014 there is no Verizon Dev Ed so maybe none of the XT1096 device IDs are in this database.

I have a retail XT1060 that I paid the Chinese code seller to get me a code for, so I will see what happens when I put its BUD in. I also have a Dev Ed XT1060, which I unlocked through the Motorola site. I will put its BUD in too and see what results I get.

Thanks so much for doing this!! It is our only hope unless someone can sell us codes again.

---------- Post added at 10:56 PM ---------- Previous post was at 10:43 PM ----------

I just did it with my OG Moto X Dev Ed that I have already received a BL unlock code for and got this message:

You should have received an email with your Unlock Key. Inside the email is a unique 20-character alphanumeric code that you will use to unlock your device.

So clearly what you have written works if the device ID is in the database. I fear what this means is that if your device is not allowed to be unlocked, it's unlock code is not in the database that is being queried.

I noticed for my OG Dev Ed that the UID again was padded with 4 trailing zeros but this time, for the phoneSN, it was my IMEI padded with 1 trailing zero.

---------- Post added at 11:00 PM ---------- Previous post was at 10:56 PM ----------

Also, Motorola just resent me the email with the bootloader unlock code for my Dev Ed, so this definitely works i you have an unlockable bootloader.

---------- Post added at 11:09 PM ---------- Previous post was at 11:00 PM ----------

No you are not. Just tried it with my OG Moto X retail version that I bought an unlock code for from the Chinese code seller and got this error message:

Phone does not qualify

Your device identified is either invalid or was not found in our device database. Please double check your device ID. If you believe the Device ID is correct, Please try again later.

So your script to generate the URL to query the database works fine. I suspect that it is just that the database being queried only has bootloader unlock codes for those devices that are allowed to be unlocked.

Another database must exist somewhere that has the codes for all of the devices or the Chinese code seller wouldn't have been able to get them otherwise. Likely a database that only can be accessed at Motorola and the plant where the phones were manufactured if I had to guess.

---------- Post added at 11:27 PM ---------- Previous post was at 11:09 PM ----------

The only other thing I noticed is that for both my Moto X 2014 and my retail OG Moto X, I have a MEID and an IMEI listed in my settings. The phoneSN in both cases is my MEID + 2 trailing zeros.

For my OG Moto X Dev Ed, I have only an IMEI and an IMEI SV (which consists of 2 zeros) listed in my settings. The phoneSN in this case is my IMEI + 1 trailing zero.

Why wouldn't the settings of my Dev Ed show a MEID? And why don't my Moto X 2014 and retail OG Moto X show an IMEI SV when the Dev Ed does?