How To Guide [Guide] Xiaomi Mi Pad 5 MIUI12/13 ROOT Step-by-step - Pass SafetyNet, Widevine L1

Search This thread

AcidIce18

Member
May 5, 2020
10
3
Hi, I rooted my minpad 5 on global rom 13.1.3 (android 12) - rooting went fine, but each time I reboot my device, the root is gone and I have to reflash - any idea as to why this happens or how to stop the root from disappearing after each reboot
 

AcidIce18

Member
May 5, 2020
10
3
I got this fixed - turns outmin A12 when you flash the boot.rom back via fastboot, it actually loads it only into memory and does not flash it, so it's basically a temp root. Once booted into tablet w. temp flash, just do a direct install flash out of the magisk app and after that, it's permanently flashed / rooted
 

pan_droid

Senior Member
If you will read this thread, you can learn that boot.img must be for the same version of ROM as you are running. Using version from the #1 leads to boot loop in new ROMs.
unpack the rom you downloaded and from the payload.bin file extract the boot.img file and you will find out how to do it if you kindly look for an answer on the forum because there is a full manual + a description of how to edit boot.img with magisk.
 

muserhermit

New member
Feb 18, 2023
1
0
Thanks for the guide. It's my first time doing root, and I have encoutnered the following issue on Step 14. Hope for any advice:
1676685417131.png
 

kiosh1ma

New member
Mar 1, 2023
1
0
Hello everyone,

I am not sure to understand one of the last step 26th
"26. After reboot open Android Settings go to Apps and Unhide system services than find and clear all data of Google Play services and Google Play Store"

Does it means that we have to:
- Open Magisk
- Open settings
- Click on Configure DenyList then uncheck ONLYGoogle Play services AND Google Play Store ? We let checked google, google assistants and google pay ?

Thanks in advance for your confirmation !

PS: the tutorial is at a very high level, thanks for your time and work !!!
 

LordBli

Senior Member
Jun 12, 2013
52
4
Hello everyone,

I am not sure to understand one of the last step 26th
"26. After reboot open Android Settings go to Apps and Unhide system services than find and clear all data of Google Play services and Google Play Store"

Does it means that we have to:
- Open Magisk
- Open settings
- Click on Configure DenyList then uncheck ONLYGoogle Play services AND Google Play Store ? We let checked google, google assistants and google pay ?

Thanks in advance for your confirmation !

PS: the tutorial is at a very high level, thanks for your time and work !!!
Hello !

Maybe it's too late but anyways.
After reboot just let them checked you just just need to clear the apps data in the settings
 

Top Liked Posts

  • There are no posts matching your filters.
  • 21
    Everything you do, you do at your own risk. I'm not responsible for all damages, this can also lead to loss of warranty.

    Hi,
    Probably many of you know how to do a Magisk install without TWRP, but this guide is for people who don't know and don't want to mess things up.
    I will try to show you step by step how to do it.

    Many thanks to:
    kdrag0n
    topjohnwu
    Leave them a nice feedback ;)

    !!! Before we start make sure your device is unlocked, if you don't know how to do it below is link to official Xiaomi guide !!!
    https://c.mi.com/thread-2262302-1-0.html

    Requirement
    • Xiaomi Mi Flash ver. =>3-14-0 - Needed to install all adb drivers Download
    • ADB & Fastboot tools - Could be the one built into Mi Flash tool I'll use this to make it simple
    • Magisk =>24.2 - This software is base of our rooting process Download
    • SafetyNet Fix => 2.2.1 (Zygisk) - Needed to backdoor SafetyNet fail check, at the moment it is only working method for Mi Pad 5 Download Make sure you download the Zygisk version!
    • Boot.img - You can download from official MIUI website full flashable rom and separate boot.img file from there, or use my if your Miui version is China 13.0.5, EEA 13.0.3, Global 13.0.1
    Installation
    To make it easier, Green color mean what you need to do on Tablet, Orange on PC

    1. Unzip Mi Flash tool
    2. Open folder and run XiaoMiFlash.exe, if window "Driver" won't pop-up click on the Driver tab and then "Install" button and close all windows.
    3. Connect your tablet to computer, when your tablet ask how you want use USB, choose File Transfer/Android Auto
    4. Copy to internal storage Magisk-v****.apk, safetynet-fix-v****.zip and boot.img
    5. Open File Manager on your tablet find a folder where you copied all files, and install Magisk
    6. Open Magisk app, and click on Install in section Magisk, then select "Select and Path a File", after that find your boot.img file and click on it
    7. Click "LET'S GO" button on the right side and wait until process will be finished
    8. On your computer in the tablet's storage window, go to the file specified in the application probably /Download/magisk_patched-*****
    9. Copy this file to a subfolder of Mi Flash on your computer, exactly to MiFlash2020-3-14-0\Source\ThirdParty\Google\Android and change the name of this file to boot.img
    10. Open PowerShell/Windows Terminal in this folder (Hold Shift + Right click -> Open PowerShell window here)
    11. Make sure your tablet have enabled USB debugging in Developer options Setting -> Additional settings -> Developer options -> USB debugging
    12. Turn off your tablet, then hold down Power and VOL- until the screen lights up, then release power button, if Fastboot appears, everything went fine
    13. Go back to your Terminal window and type to check if your computer see your tablet
      Code:
      ./fastboot.exe devices
      If you see answer "******** fastboot" it mean there is communication between PC and Tablet
    14. Next type this command to flash patched boot image
      Code:
      ./fastboot.exe flash boot boot.img
    15. Next type this command to reboot your device
      Code:
      ./fastboot.exe reboot
    16. Restart can take a longer time than normal
    17. Open Magisk app and check status of Magisk, if you see for exaple "Installed 24.2 (24200)" everything went fine
    18. Open Settings in right corner of app and in section App click on Hide the Magisk app then type name for hidden app, it will ask to install new app so do it
    19. Open again Magisk app and open Settings in section Magisk enable Zygisk (Beta) and Enforce DenyList
    20. Click on Configure DenyList than click on three dots in right corner and uncheck Show system apps
    21. Search for all the apps in the list below and check them. It is important to click on their name to see all modules, once you have done this click on the box to activate all of them
      Code:
      Google
       Google Assistant (I have two)
       Google Pay
       Google Play services
       Google Play Store
    22. After that reboot your tablet, and open again Magisk app
    23. On the bottom click on Modules
    24. Click on Install from storage button and find file safetynet-fix-v*******.zip, than click on it
    25. After that reboot your device one more time
    26. After reboot open Android Settings go to Apps and Unhide system services than find and clear all data of Google Play services and Google Play Store
    27. Reboot tablet last time
    If you have reached this point it means that everything has gone correctly, probably for about 3 hours you will still not be able to install Netflix and some banking applications but after this time everything will be back to normal, this is because Google's servers have detected that Magisk has been installed but that the application has been changed and Zygisk has been enabled so at the next check it notices that everything is Ok and gives access back.

    Quick explaination what happend here:
    1. Magisk has been installed and device is Rooted
    2. The application has been changed and hidden
    3. Zygisk has been activated and hidden from Google services
    4. SafetyNet-fix was installed, which restores the functionality of SafetyNet and Widevine L1, which is blocked after the installation of Magisk and unlocked Bootloader
    1
    1
    That link is down unfortunately. Can someone provide a working link? Or is it a generic process for every xiaomi device?
    Same as other Xiaomi devices. If you have problems adding your account in the developer options, try doing it while connected to USA through a VPN, that's what I had to do. Also had to update my Windows drivers through Windows update while the pad was connected to my laptop to get fastboot to work, even though adb was ok
    1
    Thank you for the guild! It works great for me! Netflix is also not available in play store in my case as well
    Use this modified SafetyNet fix module (just install it over original one):
    Original module is not yet updated.
    As always, don't forget to clear data for Google Play and Google Services.
    It will fix device integrity check and all apps in store, which require this check, will be available again.

    Also, there is no need for that many steps and reboots, and no need to use enforce or DenyList (unless some your specific apps detects root and won't work because of that).
    Just patch file in Magisk on tablet, flash it on PC, after first boot hide Magisk by changing name, turn on Zygisk, install modified SafetyNet fix module, clear data and reboot.
    1
    Unfortunately the procedure didn't work for me on EEA ROM. Once I flashed patched boot.img and rebooted, device stays stuck with MI logo and three blinking dots and doesn't boot. I let it in this state for one hour hoping that first boot just will take more time.

    I tried to reboot and re-flash patched image again, but there is no difference.
    Too bad!
    Maybe you need the boot.img to be the same version as the current one on your tablet. Or just flash into Global ROM, I believe after unlocking your bootloader you can do that by using MiFlash.