Motorola is one of the famous companies if you want to buy a mid-range smartphone. Motorola recently launched the amazing Moto G5 Plus.
Developers are working on custom recoveries and ROMs for it. One of my favorite developers, Santhosh M , has come up with an unofficial TWRP recovery for the Moto G5.
Today, I am going to tell you how to easily unlock the bootloader, flash TWRP and root your Moto G5 Plus.
Also Read: How to Theme Any of Your Stock Android Device
The Moto G5 Plus comes with the all-new Android 7.1.1. This ROM is beautifully modified, and users can easily customize their Moto G5. The Moto G5 Plus is a mid-range smartphone with 4 GB RAM and 32 GB internal storage.
If you want to root your phone, there are three basic steps you need to follow: unlock the bootloader, flash TWRP and root your phone. Let's see what these three steps are.
Also Read: How to Root Your OnePlus 5 and Install TWRP Recovery

- Unlocking Bootloader: If you want to root your Android device or flash a recovery, this is the first step on all Android devices. Unlocking the bootloader allows you to install a multi-ROM and flash a custom ROM on your phone. It allows you to flash the ROM in the main partition of your phone.
- Installing TWRP Recovery: If you want to root your phone or install a custom recovery, you need to have the TWRP recovery installed. This is the primary step. Once you have successfully installed the custom recovery, you can try flashing anything on your phone.
- Rooting: This is the essential thing everyone knows about. Rooting is the procedure that lets you install apps with some extraordinary features. You can change the system files and edit the framework of your phone.
Only when you have these files and apps can you move to the next step. If you get stuck, tell me through the contact page.
Also Read: Get the Pixel Amazing New & Live Earth Wallpapers on Your Android Device

Prerequisites
- ADB and Fastboot
- Motorola USB Drivers
- Make sure you take a complete backup of your data. This process will wipe your phone's data.
How to Unlock the Bootloader of the Moto G5 Plus
- First, go to Settings > About Phone > Build Number. Hit the build number 7 times, and you will get a pop-up saying "You are now a developer."

- Hit the back button and you will find Developer options. Scroll down and you will find an option in your settings called OEM Unlock. Enable it and then confirm the warning.
- Turn on USB Debugging mode.
- Download the above ADB drivers zip file and extract it.
- Then connect your phone to your PC, open ADBDriverInstaller.exe and click on install. The driver will be installed automatically.

- Turn off your phone.
- Now, press Volume Down + Power Key simultaneously to put your phone in fastboot mode.

- Go to SDK > Platform tools , then press the shift button and right-click with the mouse. You will see the option open command window.
- Now, enter the command below.
adb devices
- Now, you will see the serial number of your device. If it shows the serial number, it is working correctly. If it doesn't show anything, you need to reconfigure the fastboot drivers and repeat the process above.
- Copy the serial number somewhere, and then visit the Motorola Unlocking Bootloader. Follow all the instructions properly.

- Now, sign in with your Google account or your Motorola account and go to the next step.
- Now, open the CMD window and run fastboot oem get_unlock_data
- There you will get a code. Paste the code in the Data scrub tool

- It will show you a warning. Just accept it and you are done. Now, you have the unlock code, and you can move to the next step.
- Now, type the command fastboot oem unlock UNIQUE_KEY . In place of the unique key, add the code you got from the data scrub tool.
- That's it! You will see a success message, and your bootloader will be unlocked. You are ready to move to the next step.
Video Tutorial
How to Install TWRP Recovery on the Moto G5 Plus
- Download the latest unofficial custom recovery from here: Download
- Move this file to the minimal ADB drivers folder and rename it to anything you need. We will rename it to TWRP.img
- Let's move to the next step. Press Volume Down + Power Key simultaneously to put your phone in fastboot mode.
- Now, press the shift button and right-click with the mouse. You will see the option open command window.

- Type the command to flash the recovery on your device.
fastboot flash recovery twrp.img![]()
- This will flash the recovery. Press the volume down button to boot your phone into recovery, and it will ask you for the password.
- Just choose Cancel when it asks for the password, and then allow modification.

- Make sure you wipe your data using the recovery. The developer suggests this.
Video Tutorial
How to Root Your Moto G5 Plus
Requirements
- Magisk: Download
- no-verity-opt-encrypt-5.1.zip
- Move these files to your internal storage when you are in recovery mode.
Steps
- First, boot your phone into recovery and download the no-verity-opt-encrypt file below.
- Download the no-verity-opt-encrypt-5.1.zip and move it to your internal storage.
- Then click on the Install button.

- Scroll down, find the file, click on it and swipe to install the zip file on your phone.
- Click on the back button, then click on Reboot and power off your device.
- Now press Volume Down + Power Key simultaneously to put your phone in fastboot mode.
- Press the volume down key twice to boot your phone into recovery.
- Click on the Install button and search for magisk.zip.

- Flash the file on your phone and you are done. That's it! Reboot your phone.
- Now, turn on your phone. It may take around 20 minutes to boot. Once it has booted, move to the next step.
- Open the Play Store and download Magisk manager or update it, and also download Root Checker to check the root permission.
- That's it! You have successfully rooted your phone.
You can also root other devices using Towelroot Apk
Note: If TWRP suggests you install the TWRP app, just click on Do Not Install.
Also Read: Nexus 5X and Nexus 6P Bootloop Fix Helps You Finally Boot the Phone
Final Verdict
If you have finished this process, you have successfully rooted your phone. This was the article about how to unlock the bootloader, flash TWRP and root your phone.
Share this article with your friends who have bought the Moto G5 Plus. This method works only on the Moto G5 Plus.
Topics
Comments (1)
Comments are closed. Have a question about this article? Ask through the contact page.

Android Character missing from Fastboot Flash Mode nad what was the Unlocked warning on boot up now just says bad key. Is there a way to "reflash" to bring back the Android character in fastboot mode and have a motorola logo instead of "bad key" on boot up? Thanks for your anticipated cooperation.