How to root the Motorola Edge 50/40 Series & Moto G84/G54 with Magisk
Step-by-step rooting guide for Motorola smartphones: Edge 50 Ultra, Edge 40 Pro, Moto G84, and Moto G54. Details Motorola bootloader unlock code retrieval, RSA tool, and Fastboot flashing.
At a glance
| Device family | Motorola Edge 50/40 Series & Moto G84/G54 |
| Launch software | Android 13 / 14 (Hello UI / My UX) |
| Chipset | Snapdragon 8s Gen 3 / Dimensity 7030 / Snapdragon 695 |
| Root partition | init_boot.img (Edge 50/40) or boot.img (Moto G) |
| Firmware format | Official Rescue and Smart Assistant (RSA) Firmware Archive |
| Bootloader unlock | Motorola Unlock Portal (`fastboot oem get_unlock_data` -> Request Unique Unlock Key) |
| Warranty / security impact | Unlocking the bootloader wipes user data and may disable some hardware-backed features. It can usually be re-locked and re-flashed to stock. |
Rooting method
- Step 1. Download the stock firmware or factory image that matches your exact build (Official Rescue and Smart Assistant (RSA) Firmware Archive).
- Step 2. Extract
init_boot.imgfrom the package. - Step 3. Copy
init_boot.imgto the phone, open the Magisk app, tap Install → Select and Patch a File and choose it. Magisk writesmagisk_patched.imgto your Download folder. - Step 4. Copy the patched image back to your computer.
- Step 5. Reboot to the bootloader and flash it, then reboot the device.
Flash command
fastboot flash init_boot magisk_patched.img
fastboot reboot
For the full workflow and prerequisites, see the installation guide and boot image patching guide.
If the device bootloops
Recovery
Fastboot Mode -> Flash stock init_boot/boot via Lenovo RSA
More options: fix a Magisk bootloop.
Keeping root across updates
Magisk Inactive Slot OTA Installation
See the OTA survival guide for the full procedure.
Related
Motorola rooting hub
HubAll Motorola models covered on this site.
Play Integrity Fix
ModuleRestore device integrity for Google Wallet and banking apps after rooting.
Shamiko
ModuleHide root from apps that perform detection checks.
Root method checker
ToolConfirm which partition to patch and generate the flash command.
Independently written from public upstream documentation. Verify every command against the official Magisk documentation and your exact device firmware before flashing. Not affiliated with the Magisk project.