You are on page 1of 4

1/9/2017Quote:

UnlockingBootloaderPost#6

Originally Posted by Rusty!


Code:

#include<std_disclaimer.h>
/*
*Yourwarrantyisnowvoid.
*
*Iamnotresponsibleforbrickeddevices,deadSD
*thermonuclearwar,oryougettingfiredbecausethealarmappfailed.
*YOUarechoosingtomakethesemodifications,andif
*youpointthefingeratmeformessingupyourdevice,Iwilllaughatyou.

FlashFire v0.54 Pre-Release Version now


Available for Google Pixel and Pixel XL
January 3, 2017

SuperSU v2.79 SR2 is Released with Fixes for


SELinux Handling on Android Nougat
January 3, 2017

Unofficial LineageOS 7.1.1 ROM for the Xiaomi


Redmi Note 3 adds Vulkan API Support
January 3, 2017

More Forum Links


>>> Unlocking Bootloader will overwrite any data stored on your device, backup your les before proceeding <<<

LOGIN REGISTER

search
plus

For 4.4.2, an updated guide is available here


For real GPe devices (not ones with a GPe ROM added on it after the purchase), NO code is needed, simply
skip to "3. Unlock"

1- Register to Motorola website


2- get your Device ID
Put your device in fastboot mode (power o , then press the power and volume down buttons
simultaneously).
On your desktop, open a command prompt or terminal, and go to the directory where you installed the
Android SDK tools (or make sure fastboot is in your $PATH)
At the prompt, type
Code:
https://forum.xdadevelopers.com/showpost.php?p=47705438&postcount=6

2/6

1/9/2017

UnlockingBootloaderPost#6

$fastbootoemget_unlock_data

The returned string will be used to retrieve your unlock key.

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


Code:

$fastbootoemget_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


Code:

LOGIN REGISTER

search
plus

INFO0A40040192024205#4C4D3556313230
INFO30373731363031303332323239#BD00
INFO8A672BA4746C2CE02328A2AC0C39F95
INFO1A3E5#1F53280002000000000000000
INFO0000000
Paste together the 5 lines of output into one continuous string without (bootloader) or INFO or white spaces.
Your string needs to look like this:
Code:

0A40040192024205#4C4D355631323030373731363031303332323239#BD008A672BA4746C2CE02328A2AC0C39F951A3E5#1F532800020000000000000000000000

3- Unlock
Check if your device can be unlocked by pasting this string in the peci c eld on the Motorola website, and
clicking Can my device be unlocked?

https://forum.xdadevelopers.com/showpost.php?p=47705438&postcount=6

3/6

1/9/2017

UnlockingBootloaderPost#6

NOTE: If your device is unlockable, a "REQUEST UNLOCK KEY" button will now appear at the bottom of that
page.
after you got the code type the following :
Code:
fastbootoemunlock<code>

or for GPe devices :


Code:
fastbootoemunlock

and wait your device to reboot !

LOGIN REGISTER

search
plus

4- Enjoy

5- to relock, (pointless, isn't it?)

First you'll need a stock rmware for your speci c device [make sure the device number is the right one at least...]
Then follow these steps:
1. Open the zip
2. Find ' ash le.xml'
3. Make sure to check integrity of EACH img/bin les in the stock rmware zip before proceeding (to do that,
look at the ash le.xml)
e.g.:
Code:
<stepMD5="daae9a555a3789558ee44f9e1fddc8c5"filename="gpt.bin"operation="flash"partition="partition"/>

https://forum.xdadevelopers.com/showpost.php?p=47705438&postcount=6

4/6

1/9/2017

UnlockingBootloaderPost#6

check that gpt.bin MD5 is really daae9a555a3789558ee44f9e1fddc8c5 and has not been corrupted during
download/unpacking

4. Prepare your device (boot to fastboot) and start relocking:


Code:
fastbootoemlockbegin

5. Flash in the order:


Code:

mfastbootflashpartitiongpt.bin
mfastbootflashmotobootmotoboot.img
mfastbootflashlogologo.bin
mfastbootflashbootboot.img
mfastbootflashrecoveryrecovery.img
mfastboot.exeflashsystemsystem.img_sparsechunk.0//
search
LOGIN REGISTER

mfastboot.exeflashsystemsystem.img_sparsechunk.1//alternativelythefilescouldbenamedsystem.img_sparsechunk[13]instead

plus
mfastboot.exeflashsystemsystem.img_sparsechunk.2
mfastboot.exeflashsystemsystem.img_sparsechunk.3
mfastbootflashmodemNONHLOS.bin
mfastbooterasemodemst1
mfastbooterasemodemst2
mfastbootflashfsgfsg.mbn
mfastbooterasecache
mfastbooteraseuserdata
6. Finish relocking:
Code:
mfastbootoemlock

7. Done!

https://forum.xdadevelopers.com/showpost.php?p=47705438&postcount=6

5/6