How To Root Moto G Stylus 5G with Magisk

Prerequisites

Let’s gather everything needed before we start. With these tools and downloads, you’ll be prepared to root your phone without a hitch.

Compatibility

This guide is specifically for the Moto G Stylus 5G (2022) running Android 12. Make sure your phone’s firmware matches to avoid any issues.

  1. Motorola Rescue and Smart Assistant Tool
    Download the Motorola Rescue and Smart Assistant Tool here to get the necessary firmware for your phone model.
  2. Magisk (v25.0 or newer)
    Get the latest version of Magisk from this link.
  3. ADB & Fastboot Tools
    Make sure ADB and Fastboot tools are installed on your computer to allow communication with your phone during the root process.
  4. Enable USB Debugging & OEM Unlocking
    In your phone’s Settings under About Phone, tap Build Number seven times to enable Developer Options. In Developer Options, turn on OEM Unlocking and USB Debugging.

Bootloader Unlocking Process

Before rooting, you need to open up the bootloader, which allows the changes necessary for rooting. This will erase all your data, so be sure to back up anything important.

Check Bootloader Status

Go to Developer Options to confirm if OEM Unlocking is available. If it’s grayed out, this option may show up after a few days.

Get the Unlock Code from Motorola

Visit Motorola’s bootloader unlock page and follow the instructions to get an unlock code.

Run the Unlock Command with Fastboot

  1. Connect your phone to your computer.
  2. Restart the phone in fastboot mode by holding Volume Down + Power until the menu appears.
  3. On your computer, open a command prompt and type:
    fastboot oem unlock YOUR_UNLOCK_CODE
  4. The phone will restart, erasing all data, and the bootloader will now be open.

Rooting Moto G Stylus 5G Using Magisk

With the bootloader now open, you can go ahead and root your Moto G Stylus 5G using Magisk.

Download the Stock Firmware

Download the correct firmware for your device using the Motorola Rescue and Smart Assistant Tool. This makes sure you have the right files for your model.

Patch the Boot Image with Magisk

  1. Extract the downloaded firmware to find boot.img.
  2. Copy boot.img to your phone’s internal storage.
  3. Install Magisk on your phone, open it, and go to Install > Select and Patch a File and choose the boot.img file from your storage.
  4. Magisk will create a patched file called magisk_patched.img in your Downloads folder.

Flash the Patched Boot Image

  1. Restart your phone in fastboot mode by holding Volume Down + Power.
  2. On your computer, pull the patched boot image using ADB:
    adb pull /sdcard/Download/magisk_patched.img
  3. Flash the patched image to your phone:
    fastboot flash boot magisk_patched.img
  4. If needed, disable verification with this command:
    fastboot flash vbmeta --disable-verity --disable-verification vbmeta.img
  5. Reboot your phone:
    fastboot reboot

When your phone starts back up, open the Magisk app to confirm root access.

Great job! Your Moto G Stylus 5G now has root access. You’re now free to remove unwanted apps and adjust your device’s settings however you like. If you run into any issues along the way, just revisit this guide for guidance.

Leave a Reply

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