Home > Tips and Tricks

How to Pass SafetyNet on Rooted Xiaomi/Poco/Redmi

In this guide, we will show you the steps to pass SafetyNet on your rooted Xiaomi/Poco/Redmi device. When it comes to custom development, then these sets of devices are among the most active players in custom development. Whether it’s flashing custom ROMs and kernels, gaining administrative access by rooting your device via Magisk, or welcoming abode a plethora of mods, the possibilities stand endless.

However, this is just one side of the coin. Carrying out these tweaks brings in a few uninvited risks as well. Among them, it’s the tripping of the SafetyNet flag that is usually the most troublesome experience for the tech enthusiast. Once that happens, you wouldn’t be able to use any banking and payment apps and even some games like Pokemon Go wouldn’t function [due to location spoofing].

Fortunately, there does exist a nifty workaround using which you could easily pass SafetyNet on your rooted Xiaomi/Poco/Redmi device. And in this guide, we will show you how to do just that. So without further ado, let’s get started.

What is SafetyNet and why my Device should Pass it?

For the unaware, SafetyNet is an API that is embedded into your device by Google in order to check if your device has been modified or not. So if your device has been tampered with [rooted], the test will fail and you will not be able to use banking and payments apps or try out games like Pokemon Go. Likewise, Widevine L1 Certification will drop to L3, thereby resulting in your inability to stream DRM content in Full HD.

pass safetynet rooted xiaomi

To make it even more difficult for us to pass this test, Google has switched from the Basic to the Hardware-based Attestation. But by changing the device’s fingerprint to an older Pixel device, you could spoof your device to basic attestation. This in turn will allow you to easily pass the Safetynet and hide root from the desired apps on your rooted Xiaomi/Poco/Redmi. So without further ado, let’s check out how all of this could be carried out.

How to Pass SafetyNet on Rooted Xiaomi/Poco/Redmi

pass safetynet rooted xiaomi

The below instructions are listed under separate sections for ease of understanding. Make sure to follow the same sequence as mentioned. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.

STEP 1: Hide Magisk App

  1. Launch the Magisk App and tap on the settings icon at the top right.
  2. Then tap on Hide the Magisk App > Enable the toggle next to Allow apps from this source.pass safetynet rooted xiaomi
  3. Assign a new random name to this Magisk app and hit OK.
  4. It will now ask for a home-screen shortcut, tap OK [recommended].pass safetynet rooted xiaomi

STEP 2: Enable Systemless Hosts

  1. Launch the Magisk App and tap on the settings icon at the top right.
  2. Then tap on Systemless hosts.
  3. Now go to the Modules section and verify that it has been added.pass safetynet rooted xiaomi

STEP 3: Enable Zygisk

  1. Launch the Magisk App and tap on the settings icon at the top right.
  2. Then enable the toggle next to Zygisk and restart your phone.
  3. Now launch Magisk and make sure that it says YES next to Zygisk.pass safetynet rooted xiaomi

STEP 4: Flash Universal SafetyNet Fix Module

  1. Download the new Universal SafetyNet Fix module from below:
    safetynet-fix-v2.3.1.zip [Source: GitHub]
  2. Then launch Magisk, go to the Modules section and tap on Install from Storage.pass safetynet rooted xiaomi
  3. Navigate to the downloaded safetynet module and select it.
  4. It will now be flashed. Once done, hit Reboot.

STEP 5: Configure Denylist

Denylist is the new name for the traditional Magisk hide. You could use this functionality to hide root from the desired apps, apart from the three compulsory apps listed below.

  1. Launch the Magisk App and tap on the settings icon at the top right.
  2. Then enable the toggle next to Enforce Denylist. Now tap on Configure Denylist.pass safetynet rooted xiaomi
  3. Then expand the following apps and checkmark all its services
    Google Play Service
    Google Play Store
    Google Service Framework
    Google Play Protect Service [if present]

    pass safetynet rooted xiaomi

  4. After that, do the same for the banking/payment app of your choice.
  5. NOTE: Sometimes, the Google Service Framework might get unchecked and Google Play Services might be missing from the DenyList. This is just a UI bug and nothing to worry about [as they are still active in the backend].

STEP 6: Delete Data

You will now have to delete the app data of all the apps from which you have hidden root. These include the compulsory Google apps and the desired apps of your choice.

  1. Head over to Settings > Apps and select Google Play Service.
  2. Then go to its Storage section and tap on Manage Space > Clear all data.
  3. After that, delete the data of Google Play Store and Google Play Protect Service [if present].
  4. Then tap on the overflow icon at the top right and select Show System.pass safetynet rooted xiaomi
  5. This will bring up the system apps. Select Google Service Framework and delete its data.
  6. Finally, delete the data of the banking/payment apps from which you have hidden root. Once done, restart your device [compulsory].

STEP 7: Check SafetyNet Test Results

  1. Download and install the YASNAC app from Play Store.
  2. Then launch it and tap on Run SafetyNet Attestation.
  3. You should now get Pass under both Basic Integrity and CTS Profile Match.

    pass safetynet rooted xiaomi
    SafetyNet Pass on Poco F4

That’s it. These were the steps to pass SafetyNet on your rooted Xiaomi/Redmi/Poco. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.


Share: