Ever since being separated from Google, most people will agree that Motorola has kind of lost its way. Although financially it seems to have found its way, the company’s devices don’t excite the enthusiasts as they used to. Regardless, the Moto G5sS, a budget phone launched in 2017, finally has an official TWRP build. So you can now install official TWRP recovery on Moto G5s. Obviously then, one can also root Moto G5s.
Warning
If you root your Moto G5s it will void your warranty. Besides, flashing a custom recovery and using it to flash third-party mods can be risky. You may end up bricking your device. Even if you follow all the steps mentioned below correctly, there is still a chance that things may go south for you. Make sure you know what youโre doing and do everything at your own risk. DroidViewsย or anyone else cannot be held responsible under such circumstances.
The process of rooting itself neitherย requires you to format your device nor it should be formatted automatically. Still, make sure you have backed up everything important, including files and folders on your deviceโs internal storage. Creating a backup is never a bad idea. If you havenโt unlocked the bootloader yet tough, your device will be wiped clean, including the internal storage, when you do unlock it.
Requirements
Before you can root Moto G5s, please make sure to have done the things mentioned below.
- A Motorola Moto G5s with an unlocked bootloader.
- Youโll need a Windows, Mac or Linux computer with Android SDK Platform-tools. We do have a dedicated, detailed guide on how to do just that for all the three platforms, linked below.
- Downloadย Android SDK Platform Toolsย for Windows, Mac & Linux
- Extract the downloaded zip file anywhere on your PC.
- The extracted platform-tools folder contains all the necessary tools required to run ADB and Fastboot.
- Since youโll need to connect your phone to your PC with a USB cable, be certain that the cable isnโt loose.
- Enableย USB debuggingย andย OEMย unlockย on your device, found inย Developer options.
- Go toย Settingsย >ย Aboutย phone.
- Tap onย Build numberย 7 times.
- Youโll see a toast message that says, โYouโre a developer.โ
- Go back to Settings now, and youโll find a new option called โDeveloper Optionsโ, select it.
- Scroll down and find out OEM Unlocking and USB Debugging and enable it. OEM Unlocking should already be enabled or grayed out if youโve unlocked your bootloader.
- Ensure that your Moto G5s has at least 50% battery left so as to prevent any accidental shutdowns.
- Windows users will need to installย Motorola USB driversย as well.
Download Moto G5S TWRP Image and Magisk
- TWRP for Moto G5s: twrp-3.3.1-0-montana.img
- Root: Magisk v19.3
Install TWRP on Moto G5S
- Launch a command prompt or terminal inside the platform-tools folder.
- On Windows, with the platform-toolsย folder is open, typeย cmdย in the address bar and hitย Enter to launch a command prompt window within the folder.
- Linux and Mac users can simply right-click inside the folder and selectย Open in Terminal to launch a Terminal and use adb.
- Once the command prompt or Terminal is open, connect your Moto G7 Plus to your PC.
- On your phone, you will be asked to grant USB Debugging permission to the PC.
- If it doesnโt come up yet, enter the following command in the command prompt/terminal to force it.
adb devices
- Once the permission is granted, you will see your deviceโs serial number returned as shown below.
- Now use the following command to boot your phone in fastboot mode.
adb reboot fastboot
- Once in the fastboot mode, install TWRP on your Moto G5s with this command.
fastboot flash recovery /path/to/twrp-3.3.1-0-montana.img
Replaceย /path/to/ย with the location path of the image file. This step can be avoided if you move the TWRP image inside ADB folder. This will shorten the command down to:
fastboot flash recovery twrp-3.3.1-0-montana.img
- Finally, when the recovery has been flashed, reboot your device.
fastboot reboot
You can’t just flash a custom recovery image like TWRP on your Android device. There are a lot of wonderful things you can do using ADB and fastboot commands.
Root Moto G5s
Having installed TWRP recovery on your phone, let’s see how we can root Moto G5s. Just follow the steps described below.
- Connect your device to the PC again and use the ADB command given below to boot it into the newly installed TWRP recovery.
adb reboot recovery
- Once in TWRP recovery, itโs wise to first take a full NANDroid backup of your device, just in case you may want to revert your device back to a working state.
- To do this, go toย Backupย and select all the partitions. Swipe at the bottom to begin the backup process.
- When you have a backup, or you have decided to skip it, selectย Installย from the TWRP main menu.
- Navigate to and select the downloadedย Magisk-v19.3.zipย file and select it.
- Swipe at the bottom to flash the zip.
- When it is done, you will see aย Reboot systemย button at the bottom, tap on it and your device will reboot.
When your device turns on again, you will have root access to your Moto G5s. You can find Magisk Manager amongst all your other apps in the app drawer. You can use it to grant or deny root access to other apps as well as a whole lot of other things using Magisk modules.
Join The Discussion: