../Moto G7 Plus

Unlocking the Bootloader

Whilst I was able to complete the adb commands on Debian, the fastboot oem get_unlock_data command did not work. Fastboot worked (could see the device whilst in recovery mode, but getting the unlock data gave an error or hung.  This task was completed at a windows 10 command line.

C:\2TB\platform-tools>adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
Zxxxxxxxx3      unauthorized


C:\2TB\platform-tools>adb reboot bootloader

C:\2TB\platform-tools>fastboot devices
Zxxxxxxxx3       fastboot

C:\2TB\platform-tools>fastboot oem get_unlock_data
(bootloader) Unlock data:
(bootloader) 3A5xxxxxxxxxxxxxxxxxxxxxxxxxxxx
(bootloader) 534xxxxxxxxxxxxxxxxxxxxxxxxxxxx
(bootloader) E96xxxxxxxxxxxxxxxxxxxxxxxxxxxx
(bootloader) AC7xxxxxxxxxxxxxxxxxxxxxxxxxxxx
(bootloader) 0000000
OKAY [  0.032s]
Finished. Total time: 0.032s

C:\2TB\platform-tools>

https://accounts.motorola.com/

get the unlock code

 

C:\2TB\platform-tools>adb devices
List of devices attached
Zxxxxxxxx3       device


C:\2TB\platform-tools>adb reboot bootloader

C:\2TB\platform-tools>fastboot oem unlock HxxxxxxxxxxxxxxxxxxxxQ
(bootloader) ***************************************
(bootloader) WARNING: This command erases user data!
(bootloader) WARNING: This command voids warranty!
(bootloader) Please re-run this command to confirm.
(bootloader) ***************************************
OKAY [  0.021s]
Finished. Total time: 0.021s

C:\2TB\platform-tools>fastboot oem unlock HxxxxxxxxxxxxxxxxxxxxQ
(bootloader) Bootloader is unlocked!
OKAY [  1.041s]
Finished. Total time: 1.042s

C:\2TB\platform-tools>fastboot reboot
Rebooting                                          OKAY [  0.000s]
Finished. Total time: 0.008s

C:\2TB\platform-tools>

Once the task is complete you should see a screen similar to the one adjacent on boot.

 

Unlocked Moto G7 bootloader