Remove All Ads from XDA

[Magisk v14.0] Universal SafetyNet Fix | Universal Hide [v2 Beta 5]

540 posts
Thanks Meter: 813
By Deic, Senior Member on 3rd May 2017, 01:42 AM
Post Reply Email Thread
Universal SafetyNet Fix
This module tries to pass SafetyNet on devices that triggered it.

It works by doing some magic with the system props, which are changed to match with the required by Google to pass it's security test (SafetyNet). However, that is not all...

The real magic here is the Universal Hide part, which is a custom implementation of Magisk Hide. It basically does the same magic as Magisk Hide, but in a shell-y simple way.
It reads the file Magisk Hide uses to store apps that should be hidden and then monitors logcat until a hidden app is opened. Once this happens, it enters it's mount namespace to unmount all Magisk related mount points.
That way you can hide root or bypass SafetyNet for almost to all apps. App's that use custom checks to detect root are one of the few exceptions as we cannot anticipate what they check.

Why did I basically duplicated Magisk Hide? Well, Magisk Hide doesn't work properly for all devices, so this is a fast solution until topjohnwu fix all the issues.

  • Magisk v13.x/14.0
  • MagiskSU

Download Beta
Download Stable (very outdated)
Download uninstaller
Source code

  1. Flash the .ZIP from TWRP
  2. Reboot

If you feel I helped you, you can buy me a coffee here.


  • Fixed Magisk Hide detection for Magisk v12

  • Module is now universal, not for Xiaomi devices only
  • Module refactored
  • Magisk v13 beta support
  • Added some props
  • Added SafetyNet fix for Magisk v12
  • Check if Magisk Hide was properly started and try to fix
  • Zip signed

  • Fixed logging code: ignore output of wait for unmount loop

  • Added new supported devices: Redmi Pro, Mi 4S, Redmi 4X
  • Changed Redmi Note 3 MTK prop
  • Changed wait for Magisk SafetyNet check to a function and run in a subshell

  • Fixed Redmi Note 3 MTK device name typo

  • Fixed forgotten set_prop function calls

  • Added new supported devices: Mi Note Pro, Redmi 1, Redmi 1S
  • Fixed Mi 5 prop
  • Removed run enable script
  • Code improved

  • Added new supported devices: Mi 6
  • Added "" prop
  • Removed reinitiate Magisk Hide
  • Added run Magisk Hide when boot & service steps are completed
  • Improved log code: waiting to SafetyNet test and Magisk Hide folder unmount, silence some shell output

  • Added new supported devices: Mi Pad, Mi Note, Mi 3/Mi 4, Mi 2/2S, Mi Pad 2, Mi Pad 3
  • Added code to reinitiate Magisk Hide

  • Added new supported devices: Redmi 4, Redmi 4 Prime, Redmi 4A

  • Added new supported devices: Redmi 3/Prime, Mi 4i
  • Added code to generate useful logs and enable Magisk Hide if not enabled
  • Changed to use resetprop directly from script @laggardkernel
  • Removed build description because is useless

  • Added new supported devices: Redmi 2/4G, Redmi 2 Prime
  • Added some extra code to support device with different model name

  • Added new supported devices: Mi 4c, Mi 5c, Redmi Note 3 Special Edition, Mi Note 2, Redmi Note 4X

  • Added new suported devices: Mi Max, Mi Max Prime, Redmi 3S/Prime/3X

  • Initial release
  • Suported devices: Redmi Note 2, Redmi Note 3 MTK, Redmi Note 3 Qualcomm, Redmi Note 4 MTK, Mi 5, Mi 5s, Mi 5s Plus, Mi MIX

Thank you
The Following 166 Users Say Thank You to Deic For This Useful Post: [ View ] Gift Deic Ad-Free
3rd May 2017, 05:21 PM |#2  
cFendez's Avatar
Junior Member
Thanks Meter: 2
Thanks for the module. I hope you add the support of Mi Max!
The Following User Says Thank You to cFendez For This Useful Post: [ View ] Gift cFendez Ad-Free
3rd May 2017, 07:55 PM |#3  
Senior Member
Thanks Meter: 100
It's not working for me on redmi note 4 mtk latest (7.4.27) unlocked bootloader fresh install with magisk v12. Don't know if there is a difference to the snapdragon version...

Edit: sadly I've been waiting for this since I bought this phone! Still get profile cts mismatch

Edit2: files added
Attached Files
File Type: log post-fs-data.log - [Click for QR Code] (1.4 KB, 524 views)
File Type: log system.log - [Click for QR Code] (243 Bytes, 310 views)
3rd May 2017, 08:00 PM |#4  
Senior Member
Thanks Meter: 28
Not working on my mi5 with MIUI 8.2.2 by Multirom. wrong CTS profile error
The Following User Says Thank You to damned91 For This Useful Post: [ View ] Gift damned91 Ad-Free
3rd May 2017, 08:00 PM |#5  
Senior Member
Thanks Meter: 24
Waiting for Redmi 3s.
Thanks for your work.

Gesendet von meinem Redmi 3S mit Tapatalk
3rd May 2017, 09:12 PM |#6  
kleytonhunter's Avatar
Flag recife
Thanks Meter: 7
CTS profile mismatch on my redmi note 3 pro
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20170503-171308.png
Views:	5396
Size:	77.8 KB
ID:	4137131  
3rd May 2017, 09:15 PM |#7  
Senior Member
Flag Greater London
Thanks Meter: 267
Originally Posted by Deic

Fix SafetyNet on Xiaomi devices with MIUI Developer/Beta ROM & Custom ROM like LOS, RR, (etc...) replacing the build description & fingerprint prop to MIUI Stable one.

Sorry, but what is SafetyNet, and why do I need/want to fix it?
3rd May 2017, 09:19 PM |#8  
Antyhaker's Avatar
Senior Member
Thanks Meter: 29
I'm waiting for Mi4c
3rd May 2017, 09:51 PM |#9  
Senior Member
Thanks Meter: 54
Did not work for me. I am running 030517 Nitrogen 7.1.2 on a Redmi Note 3 Pro
3rd May 2017, 11:01 PM |#10  
C114's Avatar
Senior Member
Flag Szczecin
Thanks Meter: 54
Kenzo. RR Official Nightlies 7.1.1 2017/04/14 build
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20170503-235709.png
Views:	2760
Size:	66.7 KB
ID:	4137244  
3rd May 2017, 11:45 PM |#11  
_ossie_'s Avatar
Senior Member
Flag Melbourne
Thanks Meter: 74
Originally Posted by kleytonhunter

CTS profile mismatch on my redmi note 3 pro

Same here.

Anyone got this to work? Pls post screenshots as proof.
Post Reply Subscribe to Thread

cts profile match, magisk, magiskhide,, safetynet, universal hide

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes