[ROOT] [MAGISK] How to root

Search This thread

PJF16

Senior Member
Jan 5, 2011
192
141
28
Vienna
Just wanted to inform you, that rooting with Magisk works like a charm. Even without TWRP. :)

What you need:
Magisk Manager: https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
boot.img from your ROM (prepatched boot.img for CN_V10.0.11.0 ROM here: https://filebase.philipp.technology/filebase/index.php?page=Entry&entryID=19)
Unlocked Bootloader
ADB and Fastboot on your PC (Simple ADB & Fastboot Installer: https://filebase.philipp.technology/filebase/index.php?page=Entry&entryID=5)

Installation:
Install MagiskManager.apk on your Smartphone
---SKIP IF YOU USE THE PREPATCHED BOOT.IMG---
Put the unpatched boot.img on your phone
Open MagiskManager and Click "Install"
Select "Patch boot.img" and choose the boot.img with your file manager
Copy the "patched_boot.img" file on your PC
---CONTINUE HERE---
Now connect your Mix 3 to the PC and boot in fastboot mode (over the command line: adb reboot bootloader)
Navigate with the command line to your folder, where you saved the patched_boot.img
Now flash the patched_boot.img file with fastboot: fastboot flash boot patched_boot.img
If the flash is successfull you can reboot the phone with fastboot reboot
Open the MagiskManager and verify that Magisk is installed and your phone is rooted.
 

Attachments

  • Screenshot_2018-11-20-17-05-57-575_com.joeykrim.rootcheck.png
    Screenshot_2018-11-20-17-05-57-575_com.joeykrim.rootcheck.png
    186.9 KB · Views: 6,739
  • Screenshot_2018-11-20-17-06-11-706_org.freeandroidtools.safetynettest.png
    Screenshot_2018-11-20-17-06-11-706_org.freeandroidtools.safetynettest.png
    182.2 KB · Views: 6,715
  • Screenshot_2018-11-20-17-28-49-417_com.topjohnwu.magisk.png
    Screenshot_2018-11-20-17-28-49-417_com.topjohnwu.magisk.png
    69 KB · Views: 6,682

PJF16

Senior Member
Jan 5, 2011
192
141
28
Vienna
Normally you don't need root to flash Xiaomi.eu ROM, just TWRP. But there is no TWRP yet. You could try "Flash Fire", but I don't know if it would work. Never did that before. If you try it make sure, that you have USB Debugging enabled and know how to use common tools like MiFlash etc.

If you are unexperienced wait for TWRP.
 

SacredSovL

Member
Aug 30, 2018
10
0
Göttingen
Normally you don't need root to flash Xiaomi.eu ROM, just TWRP. But there is no TWRP yet. You could try "Flash Fire", but I don't know if it would work. Never did that before. If you try it make sure, that you have USB Debugging enabled and know how to use common tools like MiFlash etc.

If you are unexperienced wait for TWRP.


I used TWRP before and Rooted before too but i never used Flash Fire or Flashify. I don't know how hard it would be to use them.
 

smiba

Senior Member
Aug 3, 2013
59
15
Hi PJF16

How did you get the boot.img from your device without root? I'd love to make a unmodified copy before trying this out
 

souless poet

Senior Member
Nov 9, 2009
434
59
Just wanted to inform you, that rooting with Magisk works like a charm. Even without TWRP. :)

What you need:
Magisk Manager: https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
boot.img from your ROM (prepatched boot.img for CN_V10.0.11.0 ROM here: https://filebase.philipp.technology/filebase/index.php?page=Entry&entryID=19)
Unlocked Bootloader
ADB and Fastboot on your PC (Simple ADB & Fastboot Installer: https://filebase.philipp.technology/filebase/index.php?page=Entry&entryID=5)

Installation:
Install MagiskManager.apk on your Smartphone
---SKIP IF YOU USE THE PREPATCHED BOOT.IMG---
Put the unpatched boot.img on your phone
Open MagiskManager and Click "Install"
Select "Patch boot.img" and choose the boot.img with your file manager
Copy the "patched_boot.img" file on your PC
---CONTINUE HERE---
Now connect your Mix 3 to the PC and boot in fastboot mode (over the command line: adb reboot bootloader)
Navigate with the command line to your folder, where you saved the patched_boot.img
Now flash the patched_boot.img file with fastboot: fastboot flash boot patched_boot.img
If the flash is successfull you can reboot the phone with fastboot reboot
Open the MagiskManager and verify that Magisk is installed and your phone is rooted.

I feel like I'm missing something. I fastboot flash but it gets hung up in cmd. Should not take as long as it is trying to
 

fmotta

Senior Member
Jan 15, 2004
299
55
Not working on 8.11.15 dev china rom...
Patched boot is much smaller than it should be and after flashing and fastboot reboot command, phone goes back to fastboot mode
 
Last edited:

souless poet

Senior Member
Nov 9, 2009
434
59
Anyone have any issues with v4A magisk module? After I flashed it I lost the ability to turn on wifi. Wondering if anyone else has had that issue.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    Just wanted to inform you, that rooting with Magisk works like a charm. Even without TWRP. :)

    What you need:
    Magisk Manager: https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
    boot.img from your ROM (prepatched boot.img for CN_V10.0.11.0 ROM here: https://filebase.philipp.technology/filebase/index.php?page=Entry&entryID=19)
    Unlocked Bootloader
    ADB and Fastboot on your PC (Simple ADB & Fastboot Installer: https://filebase.philipp.technology/filebase/index.php?page=Entry&entryID=5)

    Installation:
    Install MagiskManager.apk on your Smartphone
    ---SKIP IF YOU USE THE PREPATCHED BOOT.IMG---
    Put the unpatched boot.img on your phone
    Open MagiskManager and Click "Install"
    Select "Patch boot.img" and choose the boot.img with your file manager
    Copy the "patched_boot.img" file on your PC
    ---CONTINUE HERE---
    Now connect your Mix 3 to the PC and boot in fastboot mode (over the command line: adb reboot bootloader)
    Navigate with the command line to your folder, where you saved the patched_boot.img
    Now flash the patched_boot.img file with fastboot: fastboot flash boot patched_boot.img
    If the flash is successfull you can reboot the phone with fastboot reboot
    Open the MagiskManager and verify that Magisk is installed and your phone is rooted.
    6
    Guys, for the global variant come with Global_V10.0.11.0, here is the root tutorial:

    First and ofcourse, unlock your bootloader.

    Right after the unlock success, hold power + volume down to enter fastboot, dont let your phone complete boot sequence.

    Flash this TWRP

    Reboot to recovery by holding power + volume up and install Magisk 17.3.

    Wipe cache/data and reboot. Reboot one more time and install/update magisk manager after complete set up new phone, dont update to magisk 18.

    This is what i done on my Mix 3 global variant, no bootloop, safetynet pass, everythings work.

    Screenshot_2019-01-09-17-20-37-332_com.topjohnwu.magisk.png
    2
    where can i find the pre patched boot img of 10.0.12.0?

    Hi, here You can find patched boot for 10.0.12.0:
    https://yadi.sk/d/aVlSEC_r7xj0VA
    2
    @osm0sis Check this out:

    01-23 14:24:32.969 1365 1365 E SystemServerI: CN hardware can't run Global build; reboot into recovery!!!

    That's in the logcat of the boot process on the device only AFTER we try to root. I don't know what SystemServerI is, but we probably have found our problem.

    Edit: https://gist.github.com/jat001/a8d2448aae1372c37f26793ffeab8ac0 -- so something that Magisk is doing is causing the device to realize we are running Global on CN hardware. I _REALLY_ want to find a way to do what you used to be able to do with HTC devices now... I want to find a way to change the hardware flags for a CN device to Global....

    Edit 2: Boys, we have root on CN device with Global software. THIS IS NOT FOR FAINT OF HEART. DON'T BLAME ME IF YOU BREAK SOMETHING.
    Mount system as RW in TWRP. (this took mounting, unmounting, then remounting for me)
    Use the following commands CAREFULLY from a computer.
    cat /system/build.prop > /sdcard/build.prop
    Open the build.prop from the sdcard and edit the following line numbers: 25, 26
    You are changing:
    ro.product.name=perseus
    ro.product.device=perseus
    To this:
    ro.product.name=perseus_global
    ro.product.device=perseus_global
    save the file on the sdcard
    Go back to ADB session and do this:
    cat /sdcard/build.prop > /system/build.prop

    IF THIS FAILS YOUR SYSTEM IS NOT RW, UNMOUNT AND REMOUNT IN THE MOUNTS MENU.

    Go back to the mounts menu and unmount /system

    Flash Magisk 17.3 (18.0 seems to be having intermittent issues with passing checks)

    Reboot, and enjoy your CN device running Global with ROOT.
    2
    [/COLOR]
    I tried that. I did not have any luck. If you try and succeed let me know.
    Hey, I found solution:

    Instructions on how to make Magisk work on Developer ROM and pass SafetyNet.

    1. Put MagiskManager.apk to phone
    Download: https://github.com/topjohnwu/Magisk/releases/download/manager-v6.1.0/MagiskManager-v6.1.0.apk

    2. Download on PC a custom recovery to flash from fastboot:
    Download: http://4pda.ru/forum/dl/post/14634538/recovery-TWRP-3.2.3-1205-XIAOMI_MIX3-CN-wzsx150.img

    3. Download to your phone Magisk 17.3 zip for flashing from recovery (only 17.3!!!)
    Download: https://github.com/topjohnwu/Magisk/releases/download/v17.3/Magisk-v17.3.zip

    4. Boot into fastboot (volume down + power button).

    5. Flash a custom recovery
    Command: fastboot flash recovery recovery-TWRP-3.2.3-1205-XIAOMI_MI3-CN-wzsx150.img

    6. Boot into custom recovery (volume up + power button).

    7. In it flash previously ZIP with Magisk 17.3 (Magisk-v17.3.zip)

    8. Reboot into the system and open the MagiskManager and NOT UPDATED to 18 version!

    9. In its menu, find and flash the module SafetyPatch v2 (located in repo)

    It works!