1.On your computer you need to have both ADB and fastboot installed.
2.Then, you need to place the fastboot file on the same folder as ADB.
3.You can download Fastboot from here.
4.Turn off your phone.
5.Reboot it in fastboot mode.
6.For fastboot mode press and hold power and volume down button at the same time.
7.Good, now connect your Moto G with your computer.
8.Plug in the USB cable in order to establish the connection.
9.On your computer go to the fastboot folder.
10.There open a command prompt window (press shift key on your keyboard and while pressing the shift key, right click on any blank space from the mentioned folder and select “open command prompt here”).
11.Now, on the cmd window type the command “fastboot oem get_unlock_data”.
Perfect; up next go to this page.
12.Register on Motorola’s official web page.====>motorola.com/unlockbootloader
13.Read what’s on Motorola’s official page, agree and click on “next”.
14.Now, on the cmd window you will have something like this displayedbootloader) 0A40040192024205#4C4D3556313230; (bootloader) 30373731363031303332323239#BD00; (bootloader) 8A672BA4746C2CE02328A2AC0C39F95; (bootloader) 1A3E5#1F53280002000000000000000; (bootloader) 0000000.
15.You need to copy these lines (without the “bootloader” word) on the Motorola web site – place them on
step 6. Check if your device can be unlocked…
16.Just select the “can my device be unlocked” option.
17.Press the “request unlock key” button and select “I agree”.
18.A unique code (20 character alpha numeric code) will be sent to your email.
19.Go to the cmd window from your computer and type the command (replace code with the received code): “fastboot oem unlock [here you will enter the character long code with the right button of your mouse.]”
20.Good, now your Motorola Moto G bootloader will be unlocked.
next u will flash sucessfully.