In this guide, we will show you the steps to pass the Play Integrity test on your Android device when it is rooted via Magisk or KernelSU. The technical domain in the Android ecosystem has witnessed quite a few changes, which could either be categorized as the need of the hour or the final nail in the coffin, depending on which side of the fence you belong.
For generic users, the new security improvements and stringent privacy measures that Google is implementing are surely a welcome move. However, if we talk about the tech enthusiasts, they too would surely love these changes, but unfortunately, it is proving to be the biggest roadblock in their journey.
One after another, the Silicon Valley giant is bringing in new security measures that bring a slew of caveats, thereby forcing users into thinking about whether they should actually root their device or not. With that said, there’s some light at the end of the tunnel as the developers are always up to this task and manage to find a nifty workaround through which you can easily bypass the restrictions imposed by Google.
And that has been the case this time around as well. So in this guide, we will make you aware of the tweak that will help you pass the Play Integrity test on your Android device when it is rooted via Magisk or KernelSU. But first, let’s try and understand what exactly is a Play Integrity Test and why you should pass it.
What is the Play Integrity Test on Android
Play Integrity is an API that is used by applications to determine the device’s compatibility and security state. It consists of three tests: Basic Integrity, Device Integrity, and Strong Integrity, out of apps use the first two tests to determine if your device is rooted or not. If you are on stock firmware, non-rooted, and locked bootloader, then your device will pass all three tests. On the other hand, a rooted device will straightaway fail all three tests.
Do note that Strong Integrity is not possible to pass even if you apply our fix. This is because you can only pass that test on a locked bootloader, which isn’t possible on a rooted device. Fortunately, none of the apps uses that test to determine the root on your device, they only use the first two tests [Basic Integrity and Device Integrity]. Moreover, initially, the apps used the SafetyNet API to carry out these tests which required you to pass Basic Integrity and CTS Profile Match.
However, Google then gave an ultimatum to all apps that they should now switch the SafetyNet API switch over to the Play Integrity API beginning next year. That is the reason why we no longer focus on passing the former test and our ultimate aim is only to pass the latter. So with that in mind, let’s get started with the steps to pass the Play Integrity test on your rooted Android device via Magisk or KernelSU.
How to Pass Play Integrity Test via Magisk
- Launch Magisk tap on the settings icon, and then enable Zygisk.
- Then tap on Hide the Magisk App > Enable the toggle next to Allow apps from this source.
- Now give it a new random name and hit OK.
- It will now ask for a home-screen shortcut, choose according to your need.
- Then enable the toggle next to Enforce Denylist. Now tap on Configure Denylist.
- 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]
- Likewise, do the same for the banking/payment apps of your choice.
- Now download the latest version of Play Integrity Fix from GitHub.
- After that, flash the module via Magisk and then restart your device.
- Now delete the data of the Google Services Framework, Google Play Store, Google Play Service, and Google Play Protect Service [if present].
- Finally, delete the data of the banking/payment app of your choice.
- Once done, restart your device [compulsory] and then check out the result.
- That’s it. You should now pass the Play Integrity Test via the Magisk app.
How to Pass Play Integrity Test via KernelSU
Since KernelSU doesn’t come built-in with Zygisk [which is among the most important requirements when it comes to passing the test], you’ll have to take the help of a module to get this job done. So refer to the below steps for that:
- First off, download the Zygisk Next module from its GitHub page.
- Now launch KernelSU, go to Modules, and tap Install at the bottom.
- After that, select the Zygisk Next module ZIP and it will be flashed.
- Now, download the Play Integrity Fix module from its GitHub page.
- Likewise, flash this module as well and then restart your device once.
- Now, delete the data from the following Google Apps [it’s compulsory]
Google Play Store Google Play Service Google Play Protect Service Google Services Framework [if present]
- Finally, restart your device once again and then check out the results.
That’s it. These were the steps to pass the Play Integrity test on your Android device when it is rooted via Magisk or KernelSU. 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.