UPDATE – JANUARY, 2023 – UPDATED SAFETYNET FIX BY kdrag0n (Magisk 24 and newer)
Kdrag0n released a new version at the beginning of 2023, and here are the highlights of the v2.4.0 –
- Play Integrity bypass without breaking device checks or causing other issues
- Disabled use of hardware attestation on Pixel 7 and newer (@anirudhgupta109)
- Updated instructions for newer Android and Magisk versions
- Better debugging for future development
Kdrag0n mentioned that he wanted to make sure that this module won’t cause any unnecessary breakage. The spoofing will happen dynamically at runtime and only when necessary, minimizing the adverse effects.
DOWNLOAD UNIVERSAL SAFETYNET FIX v2.4.0
UPDATE – JUNE 2022 – UPDATED SAFETYNET FIX BY kdrag0n (Zygisk only)
After almost six months, Kdrag0n has released the new version of the SafetyNet fix, and this one only supports Zygisk (Magisk 24 and newer). Here are the highlights of this new version –
- Fixed fingerprint on OxygenOS/ColorOS 12
- Support for Magisk 24+ module updates
- Restored support for Android 7
DOWNLOAD UNIVERSAL SAFETYNET FIX v2.3.1
UPDATE – DECEMBER 2021 – UNIVERSAL SAFETYNET FIX BY kdrag0n (Zygisk and Riru versions)
kdrag0n has released new versions of the Universal SafetyNet Fix, both Riru and Zygisk versions. So what to choose?
Well, for those using Magisk Canary, go with the Zygisk Version.
For those using the stable Magisk, go with the Riru version. Remember that if you go with the Riru version of this universal SafetyNet fix, you must install the Riru module through Magisk Manager.
Here are the links to the two versions –
DOWNLOAD UNIVERSAL SAFETYNET FIX v2.2.1 (Zygisk)
DOWNLOAD UNIVERSAL SAFETYNET FIX v2.2.1 (Riru)
Android versions 7–12 are supported, including OEM skins such as Samsung One UI and MIUI.
UPDATE – SEPTEMBER 2021 – NEW FIX FOR SAFETYNET FAILED ISSUE
So recently, for some reason, SafetyNet has started failing even after installing the below-mentioned Universal Fix by kdrag0n. Thanks to TeamFiles on Telegram., we have another fix that works for this new issue. This fix requires you first to download a few files. Here are the ones you need to download and keep on your phone before starting with the steps –
- Riru – Latest Release
- LSPosed – Latest Release
- XPrivacyLua – Download the Apk
You can also download a Zip file that has all these three files included in it. Here is the link to that.
Before starting, make sure you back up everything as this fix has not been tested for all the devices, so it may cause issues in your phone. Also, make sure the latest Stable version of Magisk is there on your phone. We won’t be responsible for any damage happening to your phone.
Here are the steps –
- First, go to Magisk and install the Riru Module. Once the installation succeeds, come back to the modules page. Do not reboot yet!
- Next, install the LSPosed Module. Once that installs successfully, reboot your phone. This is important! Do not reboot in the first step.
- Once the phone reboots, you will see a new LSPosed app installed.
- Now, you need to install the third apk file that you downloaded. Once that installs, go to the LSPosed app and go to Modules.
- There, choose the XPrivacyLua and ensure you “Enable Module.” Initially, make sure the “System Framework” and “Settings Storage” options are checked.
- Now, go to the top right and tap on the three-dot menu. Select “Hide” and uncheck the “System Apps.”
- So now, you need to scroll down and find Google Play Services among all the apps. Just Check that. Now Reboot your phone again.
- When your phone reboots, you must go back to the LSPosed app and ensure that three options are checked in the XPrivacyLua module. There are – “System Framework,” “Settings Storage,” and “Google Play Services.”
- Once that is all right, close LSPosed, and there will be another app installed on your phone named “XPrivacyLua.” Open that. Click “I Agree.”
- Here, find Google Play Services and tap on that. Now, you need to check only one option there. And that’s “Use Tracking.” That should be the last option there.
- Finally, Clear all the data and cache of the Google Play Store and Google Play Services. Also, Hide Magisk and change its name.
- And now, do a final reboot!
And that’s it! If everything goes well, you will no longer have the SafetyNet Failed Issue on your phone, and the Play Store will show Device is Certified. If Banking apps are not working even after fixing the SafetyNet with this method, then you need to check “Use Tracking” for those apps in “XPrivacyLua.” Just like what we did with Play Services. And then, the same steps, i.e., clear data and reboot. For a better understanding, here is the full video tutorial by Munchy –
UPDATE – JULY 4, 2021 – UNIVERSAL FIX FOR SAFETYNET (ALL THANKS TO kdrag0n)
kdrag0n has shared a Universal Fix for Google SafetyNet on Android devices with hardware attestation and unlocked bootloaders. You can now install a Magisk Module that will fix the ctsProfile Failed issue. On the official Github page, kdrag0n has mentioned that –
This Fix defeats both hardware attestation and the new CTS profile updates, without any changes to device or model names, as long as you can pass basic attestation (i.e. fingerprints). No device-specific features (such as the Pixel-exclusive Google Assistant design) will be lost. MagiskHide is required if the device is rooted. Android versions 8–11 are supported. Heavy OEM skins are not officially supported, but they may work depending on your luck and the particular ROM in question.
Anyways, here are the steps –
- Download this Magisk Module (For Android 8-11) – SAFETYNET-FIX-v1.2.0
- Open Magisk and go to the Modules tab
- Install the Magisk Module that you downloaded
- Reboot your phone, and that’s it.
- Added support for Android 12 Beta 2
- Fixed boot loop after major Android updates
PREVIOUS VERSIONS OF THE FIX –
NOTE – DONT INSTALL MODULE FOR Android 11 on Android 10 and vice versa as it will result in BOOTLOOP !!!
- SAFETYNET-FIX-v1.1.1(ANDROID 8-11)
- SAFETYNET-FIX-v1.1.0 (ANDROID 8 – 11)
- SAFETYNET-FIX-v1.0.2 (ANDROID 11)
- SAFETYNET-FIX-v1.0.2 (ANDROID 10)
- SAFETYNET-FIX-v1.0.0 (ANDROID 11)
UPDATE – HERE IS ANOTHER METHOD THAT WILL HOPEFULLY HELP YOU FIX THE CTS PROFILE FALSE ISSUE
NOTE – TRY THESE STEPS ON YOUR OWN RISK. WE WON’T BE RESPONSIBLE IF ANYTHING GOES WRONG.
Here are the steps –
- First, go to the Google Play Store & download “Termux,” an Android terminal emulator and Linux environment app.
- Next, open Magisk Manager & from the left side menu and select the “Downloads” option.
- There, you need to Install two Magisk Modules – Busybox for Android NDK & MagiskHide Props Config.
- You can either Install one Module & then reboot and then Install the other, or Install One, go back, install the second, and then reboot. Both will work.
- Once the phone reboots, we need to do one final thing, which is the most important step. Before moving to the next step, check if both modules are shown as installed or not in Magisk Manager.
- Open the Termux app & then type “su” and press Enter. This will grant Superuser Rights to the app.
- Next, type “props” & press Enter. You will see a lot of options & numbers in front of them to choose from.
- You need to choose the option that says “Edit Device Fingerprint.” It should be the Number “1,” but double-check it on your device.
- Enter that Number & press Enter.
- Again, you’ll see some options & from there, choose the one that says “Pick a certified fingerprint.” This time, instead of numbers, you will see letters in front of each option like “f,” “v,” “s,” “b,” etc. Enter the letter in front of the option (Pick a Certified Fingerprint) & press Enter.
- Now, you’ll see a long list of various Smartphone companies, so from here, you need to choose your phone’s company. For Example, if your phone is the Asus Zenfone Max Pro M1, choose “Asus.” Here also, you need to type the number in front of the company name & then press Enter.
- Now, it’ll show you various devices from that company. If your device is there on the list, you’re good to go. Otherwise, you’re not lucky, so you will have to wait for another method.
- Select the number in front of your Phone’s name & then press Enter.
- Finally, it will ask if you want to continue. If you have followed everything above & selected the right options, write “y” & press Enter.
- Finally, press “y” to reboot your device & press Enter. Now, your phone will reboot.
After all these steps, you will see that in the Magisk Manager, it no longer says “false” in front of the ctsProfile option. Also, in the play store, it’ll say “Device in Certified.” Hopefully, you will also be able to use Payment apps like Google Pay on your device (Hopefully).
Thanks to Crazy Customization (YouTube) for the video tutorial.
UPDATE: 2020 – IN MARCH 2020, GOOGLE MADE SOME CHANGES THAT RESULTED IN MAGISK NOT BEING ABLE TO PASS SAFETYNET. HERE IS A WORKAROUND FOR THAT TO FIX THE CTS PROFILE FALSE ERROR (SAFETYNET FAILED).
We will use Xposed Framework for the Workaround, but you need to have your device rooted via Magisk and have the Magisk Manager installed on your phone since we need the Magisk Modules. Now, there is no way to know if Xposed Framework will work on all the devices, so there are chances of it not working on your device.
First of all, here are all the files that you need to download on your device –
- LATEST MAGISK
- HIDDENCORE XPOSED MODULE
- MAGISK RIRU-CORE MODULE ZIP FILE
- EDEXPOSED SANDHOOK OR YAHFA VERSION (Whichever works for you. We suggest trying Yahfa first).
- EdXPOSED MANAGER APK FILE
- RIRU MANAGER APK
Table of Contents
HERE ARE THE STEPS TO FIX THE MAGISK CTS PROFILE FALSE ERROR WITH THE NEW METHOD
- First, Install Riru Manager. If you get the Unknown Sources error, enable ‘Allow from this source and Install it.
- Once you install it, go to Magisk Manager, then, from the left side menu, go to the Modules section. Tap on the Plus Button.
- If you don’t have the ‘Show Internal Storage’ option enabled in File Manager, tap on the three dots in the top right corner and select it. In case it is already enabled, you will see the ‘Hide Internal Storage’ option in its place. So you don’t need to do anything.
- Navigate to the folder in the internal storage where you have all the downloaded files, and then select the ‘MAGISK RIRU-CORE’ ZIP file. Once installed, Reboot the phone. (Check the Modules section in the Magisk Manager to see if the module has been installed properly. You will see a checkmark if it is installed successfully).
- In the App Drawer, you will now see a new app called ‘Riru.’ Open it, and if it says ‘Everything Looks Fine,’ you’re all set to follow the next steps. If you get any errors, try installing Riru Module again.
- Now, once again, go to the Magisk Manager > Modules and then press the Plus button. Now, we need to install the ‘EdExposed Module,’ and as mentioned above, there are two versions to choose from. You have to try and see which one works for your device. We will recommend starting with the ‘Yahfa’ version first. Once again, once installed, reboot the phone. After reboot, once again, confirm if the module is installed properly.
- Go to the File Manager and install the ‘EdExposed Manager’ via the APK file. You will see the App in the App Drawer.
- Open it to see if there are any errors or not. If there are any, the ‘Yahfa’ version didn’t work. So, in that case, go to the Module section, remove the Yahfa version, reboot the phone, and then install the ‘Sandhook’ version.
- Finally, install the ‘HiddenCore’ Xposed Module via its APK file. Now, go to ‘EdExposed Manager,’ swipe from the left side, select the ‘Modules’ option, then enable the ‘HiddenCore’ Module. Now, reboot your phone.
- After Reboot, you should check if the ‘HiddenCore’ module has been enabled successfully in the EdExposed Manager.
Well, that’s it! Now, go to Magisk Manager, tap to start the SafetyNet Check, and see that the ‘ctsProfile’ shows as True! This means we successfully did the SafetyNet Bypass.
NOTE THAT IF THIS METHOD ALSO DOESN’T WORK, THEN WE WILL HAVE TO WAIT FOR THE DEVELOPERS TO FIND ANOTHER FIX FOR THIS.
Props to ‘Munchy‘ for sharing this method on his YouTube Channel.
This detailed guide was about fixing the CTS Profile Mismatch Error or Magisk Basic integrity False error even with Magisk installed. If the steps mentioned above don’t work, you need to start from scratch, i.e., flash Stock ROM, install TWRP, flash Magisk ZIP and do the same thing again. Did the steps work for you? Do let us know via the comments section.
What is CTS profile mismatch?
CTS means Compatibility Test Suite & CTS Profile Mismatch is an error that causes SafetyNet check to fail, even if you have Magisk on your device.
What is the SafetyNet Check?
Google Developed SafetyNet & it is an API (Application Programming Interface) that is used to detect if a certain device is in a good state or not.
How Do I Fix How do I fix Magisk SafetyNet?
1. Use MagiskSu2. Try unSU3. Turn OFF USB Debugging4. Set Selinux Back to Enforcing5. Try a Custom Kernel
How do I Enable Magisk Hide?
Open Magisk Manager App, then swipe from the left & select Magisk Hide. Now, you can turn on and off it for certain apps.