How to root Moto G6 and install TWRP custom recovery

Just yesterday, we talked about how to unlock the bootloader of Moto G6 and now it is about time to root Moto G6 so you can do several more things with it. Since this will be a lengthy procedure, let’s dive straight into it without wasting any time.

Prerequisites – Before You Root Moto G6

Like all rooting procedures, this one also requires you to ensure a few things in advance. Have a careful look at them to ensure the successful completion of the process:

  • First of all, this method may not work for all versions of Moto G6. It has been confirmed to work with serial numbers XT19252, XT19254, XT19255, and XT19256, but we can’t say whether it will work with any other versions or not. You can check the serial number of your phone by navigating to Settings >> About phone >> Status >> Serial number
  • The bootloader of your phone should be unlocked.
  • OEM unlocking and USB debugging should be enabled on your device. Navigate to Settings >> Developer options and enable it.
  • Lastly, the battery of your device should be charged at least 70%.


Download the following files before you go ahead with the rooting procedure:

Once you’ve downloaded these files place them into the Fastboot folder of your PC for easy access during root procedure.

Install TWRP custom recovery on Moto G6

Before you can root your Moto G6 you’ll have to replace its stock recovery with TWRP custom recovery. Follow the steps given below to do so:

  • Reboot your device in bootloader mode by pressing and holding Power and Volume down keys together.
  • Connect your Moto G6 to PC via USB cable and open a command prompt window in fastboot folder. Hold the Shift key of your keyboard, right-click anywhere in the white area of the folder and choose Open command window here.
  • Inside the command window, enter the following command:

fastboot boot MotoG6-ali-TWRP.img

  • Your device will now boot into recovery mode. If a prompt appears asking whether you want to do the modifications or not, swipe to confirm it. The next thing that we need to do is taking a backup of your stock boot image so we can return to it later if something goes wrong. Execute the following command to do so:
Related :  Moto E5 Play and E5 Plus now available in US through T-Mobile

adb pull /dev/block/platform/soc/7824900.sdhci/by-name/boot stockboot.img adb pull /dev/block/platform/soc/7824900.sdhci/by-name/recovery stockrecovery.img

  • Reboot your device in bootloader mode once again by giving the following command:

adb reboot bootloader

  • Now flash the no-dm-verityfile that you downloaded above. Enter the command mentioned below:

fastboot flash boot <boot-image-name-here>.img

  • Finally, execute this last command to flash TWRP recovery:

fastboot flash recovery MotoG6-ali-TWRP.img

Once this last command has been fired successfully, TWRP recovery will be installed on your device. The next step is to boot into this recovery and root Moto G6.

Steps to Root Moto G6

  • Boot your device into recovery mode once again by entering the following command in command prompt:

adb reboot bootloader

  • Swipe again to allow the modifications. Then tap on Wipe, Format Data and type YES. This will wipe your phone’s internal storage completely.
  • Now navigate to Advanced > ADB Sideload and swipe to allow it.
  • Flash the force encryption disabler now. This is to prevent the force encryption of device while booting up and to preserve your newly created recovery partition after every boot. Enter the following command to flash it:

adb sideload /tmp

  • Now you can flash the Magisk file you had downloaded to gain complete root access:

adb sidleoad /tmp

And that’s it. Unplug your phone from the computer once Magisk has been flashed successfully and reboot it. The phone can also be restarted by entering this command in the command prompt – adb reboot. Sit back and enjoy your Moto G6.

image credits – business insider

Get these updates via email for $0 (Limited time)

We will never share your details with anyone.

Thank you for subscribing.

Something went wrong.

Newsletter, everyday!

We can send an email update every morning at no extra cost.

Thank you for subscribing.

Something went wrong.