Motorola’s Moto G6 is positioned as one of the best phones around for the price and put forwarded with a great combination of design, specs, and software. In order to get rid of junk apps, bloatware, and install custom ROMs & firmware, users would be eager to get root their devices. Well, good news for the Moto G6 owners. You can now Install TWRP and Root Moto G6.
The Moto G6 is powered by Qualcomm Snapdragon 450 chipset coupled with 3GB for 32GB and 4GB RAM for the 64GB model. The storage on the device can further be extended to 256GB with a microSD card. On the camera front, the Moto G6 packs a dual camera setup with 12 MP f/1.8 and 5 MP f/2.2 on the rear. The selfie camera comes in 2 different directives 8 MP or 16 MP (f/2.2). It boasts a 1,080 x 2,160 resolution display with 18:9 aspect ratio which gives you a vibrant look.
If you’re looking forward to getting your hands dirty with the custom ROMs and mods, let’s go ahead and root Moto G6.
- Your device needs to have at least 60% charge to ensure it doesn’t run out of battery during the installation process.
- Enable USB Debugging on your phone. To do this, go to the device Settings » Developer options » toggle the “USB Debugging” switch.
- Install ADB & Fastboot tools on your PC. You can follow our simple guide which lets you install ADB & Fastboot tools in 15 seconds.
- Unlock the bootloader on your Moto device.
- Make sure to backup all the data on your device as this process will wipe all data on your device.
- Download TWRP for Moto G6
- Download the respective boot images
- XT1925-2 – XT1925-2_no-verity-boot.img
- XT1925-4 – XT1925-4_no-verity-boot.img
- XT1925-5 – XT1925-5_no-verity-boot.img
- XT1925-6 – XT1925-6_no-verity-boot.img
- MotoG6-ali-boot.img (kernel and dtb’s built from OPS27.104-15-10 source)
- Download Encryption-Disabler Modified for ALI
- Download Magisk
How to Install TWRP and Root with Magisk on the Moto G6
We have split the tutorial into blocks for your understanding. Follow the tutorial carefully step-by-step to avoid any hassles.
Backup Stock Images
- Download the TWRP Recovery image to the ADB/Fastboot folder on your PC.
- Connect your phone to the PC via USB.
- Reboot your device to the bootloader. You can simply turn on your device and hold power and both volume keys simultaneously to enter into bootloader/fastboot mode.
- Open a command prompt on your device and navigate to the folder where you’ve ADB/Fastboot installed (You can open the CMD anywhere if you have system-wide ADB/Fastboot installed).
- In fastboot mode, type the following command on your PC to boot into the downloaded TWRP without actually installing it.
fastboot boot MotoG6-ali-TWRP.img
The device may take some time to boot because it is trying to decrypt your userdata. It may also fail and prompt for a password. Just click cancel and continue further.
- It’ll boot TWRP on to your phone. Now type the following commands
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
adb pull /vendor/etc/fstab.qcom factory-fstab.qcom
The above commands will backup your stock boot, recovery images and stock fstab.qcom if in the case to revert them back. Make sure the Vendor partition is mounted in TWRP for the third command to work.
- Reboot to bootloader once again by typing this command
adb reboot bootloader
Flash Modified Boot Image & Recovery
- Download the appropriate no-dm-verity boot image from the download section into the ADB/Fastboot folder on your PC.
- Enter the following command to install the modified boot image to your device.
fastboot flash boot <insert-boot-image-name-here>.img
In the above command type your boot image name in place of “<insert-boot-image-name-here>”.
- Now enter the following command to install the TWRP image on your device.
fastboot flash recovery MotoG6-ali-TWRP.img
- Navigate through volume keys on the device to select boot to recovery and then press the power button, it will allow TWRP to boot up. It should pop up for a decryption password, select Cancel. You’ll now see the TWRP home page.
- In TWRP, swipe to allow the system modifications. Now, Click on the wipe button and slide the Swipe to Factory Reset which will erase completely your internal storage. If you are facing any problem in factory reset click on Format Data above the Swipe to Factory Reset.
- The next step would remove the forced-encryption during first boot, so you must complete the above step to remove current encryption.
- To remove the force encryption on your device, you need to download the force encryption disabled zip to push the new fstab.qcom file while mounting the vendor partition. So, Download Encryption-Disabler zip to the ADB folder.
- Using the following command push the zip file to your phone [/tmp directory on your phone].
adb push Force_Encryption_Disabler_For_ALI_Oreo_v2.zip /tmp
- Now, flash the zip you just pushed by pressing the Install button in the main menu, select the directory where you pushed the zip [/tmp] to and install it.
- You can verify it by mounting vendor manually if it’s not mounted and using the following command and checking the line that mounts /data says “encryptable” instead of “forceencrypted”
adb shell "cat /vendor/etc/fstab.qcom"
- The above step would show the given output, which says “encryptable”. It means we now have the choice to encrypt instead of being forced to. If for whatever reason it still says “forceencrypted,” mount vendor manually and try again.
/dev/block/bootdevice/by-name/userdata /data f2fs rw,discard,nosuid,nodev,noatime,nodiratime,nobarri er,inline_xattr,inline_data wait,check,formattable,encryptable=/dev/block/bootdevice/by-name/metadata
Now, it’s time to root Moto G6 using Magisk.
Root Moto G6
- Now, to be on the safer side, reload TWRP once. To do this, go to Reboot and press recovery to reboot into TWRP once again. Again, swipe to allow system partition modifications if prompted.
- Download Magisk Beta from the downloads section to your ADB/Fastboot folder and push the Magisk zip to your device by running the following command
adb push Magisk-v16.7.zip /tmp
- Flash the Magisk zip from TWRP by pressing the Install button in the main menu and navigate to the /tmp folder and install it. Magisk should show success without any mention of verity or encryption. If it pops an error, something hasn’t gone right and you may need to start again.
- Reboot your device. It will say N/A in the top corner of your device for a few seconds. This is normal as the boot image is not signed and thus shows N/A instead. It may look like it boot loops that screen, just let it go and it should boot the Motorola boot screen and you can set up your device as a new phone.
- You can now check Magisk Manager is installed and the root functionality works.
Done! Now you can enjoy the endless customizations and modify your phone to your desire.