Home How To How to Root Moto G7 and Unlock Bootloader

How to Root Moto G7 and Unlock Bootloader

Motorola (owned by Lenovo) has released four new smartphones this year including Moto G7, G7 Plus, G7 Play, and G7 Power. These are the latest smartphones in the G series and also the successor of G6 series. And if you own G7 and looking for a modification guide then this is the right place. Here you will know How to Unlock Bootloader and How to Root Moto G7 with Magisk & without TWRP.

root moto g7

Till now TWRP for Moto G7 is not available and so we are not going to use TWRP for rooting Moto G7. We will only use Magisk to make patch boot file and flash it to root the device. Here you will also know how to unlock bootloader on Moto G7. This guide will also work if you have Moto G7 Plus, Moto G7 Play, and Moto G7 Power.

How to Root Moto G7

If you are going to root the device then you should know that bootloader should be unlocked to achieve the root access. Rooting the phone gives full control to users over their phone. Users can access root files like system file and change anything. Rooting also makes it easy to make any modifications like flashing anything without a custom recovery. Apps that require Root access like Titanium backup also work after following this guide. First, we will explain how to unlock bootloader of Moto G7 and then how to root Moto G7.



  • Take a full backup of your phone (this process will delete all the data on your phone)
  • Charge your phone to at least 50%
  • PC and USB are required
  • Internet Access is required

How to Unlock Bootloader on Moto G7


  • Unlocking bootloader will void the warranty of your phone
  • Rooting the device will block OTA updates
  • Any wrong step can brick your device

Steps to Unlock Bootloader

  1. In Moto G7 open Settings and go to System > About Phone.
  2. Continuously tap on Build Number until it says “You are now a developer”.
  3. Go back to System and open Developer Options.
  4. In Developer options, enable OEM unlocking and USB debugging.
  5. In PC install the minimal adb & fastboot on your pc if you haven’t done already.
  6. Now go to Motorola Global Portal page.
  7. Sign in with the same Google account that is linked to your phone (Important).
  8. Connect your phone to PC with USB.
  9. Go to C:\Program Files (x86)\Minimal ADB and Fastboot location on your PC.
  10. Press Shift and Right-click together (in an empty area) and select “Open Command window here” or “Open PowerShell window here”. root moto g7
  11. Enter the command to connect the phone
    • adb devices
    • It will ask for permission on your phone, so click on Yes to allow.
  12. Enter the following command to boot the phone into bootloader mode
    • adb reboot bootloader
  13. Once the phone is booted in bootloader mode enter command
    • fastboot oem get_unlock_data
  14. Copy the 4 line code and make it in one line (do not copy bootloader or any sentence just the code) also remove the gap between the codes. root moto g7
  15. Paste the code in Motorola global portal and click on “can my device be unlocked”. And then scroll down below and select “I Agree” and click “Request unlock key”. root moto g7
  16. You will receive the unlock code to your email that you used to login on your device and the Motorola global portal. Copy the received code.
  17. Go to Command window and enter the following command
    • fastboot oem unlock Unlock_Code
    • Unlock_Code is the 20 digit code that you received through the mail
  18. You have to enter the same command again (from step 17).
  19. Now you have successfully unlocked the bootloader on your phone. You can disconnect the phone and Reboot.

After unlocking the bootloader your device is ready for any kind of modification like root, installing custom recovery, installing custom kernel, and installing custom ROMs.

Note: If you want to root Moto G7 Plus, Moto G7 Power and Moto G7 Play then you have to download the firmware or boot.img file for your device and software channel (For moto G7 follow step 2). Except for this, you have to follow same steps.

Root Motorola Moto G7 with Magisk

  1. Open Settings on your phone and go to System > About Phone. Check the Software channel and Model number.
  2. Go to the lolinet and download the firmware for your device (For eg: If your Software channel is RETGB then open the RETGB Folder and download the same version shown in build number). Or You can download boot.img file for your software channel and version to save data but it is tough to find.
  3. Extract the downloaded firmware and copy the boot.img file to phone storage.
  4. Download Magisk Manager APK from the download section and Install it on your phone.
  5. Open Magisk Manager, you will see a cross sign to show Magisk is not Installed. On the side of cross sign, Click on Install. root moto g7
  6. It will ask for confirmation so again click on Install. Then select “Patch Boot Image File” and locate the boot.img file that you copied to phone storage.
  7. It will download the latest Magisk Zip file and then start patching the boot image file. root moto g7
  8. After patching close the Magisk Manager. Now go to Download folder and copy the patched_boot.img file and transfer it to PC (Minimal ADB & Fastboot folder in C drive). If the name of patched image file is different then rename it to the patched_boot.img.
  9. Make sure that OEM unlocking and USB debugging is enabled in Developer options. And then boot the phone into fastboot mode (Press & hold Power + Volume Down button together).
  10. Connect your phone to PC with USB.
  11. Go to C:\Program Files (x86)\Minimal ADB and Fastboot and press Shift & Right-click together and click on “Open Command window here” or “Open PowerShell window here”.
  12. Enter the following command to flash Magisk and root Moto G7
    • fastboot flash boot patched_boot.img
  13. After flashing you can reboot your device.
  14. Congrats, you have just rooted your phone with Magisk.

So that’s all you have to do to root your Moto G7 (River). Make sure to download boot image or firmware carefully for your device, otherwise, you may end up bricking your phone. If you also want to install TWRP recovery on Moto G7 then keep visiting YTECHB because when the TWRP file will be available we will post the guide.

I hope this guide was helpful to you. And if you are facing any problem on rooting your phone then leave a comment down below and we will reply with the solution. You can also reach to us through Facebook for step by step support.

Related Guides:

Ashutosh singhhttps://www.ytechb.com
Ashutosh is a game lover and tech enthusiast, He likes helping others by posting solutions regarding Windows and Android operating systems problems. He enjoys trying new games and reviewing them.


  1. ok now its not working it bootlooped 2 days after rooting everything was fine until it bootlooped….so I rescued it with Lenovo assistant and attempted another root and now magisk wont even respond when I input (select and patch a file- boot.img-“Lets go”) once lets go is pressed it completely exits the app no warning or anything, so i restarted it, didn’t work. i uninstalled and reinstalled magisk, didn’t work, i did the same thing but through the PC and with commands, didn’t work, tried to search up what to do online and all i get is rescue with Lenovo assistant, I’m at a stand still here. someone please help!!

  2. Will this work with Moto g7 power? (On MetroPCS) If not what’s the best guide to follow?
    Most guides seem to be toooo confusing and unsuccessful in rooting.

Leave A Reply

Please enter your comment!
Please enter your name here


Download IDM Chrome Extension CRX File (idmgcext.crx)

Internet Download Manager extension is available for almost every browser. But sometimes due to some unsupported files, we get the error, and so IDM...

Download Google Camera 7.3 for Sony Xperia 1 II

Sony Xperia 1 II (pronounced as Xperia 1 Mark 2) is one of the ultimate launches of the year 2020. The device dawns Sony's...

Download Oppo Preloader Driver for Oppo Phones (Latest Version)

Oppo Preloader Driver is an application or software that connects Oppo devices with Windows computer for many purposes. If you want to update your...

Download Google Camera 7.3 for Oppo Reno3 & Reno3 Pro

Oppo's Reno-series phones are undoubtedly one of the best camera smartphones. And recently, Oppo announced the third-generation Reno phones, in the form of Oppo...

Download SN Write Tool All Versions to Flash IMEI on Android Phones

SN Write Tool is a simple utility software for Windows platform. It allows users to flash or write IMEI on Mobile phones with a...

Best GCam Guides

Download Google Camera 7.3 for OnePlus 8 & 8 Pro

After trailing the flagship-killer tagline behind, the company has launched its next-generation smartphones, dubbed as OnePlus 8 and OnePlus 8 Pro. The real-flagship dawns...

Download Google Camera 7.3 for Redmi Note 9 Pro & 9 Pro Max

Recently, Redmi launched its next-generation Note-series phones in the form of Redmi Note 9 Pro and Redmi Note 9 Pro Max. And the camera...

Download Google Camera 7.3 for Samsung Galaxy S20 & S20+ [for Snapdragon Variant]

Samsung Galaxy S20 is by far the best camera smartphone of the year 2020. Samsung scale up the camera performance of Galaxy S20's from...

Download Google Camera 7.3 for Realme 6 & Realme 6 Pro

Realme is all set to bang under the very competitive mid-range price segment with its newest Realme 6 series phones. Realme 6 & Realme...

Download Google Camera 7.2 for Samsung Galaxy A51

Samsung Galaxy A51 is arguably one of the best mid-range smartphones of the year 2020. The Galaxy A51 is billing with a quadruple-camera setup,...


Android 10 based LG UX 9.0 update released for LG G8X ThinQ

The Android 10 update is finally rolling out to standard LG G8X ThinQ. Sprint and Canadian LG G8X ThinQ had already received the update...

MIUI 12 Stable Beta Update now available for Mi 9, Mi 9T, and Redmi K20 (with Download Link)

Since last week, Xiaomi has started pushing the stable beta version of its newest custom skin - MIUI 12. The company brings MIUI 12...

Apple released iOS 13.5.1 stable and iOS 13.5.5 Beta 1

About two weeks ago iPhones & iPads get the public iOS 13.5 & iPadOS 13.5. And just within one day, the unc0ver exploit was...

Download Samsung Galaxy M01 Stock Wallpapers [HD+]

After long leaks of a marathon, Samsung Galaxy M01 finally goes official in India alongside the Galaxy M11. Today, Samsung has announced two new...

Download Vivo X50 Pro Stock Wallpapers [QHD+] (Official)

Vivo has just unveiled its newest camera-centric X-series lineup phones in China. This time, the company brings three new smartphones dubbed as Vivo X50,...