Unlock bootloader
This method is extracted from official Motorola bootloader unlock page, I modified and simplified a little and fixed the broken links.
Divided in 5 sub sections:
Outline and warnings
To unlock the bootloader, you need to find and enter your device ID in Motorola unlock bootloader page and they will give you a unlock key which you will use to unlock the bootloader.
The moment they reveal the key for you, your warranty is voided and you don't get any OTA updates.
Motorola over expressed their feelings for why one shouldn't not unlock the bootloader even to death, bullshit I say.
Prerequisites
- Motorola USB drivers
Only needed if you use Windows. - Have platform tools already setup in your PC and some experience with CLI
Getting your device ID
- In developer option, enable 'OEM unlocking' and 'USB debugging'
- Connect your phone with your PC using the cable
- Put your device in fastboot mode:
adb reboot bootloader
- Make sure the device is recognisable by the PC in fastboot mode:
fastboot devices
- Get your device ID:
fastboot oem get_unlock_data
This fastboot command will return linear sequences of characters called strings.
You'll need to join together the 5 lines of output into one continuous string without any other text or white spaces, remove if there's something like 'INFO', '(bootloader)' in the string.
This new continuous string is the device ID which you will be using to generate your unique unlock key.
Getting your unlock key
- To get your unlock key, copy the device ID string, being sure there are no spaces, and paste it into the 'Make sure your device is unlockable' field here at the bottom (you have to log in first). And tap on the Can my device be unlocked? button.
- A new Request Unlock Key button should appear at the bottom of the page. Agree to their whatever and tap on that button.
- You will receive your unlock key through the email address you used to log in here.