Ever wondered how to root the Moto G? Well, wonder no longer: today we’ll show you how to do it and provide you with everything you need. It’s a relatively simple process and it should take no longer than an hour. Once rooted, you’ll be free to change ROMs, replace kernels, use Xposed Framework, you name it! Of course, one thing you should be aware of is that this procedure will void your warranty, and the manufacturer will no longer provide physical support for you. You will also lose all the data you don’t backup in advance, as unlocking the bootloader will reset your device! So please, keep that in mind before going through with this.
All you’ll need for this tutorial is provided in this link, which you should download before starting. Once you download it, open the file and extract the “MotoG-Tools” folder somewhere. Then, go into the folder and install the file “MotorolaDeviceManager_2.4.5.exe”, which contains the drivers we’ll need for this procedure. You should also make sure your device is using Android 4.4 Kitkat, and not 4.3 Jellybean. After installation is done, we can start.
Go into you phone Settings and enable USB Debugging under Developer Options. If you don’t see Developer Options in your Settings menu, go into Settings>About Phone and then tap the “Build Number” section until a message pops up telling you you’re a developer. Then the new menu will appear in the Settings:
Once you enable USB Debugging, a message will pop up asking you to allow it. Tap “OK” to proceed.
2. Unlocking The Bootloader
Connect the device to the computer with a USB cable. Now, go into the MotoG-Tools folder and right click some empty space in the folder while holding Shift. In the pop-up menu that appears, select “Open Command Window here”:
In the command prompt window that appears, type adb devices. Once you do, a message should appear on your device asking you to authorize USB debugging. Tap the “Always Allow” toggle and press the OK button:
Now, type adb devices in the command window again, and you should see something like the image below:
If the device doesn’t appear listed or is listed offline, reboot and repeat the above process. Once the device appears correctly listed, type adb reboot bootloader. The phone will reboot and then enter bootloader mode, which looks something like this:
Then, type fastboot oem get_unlock_data. The command window should return a string of five lines, like this:
(bootloader) 0A40040192024205#4C4D3556313230 (bootloader) 30373731363031303332323239#BD00 (bootloader) 8A672BA4746C2CE02328A2AC0C39F95 (bootloader) 1A3E5#1F53280002000000000000000 (bootloader) 0000000
Copy and paste those lines somewhere and remove everything that isn’t a number so that it forms a single line, like so:
Now, this is the step that will officially void your warranty and also erase your data! You’ll need to enter your code into the Motorola website, which you can access by clicking here. Paste your code under the “Can My Device Be Unlocked” section, accept the agreement, and then press the button. Motorola will then email you a code you can use to unlock the bootloader. Once you receive the code, type “fastboot oem unlock” in the command window followed by the code.
Then, just wait for the process to complete on your device and then congrats, your Moto G’s bootloader is now unlocked!
3. Install Custom Recovery
In order to flash new ROMs and allow for more easy flashing and rooting, you should install a custom recovery. The MotoG-Tools folder already includes the files you’ll need for this. Reboot the device and, once again, use the adb reboot bootloader command to make the device enter bootloader mode. Keep in mind that since unlocking the bootloader erases everything, you might need to re-enable USB debugging by re-doing section 1. Once it’s in the bootloader screen, enter the fastboot devices command and make sure it is listed. Then, type the following command: mfastboot flash cwm-184.108.40.206-MotoG4.4.img. This will replace the stock recovery with the custom one. Once it’s finished, don’t reboot the device! Instead, press the Volume Down Button until you reach “Recovery” and then press the Volume Up Button to select it. You will now boot into the custom recovery:
You can navigate the options using the volume buttons. The Power Button selects the currently highlighted option. For now, just reboot the device by choosing that option.
4. Rooting the Device
Now that you have a custom recovery, rooting is easy! Boot the device as usual and connect it up to the PC. Copy the file “UPDATE-SuperSU-v1.91.zip” to the phone’s internal memory. Then, turn off the device. Once it turns off, hold the Power Button and the Volume Down Button at the same time for about 5 seconds, and then release them. You will enter bootloader mode (or you can use the adb command again instead if you prefer). Again, navigate to “Recovery”. Once the Recovery is loaded, navigate to “Install Zip” and then “Choose zip from /sdcard“. Find and select the file you previously copied over and then flash it. Once you do, congratulations, your device is now rooted!