How to Root Moto G5 [100% Working]

Rooting Moto G5 is same as rooting Moto G5 Plus. Previously I have covered how to root Moto G5 Plus but now I am going to demonstrate you how to root Moto G5. But before you root your Moto G5, I would suggest go through internet and learn about android rooting as rooting violates warranty. If your device under warranty I would not suggest you to root. Another thing, don’t be a noob. If you are enough confident then do this as sometime rooting may soft brick your device.

Disclaimer: By attempting any of the processes listed in this thread you accept full responsibility for your actions. I will not be held responsible if your device stops working, catches fire, or turns into a hipster and claims to have been modified before it was cool.

How To Root Moto G5  [100% Working]

NOTE: Backup all your files like photos, video, mp3 including contacts, SMS etc to your computer as unlocking the Moto G5 Bootloader will completely wipe/delete all files on the device.

A. Download tools

Download Universal Windows ADB Driver

Download TWRP For Moto G5 (Updated) [Direct download link]

Download Motorola Driver

Download ADB FASTBOOT FILES.zip

Download Magisk-v11.6.zip

Download no-verity-opt-encrypt-5.1.zip

B. Enable USB debugging and OEM Unlocking

  1. Go to Settings > About phone, and then tap ‘Build number’ 7 times or until you get the message ‘You’re now a developer!’.
  2. Go back to Settings, choose ‘Developer options’. Find the ‘USB debugging’ option and enable it.
  3.  In the ‘Developer Option’ you will also find the ‘OEM Unlocking’ option, just enable it. It will ask for your PIN/Screen unlock code to enable it.

C. File preparation

  1. ADB FASTBOOT FILES.zip and select Extract to “ADB FASTBOOT FILES” folder
  2. Rename twrp-3.1.0-0-cedric.img into twrp.img
  3. Now put the twrp.img file in ADB FASTBOOT FILES folder.

D. Driver Installation on Moto G5

Install Universal Windows ADB Driver on your PC, then install Motorola Driver and restart your PC.

E.  Unlock the Bootloader, flash TWRP and Root Moto G5

  1. Connect your Moto G5 to your PC via USB cable
  2. Once you connect to PC, you will get a pop up on your Moto G5
  3. Just tick the “Always allow from this computer ” check box and tap OK3
  4. As your Phone connected to PC just copy paste Magisk-v11.6.zip and no-verity-opt-encrypt-5.1.zip into your phone external SD card as internal data will be formatted.
  5. Open the “ADB FASTBOOT FILES” folder in your PC
  6. Inside the folder, hold “Shift” Key then right click and select “Open command Windows hereroot-lenovo-k3_1
  7. Now type this bellow command
    adb devices
  8. Now you will be able to see your device or Moto G5 Plus. Mean driver installed properly
  9. Now disconnect your Moto G5 Plus from PC, don’t close the command prompt.
  10. Put your device in fastboot mode (power off, then press the power and volume down buttons simultaneously).
  11. It will boot into something unusual,
  12. Now use Vol up or down key untill it Show START  same as bellow pic
  13. Now connect your phone to PC via USB
  14. Type this command and hit enter
    fastboot oem get_unlock_data
  15. It will return some strings
  16. Now right click inside the command prompt and choose Mark  then select those 6 line returning strings and hit enter on Keyboard to copy those lines
  17. Now open this link and paste there like thisScreenshot (61)
  18. Now hit Format my data and you will get like thisScreenshot (62)
  19. Just copy this whole text and paste it on a note pad
  20. Go to this link and create and Motorola account, if you already have then skip this step
  21. Now open this link on your browser, and paste the text that you copied on step 16 like this.Screenshot (63)
  22. Click on “Can my device be unlocked
  23. Then choose agree and click on Request Unlock Key
  24. Now you will receive unlock key via email. Just copy the Unlock Code from mail (It may take 1-2 day to receive the unlock key via mail)
  25. Now type this command with your unlock key, here XXXXXXXXXXXXXXXXXXXXXX is example unlock key
    fastboot oem unlock XXXXXXXXXXXXXXXXXXXX

    Screenshot (64)

  26. It will return a warning regarding all the data erase. So again type or copy paste this command and hit enter
    fastboot oem unlock XXXXXXXXXXXXXXXXXXXX
  27. Now your Moto G5 Plus boot-loader is unlocked, its time to flash TWRP Recovery
  28. Type this command and hit enter, just make sure twrp.img file is in the ADB FASTBOOT folder
    fastboot flash recovery twrp.img
  29. It will return to finish once the flashing process complete
  30. Now take your phone and use Volume UP or down Key to navigate “RECOVERY MODE”
  31. Once you find RECOVERY MODE just press Power button to enter in recovery mode
  32. You will see TWRP recovery mode.
  33. It will ask for a password, just tap on cancel.
  34. Now tap on Wipe
  35. Then select Format Data
  36. you need to type “yes”  to format your phone.
  37. Now on home screen tap on Reboot and select Recovery then tap on “Do not install” like this
  38. It will reboot into TWRP Recovey mode again
  39. Now tap on Install then browse external SD and select Magisk-v11.6.zip 
  40. Swipe to confirm the flash
  41. Again tap on install then browse and select no-verity-opt-encrypt-5.1.zip
  42. Swipe to confirm the flash
  43. Now tap on Reboot then select System then tap on “Do not install” like this
  44. It will may take time to reboot into android mode
  45. Once done Your Moto G5 is now rooted.
  46. To check whether Moto G5 has root access or not, just go to Google Play Store and install Root Checker and run it.

Hope you have understood this guide, so go and Root Moto G5. In case, any confusion or problem regarding Root Moto G5 just comments here. If you got success to Root Moto G5 then also comment here, it will help other users!!

Incoming Search

Easy way to root moto G5

How to root Moto G 5th Generation

Install TWRP Recovery on Moto G5

(Visited 2,618 times, 1 visits today)

Comments

  1. By Karan

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.