How unlock bootloader in Motorola / Lenovo Moto phone?

Necessary Drivers and Tools

  1. Drivers
  2. mfastboot_adb
  3. Motorola page to get Bootloader Unlock code

Install Necessary Drivers and Tools

  1. Unpack Drivers and install them.
  2. Unpack mfasboot_adb by any file archiver to c:\mfastboot

WARNING!
Bootloader unlock in the phone can erase all of your data.
All described operations you are doing at your own risk.
If want saves your data do a backup before start.

Bootloader Unlock Tutorial

  1. Switch off the phone. 
  2. Switch on the phone in the fastboot mode and connect a USB cable.
  3. Turn on command line with admin rights.command line with admin

       4. Type in mfastboot devices in the command line and press enter. To check communication with phone and drivers installation.mfastboot devices

       5. Type in mfastboot oem get_unlock_data and press enter. To get data from the phone that are needed to generate bootloader unlock password.

Example: On a Windows Desktop, the returned string format would be

$ fastboot oem get_unlock_data
(bootloader) 0A40040192024205#4C4D3556313230
(bootloader) 30373731363031303332323239#BD00
(bootloader) 8A672BA4746C2CE02328A2AC0C39F95
(bootloader) 1A3E5#1F53280002000000000000000
(bootloader) 0000000

On a Mac OS Desktop, the returned string format would be
INFO0A40040192024205#4C4D3556313230
INFO30373731363031303332323239#BD00
INFO8A672BA4746C2CE02328A2AC0C39F95
INFO1A3E5#1F53280002000000000000000
INFO0000000

       6. Copy together the 5 lines of output into one continuous string without (bootloader) or ‘INFO’ or white spaces. Your string needs to look like this:
0A40040192024205#4C4D355631323030373731363031303332323239#BD008A672BA4746C2CE02328A2AC0C39F951A3E5#1F532800020000000000000000000000

       7. To get bootloader unlock password you must have an account on Motorola page, just create it, is for free.

       8. Past this string to Motorola page for unlock bootloader in correct field and press button Can my device be unlocked. 

Motorola unlock bootloader page v1

Motorola unlock bootloader page v2

Motorola unlock bootloader page v3

       9.  The new button will be activated now just check I agree and press Request Unlock Key.

Motorola unlock bootloader page v4

Motorola unlock bootloader page v5

       10. That all now need to wait for an e-mail with unlock password from Motorola / Lenovo (1h to 48h time).

       11. When e-mail come just copy bootloader unlock password.

e-mail with bootloader unlock code from motorola

       12. Turn on the phone in fastboot mode, run command line with admin right.
Go to c:\mfastboot and use command mfastboot oem unlock UNLOCK PASSWORD and press enter. Where UNLOCK PASSWORD is your string from e-mail.

       12. If the phone has older security will just be unlocked. When getting new security will write you an error message.

mfastboot oem unlock error

       13. In this situation just turn on the phone normally go to developer option(to unhide it need press 7 times Build number) and turn on OEM UNLOCK option like on the picture.

developing option motorola phone

motorola phone oem lock option

developing option motorola phone v2

developing option motorola phone activated

14. Next turn off phone by power button and turn it to fastboot mode.
And do again step 12 but now you will get success.
Just restart the phone option from the fastboot menu to normal mode, that all.

Great work you got unlocked bootloader now you can root your phone, write custom recovery, write custom firmware or anything that you want do with the phone. You got all security unlocked.

By Wojtek Góralczyk on Nov 21, 2017