This post will show you 2 different methods for passing the SafetyNet Test on your rooted Android 12/13 device. The latest version of the OS has included plenty of new and fresh and amazing features. Right out of the box, you’ll notice the new Material Design engine, a wallpaper-based design system, the new Settings menu, and a few other accessibility features like the camera switcher. However, they are only OEM’s offerings.

If you want to breach into an unexplored area, the first step is to flash the Magisk patched boot.img or flash the Magisk app through TWRP. You will then have access to the system partition. This will enable you to flash Magisk Modules, Xposed Framework, and Substratum Themes, among several other customizations. All of these changes come at a cost.

Advertisement

What is Safety in Android?

When you successfully root your device, it will set off a safety flag. The SafetyNet API is integrated in your device by Google to determine whether or not my device has been updated. You will only be allowed to use specific types of apps if your device passes this test.

What is Safety in Android

Moreover, Google has moved away from BASIC (which was easy to evade) and has instead deployed Hardware-based Attestation. But don’t worry, there is still a convenient route out. You could spoof the existing Hardware-based BASIC Attestation, allowing you to easily pass the SafetyNet test on a rooted Android 12 handset.

What if SafetyNet Fails?

If your WideVine test fails, you will not be able to use banking apps or streaming services that depend on WideVine Certification. Games like Pokemon Go would not perform as planned.

What if SafetyNet Fails?

The basicIntegrity and ctsProfile Tests

All of these apps check the SafetyNet flag’s value and, if it is ‘Failure,’ will not allow you to use its functionality on your smartphone. For example, the basicIntegrity test verifies that the certificate is valid, while the ctsProfile test verifies that the certificate has not been revoked.

To successfully use these apps, you must pass both of these tests (passing just one will not be enough; see the figure below).

However, each new Android release makes things a little more complex. The recent Magisk invention isn’t helping the tech enthusiast either. Yet, the fact that it is an open-source platform is more than enough for us. Using the same, this post will show you how to pass SafetyNet on your rooted Android 12/13 handset.

Passing SafetyNet on Rooted Android 12/13

You can do this task in two different ways. The first method is the longer and older route, but it was our only option at the time. However, we now have an even shorter alternate, which we have detailed in Method 2 [recommended]. Both strategies should work on a wide range of Android devices [tested on Pixel 6/7 series and OnePlus 7 series].

The app should also work on Android 12 and 13 [should also work on older versions of the Android OS], so let’s get started.

METHOD 1: Pass SafetyNet using Magisk Hide Props Config [OLD]

The longer of the two methods involves spoofing the device’s fingerprint using one of the older devices that used Basic Attestation and were more susceptible to being bypassed.

STEP 1: Install MagiskHide Props Config

  • Download the MagiskHide Props Config module from GitHub/XDA.
  • Then, on your device, launch the Magisk App.

Download the MagiskHide Props

  • To install a module, tap on Install from Storage and then choose the Module.
  • When the installation is finished, press the Reboot button in the bottom right corner to restart your device.

STEP 2: Force Basic Attestation

We will now go over the process of using BASIC attestation on top of hardware-based encryption in order to make it easier for us to bypass. Here’s how you could go about it:

  • First, you will need to download and install a terminal emulator app (such as Termux) on your device.
  • Now launch it and enter the following command:
su -c props

You will now receive a Superuser Request, which you must grant.

Now it will start MagiskHide Props Config, which will be performed within the terminal. Enter the command 2 [Force BASIC Key Attestation].

[Force BASIC Key Attestation].

  • To access the Force BASIC Key Attestation page, click the link below. The value will be set to Nexus 5 by default.
  • The Nexus 6P or Pixel 3A appears to be producing the greatest outcomes, while there is no single value that guarantees success.
  • When running a rooted Pixel 4A with Android 12, I applied the Nexus 6P value to pass Safetynet. To do so, enter d [Yes, select value from device list] and press Enter.
  • To enter the code, type ‘7’ and press the Enter key. Then, write 5 [Google Nexus 6P] and press Enter.

How To Pass SafetyNet On Rooted [Android 12 - Android 13]

  • It will now verify you the value you have chosen; type y [YES] and press Enter.
  • Finally, you should reboot the device. So enter y [YES] and hit enter key.

How To Pass SafetyNet On Rooted [Android 12 - Android 13]

STEP 3: Instal Riru Module

The Riru module installation is the next step because it is necessary for STEP 5, the SafetyNet Fix Module.

  • Transfer the Riru Module to your device by downloading it from GitHub.
  • the Modules section of the Magisk App after it has been launched.

Modules section of the Magisk App after it has been launched

  • Now click Install and wait for the procedure to be completed.
  • Click the Reboot button that displays at the bottom right after you’re finished.

STEP 4: Flash SafetyNet Fix

This module will support in the implementation of proper attestation over hardware attestation, or in other words, provide the final piece of the puzzle.

  • From the links below, get the SafetyNet Fix module that corresponds to your Android version:
Android 12: Universal SafetyNet Fix Magisk Module [Credits: XDA Senior Member kdrag0n]
Android 13: Modified SafetyNet Fix Module [Credits: XDA Senior Member displax]
  • After that, install the Magisk App on your device and transfer this module there.
  • After that, select Install from Storage under Modules.

After that, select Install from Storage under Modules.

  • Search for and choose the Universal SafetyNet Fix Magisk Module. This time, the module will be flashed.
  • Click the Reboot button that displays at the bottom right after you’re finished.

STEP 5: Enforce Deny List and Enable Zygisk

Magisk Hide is now called Deny List. For those who are unaware, this is a feature that hides your device’s root access from a wide range of installed apps. So let’s enable this first, and then customize it as required.

  • Open the Magisk application on your device.
  • then press the Settings button in the top right corner.
  • The toggle next to Zygisk and Enforce Deny List should now be turned on.

next to Zygisk and Enforce Deny List should now be turned on.

  • Restarting your device will make the tweaks take effect. Launch Magisk after that, and make sure Zygisk has a YES next to it.

STEP 6: Configure DenyList

  • Select Configure DenyList from the menu in the Magisk Settings section.
  • Then choose user applications you would like to cover up from root now (optional).

Configure DenyList

  • Next, select Show System App by touching the overflow symbol located at the upper right of the screen.
  • Check the boxes next to Google Play Services, Google Play Store, Google Play Protect Services, and Google Service Framework.
Google Play Services, Google Play Store, Google Play Protect Services
Google Play Services, Google Play Store, Google Play Protect Services

NOTE: After a restart, some of the Google Service Framework might become unchecked, and Google Play Services might not appear on the DenyList. There is no need to be concerned; this is simply a UI bug [they are still present in the backend].

STEP 7: Hide Magisk App

  • Select Hide the Magisk App from the Magisk settings menu.
  • Give it a name of your choosing, and then select OK.

Give it a name of your choosing, and then select OK.

  • Now the process of hiding will start.
  • When finished, a question will appear asking if you want the app shortcut to appear on the home screen.
  • You can touch the Add to Home Screen button after selecting Yes for comfort.
How To Pass SafetyNet On Rooted [Android 12 - Android 13]
After selecting Yes for confirming the add to Home Screen option, you’ll have another button to click so that your app appears on the Home Screen.

STEP 8: Delete Play Service and Play Store Data

  • To see all apps, go to Settings > Apps.
  • Go to the Storage and Cache section of Google Play Service after choosing it.
  • Tap Manage Space > Clear All Data after that.

Clear All Data after that.

  • After doing that, return and choose Google Play Store.
  • Then select Clear Storage > OK from the Storage and Cache box.

STEP 9: Check SafetyNet Results

UPDATE 1: In the most recent release of Magisk, the SafetyNet check option was removed. Therefore, you will now need to use a third-party software for this manual. We’ll be utilizing YASNAC – Yet Another SafetyNet Attestation Checker for this manual.

  • Install YASNAC on your device by downloading it from the Play Store.
  • Launch the program after that, and then select Run SafetyNet Attestation.
select Run SafetyNet Attestation.
Before and After
  • Now, you ought to see the word “Pass” in the basicIntegrity and ctsProfile sections.

Below is a preserved version of the earlier Safetynet using Magisk check method:

  • Start by opening the Magisk App and selecting Check SafetyNet.
  • If you are running this check for the first time, Magisk will prompt you to download the proprietary code; tap OK to proceed.

download the proprietary code How To Pass SafetyNet On Rooted [Android 12 - Android 13]

  • The findings will be available to you as soon as it has downloaded.
  • It should clearly state “Success” and show a checkmark next to the results of the basicIntegrity and ctsProfile checks.

completed now. These were the processes to use on your rooted Android 12/13 device to pass the SafetyNet Test. Please post your comments and questions the if you have any about the above said methods. As soon as possible, we will respond to you with a solution.

Update for Android 13

I have chosen the Pixel 3 device and Android 1o as the OS in STEP 2 above for my Android 13-powered device. Android 1o has been tried and tested; therefore, it is better to choose that one if you are unsure.

How To Pass SafetyNet On Rooted [Android 12 - Android 13]

The results of passing SafetyNet on rooted Android 13 are linked here:

SafetyNet on rooted Android 13

METHOD 2: Pass SafetyNet without Magisk Hide Props Config [NEW]

Due to modifications provided by the creator of the Universal SafetyNet Fix Module, this is the quicker of the 2 methods because it does not call for you to flash the Magisk Hide Props Config or fake the device’s fingerprint.

Universal SafetyNet Fix Module

STEP 1: Hide Magisk App

  • Open the Magisk App, then tap the settings icon in the top right corner.
  • Next, click Hide the Magisk App, and then toggle on Allow apps from this source.

toggle on Allow apps from this source.

  • Give this Magisk app a new, random name, then click OK.
  • It will now ask for a shortcut for the home screen; select OK. [recommended]

STEP 2: Enable Systemless Hosts

  • Open the Magisk App, then tap the settings icon in the top right corner.
  • Next, select Systemless hosts.
  • Now check the Modules section to see if it was added.

How To Pass SafetyNet On Rooted [Android 12 - Android 13]

STEP 3: Enable Zygisk

  • Open the Magisk App, then tap the settings icon in the top right corner.
  • Restarting your phone after that will enable the toggle next to Zygisk.
  • Launch Magisk now, and make sure Zygisk has a YES next to it.

Zygisk has a YES next to it.

STEP 4: Configure Denylist

The traditional Magisk hide has a new name: Denylist. Apart from the 3 basic apps described below, you might use this functionality to hide root from the desired apps.

  • Launch the Magisk App and tap the settings icon in the upper right corner.
  • Then turn on the Enforce Denylist toggle. Now, select Configure Denylist.

How To Pass SafetyNet On Rooted [Android 12 - Android 13]

  • Then expand the following apps and mark all of their services.
Google Play Service
Google Play Store
Google Service Framework
Google Play Protect Service [if present]

Google Play Services, Google Play Store, Google Play Protect Services

  • Then, repeat the process for your preferred banking/payment app.

NOTE: The Google Service Framework and Google Play Services may be unchecked upon restart, and they may be missing from the DenyList. This is a UI bug that can be fixed by unchecking those boxes. There is no need to worry since these applications are still active in the backend.

STEP 5: Flash Universal SafetyNet Fix Module

  • Download the new Universal SafetyNet Fix module from the link provided below:
safetynet-fix-v2.3.1.zip [Source: GitHub]
  • Then open Magisk, navigate to the Modules menu, and select Install from Storage.
  • Navigate to and select the downloaded safetynet module.
  • It is now going to be flashed. When finished, press the Reboot button.

STEP 6: Delete Data

You should now erase the app data for all apps from which you have concealed root. These contain Google apps as well as the desirable apps of your choosing.

  • Go to Settings > Apps and then pick Google Play Service.
  • Then, in its Storage area, select Manage Space > Clear all data.
  • Then, if applicable, erase the data from the Google Play Store and the Google Play Protect Service.
  • Then, in the top right, hit the overflow icon and select Show System.

How To Pass SafetyNet On Rooted [Android 12 - Android 13]

  • This will launch the system applications. Remove all data from Google Service Framework.
  • Finally, erase the data from the banking/payment apps where you’ve concealed root.
  • After that, restart your device [required].

STEP 7: Check SafetyNet Test Results

  • Install the YASNAC app from the Play Store.
  • Then start it and select Run SafetyNet Attestation.
  • Both Basic Integrity and CTS Profile Match should now return a Pass.

How To Pass SafetyNet On Rooted [Android 12 - Android 13]

That’s all. These are the methods for installing SafetyNet on a rooted Android 12/13 device. If you have any questions about the preceding stages, please leave those in the comments. We will reply as soon as possible with a solution.

This is what you need to do to install SafetyNet on an Android 12/13 device that has been rooted. If you have any questions about the preceding steps, please leave them in the comments. We’ll reply as soon as possible with a solution.

LEAVE A REPLY

Please enter your comment!
Please enter your name here