DEV Community

Bill trammell
Bill trammell

Posted on

How to Root the Moto G Play 2026 (XT2615-1) — Fully Automatic

How to Root the Moto G Play 2026 (XT2615-1) — Fully Automatic

Want to root the Moto G Play 2026? Here's the deal: almost nobody has covered this device yet. It's a MediaTek phone running Android 16, and the usual tooling doesn't quite fit. So I wrote a script that does the whole thing — bootloader unlock through Magisk — with zero manual steps.

What you need

  • A Moto G Play 2026 (XT2615-1, codename nevada)
  • adb and fastboot (Android platform tools)
  • USB debugging enabled in Developer Options
  • A Linux, macOS, or WSL machine

The one-liner

git clone https://github.com/bill-jtrammell/moto-root-2026.git
cd moto-root-2026
chmod +x moto-root-2026.sh
./moto-root-2026.sh
Enter fullscreen mode Exit fullscreen mode

What the script does

  1. Verifies the device — checks you're on the right model and the bootloader is reachable.
  2. Handles the bootloader unlock — Motorola still makes you go through their oem unlock flow, and the annoying part is fetching your unlock data string. The script extracts it for you automatically (no manual fastboot oem get_unlock_data parsing).
  3. Backs up the stock boot image — before it touches anything. You'll want this if you ever need to restore.
  4. Patches boot with Magisk — pushes the patched image so your root survives reboots.
  5. Flashes slot-aware — MediaTek + A/B slots can trip up naive scripts. This one detects the active slot and flashes both so you don't brick on reboot.
  6. Has an unbrick path — if something goes sideways, there's a recovery mode for soft-bricked devices.

Why this matters

The Moto G Play 2026 shipped with Android 16 and a MediaTek chipset. Most "universal" root tools assumed your device is a Snapdragon phone from 2021. The XT2615-1 needs slot-aware MediaTek handling, and no public script covered it — so I built one.

Links

If this saves your phone (or your weekend), a coffee is appreciated:

Top comments (0)