• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[Guide] Root Motorola with Magisk (UnLocked Bootloader)(Non-TWRP method)

Search This thread

sd_shadow

Recognized Contributor
Sep 21, 2011
18,211
2
8,757
South Dakota
goo.gl
Motorola Droid X
Moto X4
Root Motorola Devices with Magisk

Note:
This method has been working with most Moto Devices that the Bootloader can be UnLocked.
If the Bootloader cannot be Unlocked this method will not work.

Please only use this as a reference. If you require more help please post in your device's forum.
Mention me with @sd_shadow


Quick Steps
  • Unlock the Bootloader
    • Note: Unlocking will wipe Userdata

  • Install Magisk manager app

  • device_info.png
  • If Ramdisk is Yes continue to Download Firmware
  • If Ramdisk is anything else see

  • Download Firmware Rescue and Smart Assistant(LMSA)(PC)
    • If the download is newer, now is a good time to flash the update.
      The newer boot.img may not work correctly with the older software on the device.
      If you want to keep the firmware version that is on the device see Other Firmware Options
    • Other Firmware options
  • Find the boot.img in the LMSA Downloads Folder
    • "ProgramData\LMSA\Download\RomFiles\"

  • Copy boot.img to Moto Device

  • inkedscreenshot_20210813-020307_li-2-jpg.5384813
  • inkedmagisk-select-and-patch-image_li-jpg.5384835
  • InkedMagisk-patch-boot-image_LI.jpg
  • Copy magisk_patched.img to PC
  • Flash magisk_patched.img
  • Reboot
  • Open Magisk manager to verify you have the current version.

  • Hide Magisk
    • If you use apps the won't work if rooted devices (Banking apps) Enable Hide Magisk

More
 
Last edited:

sd_shadow

Recognized Contributor
Sep 21, 2011
18,211
2
8,757
South Dakota
goo.gl
Motorola Droid X
Moto X4
Magisk in recovery

If your device does not have ramdisk in boot images, Magisk has no choice but to be installed in the recovery partition. For these devices, you will have to reboot to recovery every time you want Magisk.

When Magisk is installed in your recovery, you CANNOT use custom recoveries to install/upgrade Magisk! The only way to install/upgrade Magisk is through the Magisk app. It will be aware of your device state and install to the correct partition and reboot into the correct mode.

Since Magisk now hijacks the recovery of the device, there is a mechanism to let you actually boot into recovery mode when needed: it is determined by how long you press the recovery key combo.
This does not replace stock recovery.
 
Last edited:

sd_shadow

Recognized Contributor
Sep 21, 2011
18,211
2
8,757
South Dakota
goo.gl
Motorola Droid X
Moto X4
Magisk

Magisk Manager is dead.​

Long live the Magisk app!​

Ever since the first Magisk release, Magisk (the core components) and Magisk Manager (the companion app) are released separately and isn't necessarily always in sync. This leads to some confusion and a lot of complexity when downloading/installing Magisk through the app. Starting from v22.0, the Magisk app (renamed from Magisk Manager) includes everything it needs within the APK itself, making installation a 100% offline process.

Custom recovery lovers, no worries! The Magisk app APK itself is a custom recovery flashable zip, just like MAGIC™🌈. Check out the updated installation guide for more info.

 
Last edited:
  • Like
Reactions: gonzo1963

sd_shadow

Recognized Contributor
Sep 21, 2011
18,211
2
8,757
South Dakota
goo.gl
Motorola Droid X
Moto X4
Magisk Recovery mode


 
Last edited:
  • Like
Reactions: gonzo1963

sd_shadow

Recognized Contributor
Sep 21, 2011
18,211
2
8,757
South Dakota
goo.gl
Motorola Droid X
Moto X4
Hiding root and bootloader from Banking apps

Magisk and MagiskHide Installation and Troubleshooting guide : MagiskHide


Magisk renaming is maybe required.
Try using VD INFOS, you can see every detectable thing. (Root/Magisk/Xposed/Riru/and others.)
 
  • Like
  • Love
Reactions: gonzo1963 and VD171

WordsworthFhang

New member
Dec 14, 2017
2
0
Wow, thanks so much for the comprehensive reply @sd_shadow. Think I may take a look at the non-TWRP method.

Interesting that you install Magisk immediately after unlocking bootloader. I had been following these instructions: https://appuals.com/root-Motorola-moto-g5-g5-plus/ which doesn't install Magisk until after TWRP - but then you're not using TWRP!

In answer to @Wolfcity, yes I had tried reboot to TWRP, but get the following:
C:\adb>fastboot boot recovery.img
cannot load 'recovery.img': No such file or directory

I should've said, that's mostly why I figured it had failed.

I'm actually rooting to make use of Nethunter on the device. It's an old device, so not one I'll be using for any everyday apps or accounts. It'll be dedicated to Nethunter - for legit purposes only!
 

Jr.17

Member
Aug 25, 2021
12
3
Root Motorola Devices with Magisk

Note:
This method has been working with most Moto Devices that the Bootloader can be UnLocked.
If the Bootloader cannot be Unlocked this method will not work.

Please only use this as a reference. If you require more help please post in your device's forum.
Mention me with @sd_shadow


Quick Steps
  • Unlock the Bootloader
    • Note: Unlocking will wipe Userdata

  • Install Magisk manager app

  • device_info.png
  • If Ramdisk is Yes continue to Download Firmware
  • If Ramdisk is anything else see

  • Download Firmware Rescue and Smart Assistant(LMSA)(PC)
    • If the download is newer, now is a good time to flash the update.
      The newer boot.img may not work correctly with the older software on the device.
      If you want to keep the firmware version that is on the device see Other Firmware Options
    • Other Firmware options
  • Find the boot.img in the LMSA Downloads Folder
    • "ProgramData\LMSA\Download\RomFiles\"

  • Copy boot.img to Moto Device

  • inkedscreenshot_20210813-020307_li-2-jpg.5384813
  • inkedmagisk-select-and-patch-image_li-jpg.5384835
  • Copy magisk_patched.img to PC
  • Flash magisk_patched.img
  • Reboot
  • Open Magisk manager to verify you have the current version.

  • Hide Magisk
    • If you use apps the won't work if rooted devices (Banking apps) Enable Hide Magisk

More
Question, when I did all of this through magisk everything went swell but my moto Touchscreen stopped working but booted just fine not sure if it was a one time fluke or not gonna try again any suggestions? Should I also Flash Recovery?
 

sd_shadow

Recognized Contributor
Sep 21, 2011
18,211
2
8,757
South Dakota
goo.gl
Motorola Droid X
Moto X4
Question, when I did all of this through magisk everything went swell but my moto Touchscreen stopped working but booted just fine not sure if it was a one time fluke or not gonna try again any suggestions? Should I also Flash Recovery?
If the touchscreen stopped working you likely used the wrong boot.img
You don't need a custom recovery just for root.
 

Vger20192019

Member
Mar 19, 2019
7
0
Shanghai
@sd_shadow My devices is edge xt2063-2 (USA,5G brand N71),It’s can't connect to chinatelecom(5G band N78)
But xt2603-3(Europe)ROM include N78 band
Can I flash XT2063-3 EU ROM on mydevices just by fastboot mode?
Or Just need modify some .img files
 

sd_shadow

Recognized Contributor
Sep 21, 2011
18,211
2
8,757
South Dakota
goo.gl
Motorola Droid X
Moto X4
@sd_shadow My devices is edge xt2063-2 (USA,5G brand N71),It’s can't connect to chinatelecom(5G band N78)
But xt2603-3(Europe)ROM include N78 band
Can I flash XT2063-3 EU ROM on mydevices just by fastboot mode?
Or Just need modify some .img files
If the bootloader is unlocked, no problem.
If the bootloader is still locked, just flash the radio part.
 

Top Liked Posts