[Moto G4 Plus Questions & Answers] fortnightbattle:
I am having a Motorola Moto G7 Amazon Subsidized Phone. I am unable to unlock the bootloader as not getting the unlock key and getting the same message as mentioned above:

(bootloader) Unlock data:

(bootloader) Unlock data unavailable

(bootloader) Failed

I too went to the Motorola Service Centre, they said to replace the motherboard. Replacing motherboard meaning spending an equal amount of money as spent on this one.

fastboot getvar all output is below:

(bootloader) version: 0.5

(bootloader) version-bootloader: MBM-2.1-river_retail-cf76a327f28-200930

(bootloader) product: river

(bootloader) board: river

(bootloader) secure: yes

(bootloader) hwrev: PVT

(bootloader) radio: 6

(bootloader) storage-type: emmc

(bootloader) emmc: 64GB SAMSUNG RH64AB RV=08 PV=05 FV=0000000000000005

(bootloader) ram: 4GB SAMSUNG LP3 DIE=8Gb M5=01 M6=06 M7=00 M8=5F

(bootloader) cpu: SDM632

(bootloader) serialno: ZF622xxxxx

(bootloader) cid: 0x0000

(bootloader) channelid: 0xc0

(bootloader) uid: A7C468A700000000000000000000

(bootloader) securestate: oem_locked

(bootloader) factory-modes: allowed

(bootloader) iswarrantyvoid: no

(bootloader) max-download-size: 536870912

(bootloader) reason: Volume down key pressed

(bootloader) imei: 354xxxxxxxxxxxx

(bootloader) imei2:

(bootloader) meid:

(bootloader) date: 03-16-2019

(bootloader) sku: XT1962-6

(bootloader) carrier_sku: XT1962-6

(bootloader) battid: SB18C34005

(bootloader) iccid:

(bootloader) cust_md5:

(bootloader) max-sparse-size: 268435456

(bootloader) current-time: "Tue Dec 29 14: 0:35 UTC 2020"

(bootloader) ro.build.fingerprint[0]: motorola/river/river:10/QPUS30.52-

(bootloader) ro.build.fingerprint[1]: 16-2-7-4/e7923d:user/release-keys

(bootloader) poweroffalarm: 0

(bootloader) ro.build.version.full: <not found>

(bootloader) ro.build.version.qcom: LA.UM.8.6.2.r1-06600-89xx.0

(bootloader) version-baseband: M632_41.00.01.163R RIVER_APEMDSDS_CUST

(bootloader) kernel.version[0]: Linux version 4.9.206-perf+ (nobody@andr

(bootloader) kernel.version[1]: oid-build) (clang version 8.0.12 for And

(bootloader) kernel.version[2]: roid NDK) #1 SMP PREEMPT Wed Sep 30 11:2

(bootloader) kernel.version[3]: 9:39 CDT 2020

(bootloader) sbl1.git: MBM-2.1-river_retail-315bc626c6-200930

(bootloader) rpm.git: MBM-2.1-river_retail-20f2cf34-200930

(bootloader) tz.git: MBM-2.1-river_retail-03d85fce32-200930

(bootloader) devcfg.git: MBM-2.1-river_retail-03d85fce32-200930

(bootloader) keymaster.git: MBM-2.1-river_retail-03d85fce32-200930

(bootloader) cmnlib.git: MBM-2.1-river_retail-03d85fce32-200930

(bootloader) cmnlib64.git: MBM-2.1-river_retail-03d85fce32-200930

(bootloader) prov.git: MBM-2.1-river_retail-03d85fce32-200930

(bootloader) aboot.git: MBM-2.1-river_retail-cf76a327f28-200930

(bootloader) frp-state: no protection (err)

(bootloader) ro.carrier: retin

(bootloader) current-slot: a

(bootloader) running-boot-lun: 0

(bootloader) running-slot: _a

(bootloader) slot-suffixes: _a,_b

(bootloader) slot-count: 2

(bootloader) slot-successful:_a: No

(bootloader) slot-successful:_b: No

(bootloader) slot-bootable:_a: Yes

(bootloader) slot-bootable:_b: Yes

(bootloader) slot-retry-count:_a: 7

(bootloader) slot-retry-count:_b: 0

(bootloader) pcb-part-no: SB28C35906

all: listed above

finished. total time: 0.193s

>> fastboot oem unlock

...

(bootloader) fastboot oem unlock [ unlock code ]

OKAY [ 0.023s]

finished. total time: 0.025s

>> fastboot oem get_unlock_data

...

(bootloader) Unlock data:

(bootloader) Unlock data unavailable

(bootloader) Failed

OKAY [ 0.047s]

finished. total time: 0.047s

>> fastboot devices

ZF622xxxxxx fastboot

>> adb devices

List of devices attached

(shows nothing)

I have tried below command to get the unlock key from Motorola Website:

>> fastboot oem cid_prov_req

...

(bootloader) 0001dddddddddddddddd000000000000

(bootloader) 00000000000000000000000000000000

(bootloader) 00000000000000000000000000000000

(bootloader) 00000000000000000000000000000000

(bootloader) 000006ea3b1821784e881ce694286221

(bootloader) ecfe000100f0000100000062a7c468a7

(bootloader) 00000000000000000000000000000000

(bootloader) 00000000000000000000000000000000

(bootloader) 0000dddddddddddddddd000631313131

(bootloader) 31313131313131313131313131313131

(bootloader) 0000ffffffffffffffffffffffffffff

(bootloader) ffffffffffff

OKAY [ 0.048s]

finished. total time: 0.048s

But get the message as PUID is not found in the above string.

I have then tried getting UID from the getvar all command which is;

(bootloader) uid: A7C468A700000000000000000000

and tried different ways in combining the UID with the above string but failed to get the [unlock key]

I am not sure whether this way is correct or not since I have purchased the device from Amazon and I have read somewhere that amazon subsidized phones will not get the unlock key.