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.
Information
Check this thread if you need more information: https://forum.xda-developers.com/apps/magisk/guide-magisk-troubleshooting-t3641417
Please DO NOT share the module itself or the download link, share the thread only.
Requeriments
Magisk v13.x/14.0
MagiskSU
Links
Download Beta
Download Stable (very outdated)
Download uninstaller
Source code
Installation
Flash the .ZIP from TWRP
Reboot
Donations
If you feel I helped you, you can buy me a coffee here.
Changelog
v1.10.1
Fixed Magisk Hide detection for Magisk v12
v1.10
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
v1.9.1
Fixed logging code: ignore output of wait for unmount loop
v1.9
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
v1.8.2
Fixed Redmi Note 3 MTK device name typo
v1.8.1
Fixed forgotten set_prop function calls
v1.8
Added new supported devices: Mi Note Pro, Redmi 1, Redmi 1S
Fixed Mi 5 prop
Removed run enable script
Code improved
v1.7
Added new supported devices: Mi 6
Added "ro.bootimage.build.fingerprint" 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
v1.6
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
v1.5
Added new supported devices: Redmi 4, Redmi 4 Prime, Redmi 4A
v1.4
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
v1.3
Added new supported devices: Redmi 2/4G, Redmi 2 Prime
Added some extra code to support device with different model name
v1.2
Added new supported devices: Mi 4c, Mi 5c, Redmi Note 3 Special Edition, Mi Note 2, Redmi Note 4X
v1.1
Added new suported devices: Mi Max, Mi Max Prime, Redmi 3S/Prime/3X
v1
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
@YashdSaraf for their amazing built Busybox binaries.
@Didgeridoohan for the help they brings.
@chhapil for their uninstaller.
@laggardkernel for their little contribution to the module.
@hipio for helping with this thread and moderating the Telegram group.
And all who donated me, thanks you!
Thanks for the module. I hope you add the support of Mi Max!
It's not working for me on redmi note 4 mtk latest (7.4.27) xiaomi.eu 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
Not working on my mi5 with MIUI 8.2.2 by Multirom. wrong CTS profile error
Waiting for Redmi 3s.
Thanks for your work.
Gesendet von meinem Redmi 3S mit Tapatalk
CTS profile mismatch on my redmi note 3 pro
Deic said:
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.
Click to expand...
Click to collapse
Sorry, but what is SafetyNet, and why do I need/want to fix it?
I'm waiting for Mi4c
Did not work for me. I am running 030517 Nitrogen 7.1.2 on a Redmi Note 3 Pro
Kenzo. RR Official Nightlies 7.1.1 2017/04/14 build
kleytonhunter said:
CTS profile mismatch on my redmi note 3 pro
Click to expand...
Click to collapse
Same here.
Anyone got this to work? Pls post screenshots as proof.
Antyhaker said:
I'm waiting for Mi4c
Click to expand...
Click to collapse
Here https://forum.xda-developers.com/ap...systemless-t3432382/post71955550#post71955550
_ossie_ said:
Same here.
Anyone got this to work? Pls post screenshots as proof.
Click to expand...
Click to collapse
after activating magisk hide on magisk config i passed on safetynet test
Working well on Mi5 with Global beta 7.4.27
Device appears certified as well in play store
:good:
DarthJabba9 said:
Sorry, but what is SafetyNet, and why do I need/want to fix it?
Click to expand...
Click to collapse
All expained here:
https://www.google.pl/amp/s/www.how...d-other-apps-dont-work-on-rooted-devices/amp/
I know you try to run the post-fs-data.sh immediately after installation. But it is still a little weird that, all the changes in system.prop, the properties written by post-fs-data.sh during boot, will be loaded at next boot. How about dropping the system.prop and loading the properties by post-fs-data.sh directly?
https://github.com/DeicPro/xiaomi-safetynet-fix/pull/1
cFendez said:
Thanks for the module. I hope you add the support of Mi Max!
Click to expand...
Click to collapse
chucky8 said:
Waiting for Redmi 3s.
Thanks for your work.
Gesendet von meinem Redmi 3S mit Tapatalk
Click to expand...
Click to collapse
Antyhaker said:
I'm waiting for Mi4c
Click to expand...
Click to collapse
Support added, don't forget to enable Magisk Hide from Magisk Manager settings.
Tell me the result, enjoy!
laggardkernel said:
I know you try to run the post-fs-data.sh immediately after installation. But it is still a little weird that, all the changes in system.prop, the properties written by post-fs-data.sh during boot, will be loaded at next boot. How about dropping the system.prop and loading the properties by post-fs-data.sh directly?
https://github.com/DeicPro/xiaomi-safetynet-fix/pull/1
Click to expand...
Click to collapse
These props are read before of run resetprop from post-fs-data. My first step was as you did it and I had to do as is now.
please push the module to Magisk Repo
chhapil said:
please push the module to Magisk Repo
Click to expand...
Click to collapse
I did it and waiting to topjohnwu will accept it.
Related
Code:
DWYOR
This module is based on @AdrianDC idea to simply make a patch for Low_RAM property. I made it as a Magisk Module in order to not tampering with system partition.
@AdrianDC thread: Here
This module will change the UI behaviour of Android to Android Go edition.
Features affected by the low-ram property:
Flat recent / multitasking UI, multi-users disabled, high-end graphics disabled, less recent apps cache, multi-windows disabled, minor notification icons changes, less logger buffer sizes (devs), no apps notifications access / zen access / VR listeners / picture in picture (PIP) accesses.
Tested on Redmi 3S (Land) with Nitrogen OS (Android 8.1.0)
XDA:DevDB Information
[Magisk Module] [MOD] Low-RAM Property Patcher for Android, Tool/Utility for all devices (see above for details)
Contributors
andriana936, AdrianDC
Version Information
Status: Stable
Current Stable Version: 1
Stable Release Date: 2018-01-25
Created 2018-01-25
Last Updated 2018-01-25
Firstly thanks, great work.
Just a heads-up flashing on los 14.1 on Galaxy tab 2 10.1 gives laggs as hell
I know only Oreo is supported but why don't give a try
Gesendet von meinem ONEPLUS A3003 mit Tapatalk
Flashed on Redmi 2 (8gb variant) aex 8.1 Rom and it is working. Thank you...
working on Moto E lte 2015 LOS 15.1
Rawwrius01 said:
I know only Oreo is supported but why don't give a try
Click to expand...
Click to collapse
This property (...low_ram) is supported since 4.x afaik.
Dear xda users, could you tell me how to flash it please?
I tryed to flash it via TWRP and it bring me error on my HTC desire 620.
Kryspus said:
Dear xda users, could you tell me how to flash it please?
I tryed to flash it via TWRP and it bring me error on my HTC desire 620.
Click to expand...
Click to collapse
This is a magisk module. Go to that section and press the plus symbol.
Thanks for this! I installed it and I love the different recent apps screen. Technically I probably don't need the low ram config with 2 GB of ram, but I like it so far. Only potential downside for me is loosing the pip feature.
Any chance to support sdk28? Installer say that only works on Oreo ?
Sent from my ALICE using XDA Labs
Ace42 said:
This is a magisk module. Go to that section and press the plus symbol.
Click to expand...
Click to collapse
Can anyone please, tell me where I can find a twrp flashable zip of this file???
SAVITAR B. said:
Can anyone please, tell me where I can find a twrp flashable zip of this file???
Click to expand...
Click to collapse
https://mega.nz/#F!SxNRSQgY!GZMshOvO-i5hZyF11KdyGw
Enviado desde mi Moto G Play mediante Tapatalk
[Deleted post]
Hori873 said:
I just finished enabling it on my Nexus 5X with Pixel Experience ROM (Android 9 Pie) and it doesn't seem to have broken anything.
The recents apps screen is a very welcome change, I hated the one introduced in Android 9.
But overall idk, my Android OS still seems to be eating 1+ GB RAM out of 2 in total...
Click to expand...
Click to collapse
Does this module enable your N5X using Assistant go, for example? Does your N5X run more smooth with this patch? Do you turn your big off to avoid BLOD? Sorry if OT! Thanks!
Bootloop issue
It works on Custom ROM but It doesn't work on MIUI 11 ROM.
Does it work in Android 10? I had tried with the original low RAM mod but it didn't have any effect. Pie and lower worked well.
Does it work with nougat and touchwiz?
amn1987 said:
Does it work in Android 10? I had tried with the original low RAM mod but it didn't have any effect. Pie and lower worked well.
Click to expand...
Click to collapse
Also curious to know, I've been looking for a way to enable the Low Ram flag in Android 10 without success.
razerphynx said:
Also curious to know, I've been looking for a way to enable the Low Ram flag in Android 10 without success.
Click to expand...
Click to collapse
Didn't work for me either. It could be the ROM/developer did not add proper support.
While this module works on Android Pie, this broke the recent apps switcher on LOS 16 for microG for me.
Going to try and disable the module to see if that will fix things.
Update - The module didn't show up in Magisk, so had to use the original disable script by AdrianDC in TWRP and that fixed things.
This module is working perfectly with CRDroid Android 11.
My Device is Redmi 4a (Rolex)
Thankyou so much
Hi Guys,
I been using this device for more than 2 weeks. After i unlocked this, I attemted to intall twrp, xiaomi.eu rom and magisk. Twrp works but magisk 18.1 isnt. So i decided to look for fix on how to install magisk 18.1 over xiaomi.eu. Glad that I found in the xiami.eu thread similar case as mi mix3 and one kind person shared this magisk 18.1 link and able to test it. And it worked.
I also tested Magisk 18.2 by ianmacd which is currently installed in my rn7.
So to cut thing short. Below is the latest working magisk versions for our redmi note 7.
Magisk 18.1 (Moded)
https://www.mediafire.com/file/6maum4k7d3hjc0y/Magisk-v18.1_mix3%E4%B8%93%E7%89%88.zip/file
MIRROR:
https://drive.google.com/file/d/16XDKFiF0qXkQRTZ1A0AjvKAv8O53kQWd/view?usp=drivesdk
Magisk 18.2 by ianmacd (This is what I am using now)
https://github.com/ianmacd/MagiskBuilds/raw/master/Magisk-v18.1-2019020401-ianmacd.zip
Magisk 18.2 by topjohnwu
Magisk Manager 7 by topjohnwu
https://github.com/topjohnwu/Magisk/releases/download/manager-v7.0.0/MagiskManager-v7.0.0.apk
Older Version:
Magisk 17.3 by topjohnwu
https://github.com/topjohnwu/Magisk/releases/download/v17.3/Magisk-v17.3.zip
Magisk Manager 16.1 by topjohnwu
https://github.com/topjohnwu/Magisk/releases/download/manager-v6.1.0/MagiskManager-v6.1.0.apk
ebautista said:
Hi Guys,
I been using this device for more than 2 weeks. After i unlocked this, I attemted to intall twrp, xiaomi.eu rom and magisk. Twrp works but magisk 18.1 isnt. So i decided to look for fix on how to install magisk 18.1 over xiaomi.eu. Glad that I found in the xiami.eu thread similar case as mi mix3 and one kind person shared this magisk 18.1 link and able to test it. And it worked.
So to cut thing short. Below is the working magisk 18.1 for our redmi note 7.
Click to expand...
Click to collapse
Thanks, it really works. :good:
ebautista said:
Hi Guys,
I been using this device for more than 2 weeks. After i unlocked this, I attemted to intall twrp, xiaomi.eu rom and magisk. Twrp works but magisk 18.1 isnt. So i decided to look for fix on how to install magisk 18.1 over xiaomi.eu. Glad that I found in the xiami.eu thread similar case as mi mix3 and one kind person shared this magisk 18.1 link and able to test it. And it worked.
So to cut thing short. Below is the working magisk 18.1 for our redmi note 7.
Click to expand...
Click to collapse
Thank you very much! It is working!
ebautista said:
Hi Guys,
I been using this device for more than 2 weeks. After i unlocked this, I attemted to intall twrp, xiaomi.eu rom and magisk. Twrp works but magisk 18.1 isnt. So i decided to look for fix on how to install magisk 18.1 over xiaomi.eu. Glad that I found in the xiami.eu thread similar case as mi mix3 and one kind person shared this magisk 18.1 link and able to test it. And it worked.
So to cut thing short. Below is the working magisk 18.1 for our redmi note 7.
https://www.mediafire.com/file/6maum4k7d3hjc0y/Magisk-v18.1_mix3%E4%B8%93%E7%89%88.zip/file
Click to expand...
Click to collapse
Do you have the thread that describes what the issue is? I would like to pass as much information along to the developer of Magisk as possible so they can fix it in their next update
Enddo said:
Do you have the thread that describes what the issue is? I would like to pass as much information along to the developer of Magisk as possible so they can fix it in their next update
Click to expand...
Click to collapse
I dont have like that mentioned exactly what happened. But i guess the developer can look at the flash zip file and compare against the official flash file.
But based on my reasearch, i dont know if this help, mi mix 3 and redmi note 7's system partition is at /system_root/system path.
thanks!!
upload with nice spam generator unreliable link no information on what or how a correction was made
great, it really works!
嗨,大家好,
我使用这个设备超过2周。在解锁了这个之后,我发现了twrp,xiaomi.eu rom和magisk。Twrp可以工作,但是磁盘18.1不是。所以我决定寻找如何在xiaomi.eu上安装magisk 18.1的修复程序。很高兴我在xiami.eu线程中找到了类似mi mix3的案例和一个人分享了这个magisk 18.1链接并且能够测试它。它奏效了。
所以要缩短东西。下面是我们的redmi note 7的工作磁盘18.1。
I saw it somewhere that the latest miui is just not compatible with the latest magisk, so I ended up using magisk 17.3, it has everything I need and I hardly noticed any difference
I have mix 3 n rn7, when I saw the issue with rn7, having similar architecture of memory...I flashed same modded magisk 18.1 for mix 3 n it worked with magisk manager 7 ofc
PeppeCNN said:
I have mix 3 n rn7, when I saw the issue with rn7, having similar architecture of memory...I flashed same modded magisk 18.1 for mix 3 n it worked with magisk manager 7 ofc
Click to expand...
Click to collapse
Or : use magisk v17 or magisk cannary build.
iofujsiow said:
I saw it somewhere that the latest miui is just not compatible with the latest magisk, so I ended up using magisk 17.3, it has everything I need and I hardly noticed any difference
Click to expand...
Click to collapse
But you may not be able to download and install some magisk module from the module manager.
ebautista said:
Or : use magisk v17 or magisk cannary build.
Click to expand...
Click to collapse
Cannary build can create problems of stuck in update rom
N 17 don't let work some modules
Not working for me on eu rom.. not sure why.. as it does on the beta builds??
Nothing for root has worked for me, v17 v17.3 this v1.81 SuperSU v2.82.. they all install fine but after boot nothing.. not app or root
tillaz said:
Not working for me on eu rom.. not sure why.. as it does on the beta builds??
Nothing for root has worked for me, v17 v17.3 this v1.81 SuperSU v2.82.. they all install fine but after boot nothing.. not app or root
Click to expand...
Click to collapse
Did u tried version I posted up?
PeppeCNN said:
Did u tried version I posted up?
Inviato dal mio MI PAD 4 utilizzando Tapatalk
Click to expand...
Click to collapse
Your link says 404 Not Found?
Edit: got it working just had to manually install apk i'm used to the zip adding it
tillaz said:
Your link says 404 Not Found?
Edit: got it working just had to manually install apk i'm used to the zip adding it
Click to expand...
Click to collapse
Works now?
PeppeCNN said:
Cannary build can create problems of stuck in update rom
N 17 don't let work some modules
Click to expand...
Click to collapse
Yeah that is why I shared it in the OP.
PeppeCNN said:
Works now?
Click to expand...
Click to collapse
Says 500 Internal Server Error now?
As I've seen in the link below, there was just a Magisk update, supporting system-as-root properly now.
Since the mi 9 does use that partition set up, does the update bring any enhancement for our device?
Thanks in advance!
Have a nice day!
https://www.xda-developers.com/magisk-google-pixel-3-pixel-3a-android-q/
TobiPeter said:
As I've seen in the link below, there was just a Magisk update, supporting system-as-root properly now.
Since the mi 9 does use that partition set up, does the update bring any enhancement for our device?
https://www.xda-developers.com/magisk-google-pixel-3-pixel-3a-android-q/
Click to expand...
Click to collapse
For now, one of my banking apps is not showing "device modified" anymore, but Google Pay still does.
Hi all, I am new to this kind of phone with stock Android, my last was Redmi Mi 9T with Magisk and Lsposed, safetynet passed and CustoMIUIzer.
With CustoMIUIzer I could disable the power menu while locked, now with my new Pixel 7 I really want to know which mods I can download, what apps do you recommend? For safetynet bypass I can simply install the usual mods from Magisk?
Thanks!
Er_Seraph said:
Hi all, I am new to this kind of phone with stock Android, my last was Redmi Mi 9T with Magisk and Lsposed, safetynet passed and CustoMIUIzer.
With CustoMIUIzer I could disable the power menu while locked, now with my new Pixel 7 I really want to know which mods I can download, what apps do you recommend? For safetynet bypass I can simply install the usual mods from Magisk?
Thanks!
Click to expand...
Click to collapse
SafetyNet is no longer relevant as it has been replaced by Play Integrity. See this thread.
Keep in mind that some modules may cause bootloops after updating. YMMV.
Objective : Be able to use UPI/Banking apps on rooted phone.
Problem : MIUI Security app detecting root access even after using 'Hide the Magisk App'.
I have a Redmi Note 11 (spes) running on xiaomi.eu - MIUI 13. It's rooted using Magisk v26.1.
I have hidden the Magisk app using it's in-built 'Hide the Magisk App' option. But when I do a security scan in the in-built MIUI Security app, it is able to detect root access and shows payment environment not secure.
How can I fix this?
Where did you get 26.2?
Sheist! said:
Where did you get 26.2?
Click to expand...
Click to collapse
My mistake, it's v26.1.
parker_04 said:
Objective : Be able to use UPI/Banking apps on rooted phone.
Problem : MIUI Security app detecting root access even after using 'Hide the Magisk App'.
I have a Redmi Note 11 (spes) running on xiaomi.eu - MIUI 13. It's rooted using Magisk v26.1.
I have hidden the Magisk app using it's in-built 'Hide the Magisk App' option. But when I do a security scan in the in-built MIUI Security app, it is able to detect root access and shows payment environment not secure.
How can I fix this?
Click to expand...
Click to collapse
This here: https://github.com/kdrag0n/safetynet-fix plus zygisk activated in magisk could be the way to go. Here's the thread of the project where you can find more information. Cheers
NeoPreacher said:
This here: https://github.com/kdrag0n/safetynet-fix plus zygisk activated in magisk could be the way to go. Here's the thread of the project where you can find more information. Cheers
Click to expand...
Click to collapse
Get the Displax version. Yes, with Zygisk and hide Magisk.
Release v2.4.0-MOD_1.2 · Displax/safetynet-fix
Google SafetyNet attestation workarounds for Magisk - Release v2.4.0-MOD_1.2 · Displax/safetynet-fix
github.com