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

Search This thread

nanobrain----

Member
Jan 31, 2017
8
1
There're many problem on Zenfone4 660, I can't patch Safety check by Magisk v17.2 so I try to install this module, but It make manager can't be open and crashed.
sos

---------- Post added at 04:46 AM ---------- Previous post was at 04:45 AM ----------

There're many problem on Zenfone4 660, I can't patch Safety check by Magisk v17.2 so I try to install this module, but It make manager can't be open and crashed.
sos
 

A.lemane

Senior Member
Mar 29, 2017
147
17
There're many problem on Zenfone4 660, I can't patch Safety check by Magisk v17.2 so I try to install this module, but It make manager can't be open and crashed.
sos

---------- Post added at 04:46 AM ---------- Previous post was at 04:45 AM ----------

There're many problem on Zenfone4 660, I can't patch Safety check by Magisk v17.2 so I try to install this module, but It make manager can't be open and crashed.
sos
This module isn't compatible with the newer Magisk s
 

Dreamer(3MF)

Senior Member
Mar 17, 2018
753
1,144
There're many problem on Zenfone4 660, I can't patch Safety check by Magisk v17.2 so I try to install this module, but It make manager can't be open and crashed.
sos

Do The Following
- Download CoreOnlyMode4Magisk From This Thread https://forum.xda-developers.com/apps/magisk/module-core-mode-bootloop-solver-modules-t3817366 Then Flash It Thru TWRP Recovery To Open Magisk Manager & Uninstall Universal SafetyNet Fix
- Try DeviceSpoofingTool4Magisk From This Thread https://forum.xda-developers.com/apps/magisk/qa-want-to-install-modules-magisk-v13-3-t3800435
 
Last edited:

brmbjn

Senior Member
Mar 17, 2015
914
121
Bojonegoro
OnePlus 8
OnePlus 8 Pro
I'm testing some functions and they could doesn't work stably in all devices, so I decided to release betas to test new things and get some feedback.

USNF Settings
Use from terminal emulator with root provileges, run this to see usage
v2 Beta 5 changelog
Added Magisk v13+ support to Universal Hide
Added module settings
Fixed fake not mount namespace support message due 32-bit devices
Better Magisk version detection
Separated every type of mount points to own unmount command
Fixed some problem when clear logcat
Fix fingerprint issue
Added reboot ask to module settings
Removed Magisk v13 props to fix SafetyNet
Copy busybox and magiskhide in every boot
Removed Magisk Hide disable and enable loop
Output Magisk related props in the log
Hide permissive mode
Hide the original Magisk binaries of /sbin_orig folder
Added more props to hide
Updated bundle Busybox binaries to 1.27.1
Removed the waiting for Magisk boot end
Better output in Magisk log
Some code syntax cleanup
Cleanup some code
Hide more Magisk props
Added output to Magisk log of target process namespace at unmount
Added partial support for Magisk v12
Added support for newer Huawei devices unmounting vendor mountpoint
Added Magisk 13.5 Beta support
Fixed unmount of some modules
Improved module outputs in Magisk log


Previous beta changelogs

v2 Beta 4
Own Magisk Hide implementation renamed to Universal Hide
Fixed Universal Hide when there are not modules
Kill module if mount namespaces are not supported
Enable full Universal Hide if Zygote namespace is not found in Magisk log
Check if system shell runs correctly when is runned by BusyBox's nsenter applet, if not use BusyBox's shell

v2 Beta 3
Completed own implementation of Magisk Hide to unmount all when any process listed in hidelist file is runned for Magisk v12 only, auto-enabled only if you Magisk Hide doesn't work

v2 Beta 2
Own implementation of Magisk Hide to unmount all when SafetyNet process (com.google.android.gms.unstable) is runned to bypass SafetyNet for Magisk v12 only, auto-enabled only if you Magisk Hide doesn't work
Fix for unmount mirror, dummy & busybox

v2 Beta 1
Unmount mirror, dummy & busybox in the namespace of the process you hide for Magisk v12 like Magisk v13 does. No more /dev/magisk ugly rename workaround.



If you have issues, join here (Telegram group): https://t.me/USNFGroup

Magisk v14 hotfix here
Flash over twrp or magisk mansget
 

Mr.Ak

Senior Member
Jan 14, 2015
4,410
1,970
23
*RESTRICTED AREA*
When I try to flash this module, it says Magisk is not installed. But I do have latest Magisk installed. Any help is appreciated.
 

Attachments

  • Screenshot_batik_2018-12-20-15-19-53.png
    Screenshot_batik_2018-12-20-15-19-53.png
    172.3 KB · Views: 724
  • Screenshot_20181220-205205.png
    Screenshot_20181220-205205.png
    89.4 KB · Views: 734

Mr.Ak

Senior Member
Jan 14, 2015
4,410
1,970
23
*RESTRICTED AREA*
As mentioned a thousand times in the last few pages of this thread, this module is really outdated and it won't work on Magisk 16+. Use the MagiskHide Props Config module instead.
Thank you. Didn't quite read previous pages. I tried the module which you told me about. Now, both the ctsProfile and basicIntegrity are true, but Google Pay still doesn't work for some reason.
 

Attachments

  • Screenshot_20181221-145434.png
    Screenshot_20181221-145434.png
    98 KB · Views: 896
  • Screenshot_20181221-145610.png
    Screenshot_20181221-145610.png
    80.4 KB · Views: 890

FlavioV

Senior Member
Jan 25, 2013
359
264
Moto G9 Play
  • Like
Reactions: Rumzie

performero

New member
Feb 6, 2019
2
0
Madrid
SafetyNet Fix did not work, now my Asus is not Root and Magisk says it's not install

The first thing Deic is to thank you for your excellent work.
I'm from Madrid and I have an Asus Zenfone 3 max a complicated mobile to root, although I found a method that worked, at first everything went very well and the mobile was root. The problem that arose, is that SafetyNet did not pass in either of the two options (ctsProfile and basicintegrity), and even though I wanted to hide the root to a banking application that I use, it found the root of the mobile and does not let me do certain operations.
Look for the solution to pass the SafetyNet and I found the (universal-safetynet-fix-v2-beta-5). (Now I know I should not have used it).
Not only did it not work, but now I do not have root and magisk tells me it is not installed.
By pressing the "Install" button I get two options (1st Download only the ZIP / 2nd Patch of the boot image).
The first one only downloads the ZIP file. I tried to install it through Recovery mode with TWRP, but it did not work. The second option has not worked either and it still appears that Magisk is not installed.
I have also tried to uninstall the Magisk with the uninstaller and the TWRP but it gives an error and I do not get anything.
I have tried everything, even restore the ROM with SP Flash Tool, (An error appears and I can not continue and I can no longer use SP Flash Tool with my mobile phone)
also try to do Wipe with TWRP and reinstall and uninstall Magisk but it does not work. Finally I tried to uninstall the Universal SafetyNet Fix with the uninstalled (Xiami SafetyNet Fix Unistall) to see if it got something but nothing works now.
I prefer to have Root to use some applications even if I can not use the bank application.
How can I solve and reverse the situation? What has modified the "Universal-safetyNet-fix" that does not let me solve the problem?
Please, some help.
 

Didgeridoohan

Retired Senior Moderator
May 31, 2012
12,299
1
14,823
Gone
Google Nexus 4
Nexus 6
@performero Yes, as you've found out the hard way this is not a good module to install on your device... It messes with the Magisk internals, which may lead to a bunch of unforseen consequenses. @Deic has actually been missing in action since this was discovered and he was asked to change it...

First of all though, the module shouldn't cause any issues with restoring your ROM, but I'm not familiar with Asus devices, so I might be wrong. You could try restoring just the boot image and see if you can continue with installing Magisk again after that.

Second, when asking for help it's a good idea to not only say that there are errors, but also post the logs showing these errors. Here are some tips on collecting logs: https://didgeridoohan.com/magisk/MagiskHelp
 
  • Like
Reactions: Ytim08

performero

New member
Feb 6, 2019
2
0
Madrid
"You could try restoring just the boot image and see if you can continue with installing Magisk again after that."

Thanks, Didgeridoohan.
Can you tell me how to restore Boot.img or put a link where they explain how it is done.
 

Didgeridoohan

Retired Senior Moderator
May 31, 2012
12,299
1
14,823
Gone
Google Nexus 4
Nexus 6
"You could try restoring just the boot image and see if you can continue with installing Magisk again after that."

Thanks, Didgeridoohan.
Can you tell me how to restore Boot.img or put a link where they explain how it is done.

Sounds like you have a lot of studying to do before going much further...

But, basically it should just be a matter of opening up your ROM file, find the boot image and flashing that to your device. With most Android devices you can do this with fastboot, but Asus devices might be different (I honestly have no idea).

I would suggest searching through your device's forum (if there is one) and also use your favourite search engine to find information about your device and how you can flash partitions to it, restore it, etc.

That's the basics of it and as to not create a 3000 word essay on the subject I'm going to leave it up to you to find the details (which are abundantly spread all over the interweb, ready for you to find). No need for me to write them again...
 

nice_guy75

Senior Member
Mar 29, 2012
298
73
I am not able to flash this zip on Asus Zenfone Max Pro M2, it is throwing "Error:1 System could not be mounted" I am trying with OFTP.
 

Didgeridoohan

Retired Senior Moderator
May 31, 2012
12,299
1
14,823
Gone
Google Nexus 4
Nexus 6
I am not able to flash this zip on Asus Zenfone Max Pro M2, it is throwing "Error:1 System could not be mounted" I am trying with OFTP.

And that's a good thing... This module is very old and when it worked it broke things. There are several modules that can do the same thing available to you, both as updates to this module (you'd have to search) and new variants from the Magisk Downloads.
 

Naif33

New member
Jul 17, 2019
1
0
There is a general problem on Xiaomi devices message appears in a magisk ctsprofile:

There is a general problem on Xiaomi devices message appears in a magisk

ctsprofile:false

Please Help
 

Top Liked Posts

  • There are no posts matching your filters.
  • 222
    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

    Requeriments
    • Magisk v13.x/14.0
    • MagiskSU

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

    Installation
    1. Flash the .ZIP from TWRP
    2. 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
    112
    Universal SafetyNet Fix v2 Beta 5

    I'm testing some functions and they could doesn't work stably in all devices, so I decided to release betas to test new things and get some feedback.

    USNF Settings
    Use from terminal emulator with root provileges, run this to see usage
    Code:
    usnf
    v2 Beta 5 changelog
    • Added Magisk v13+ support to Universal Hide
    • Added module settings
    • Fixed fake not mount namespace support message due 32-bit devices
    • Better Magisk version detection
    • Separated every type of mount points to own unmount command
    • Fixed some problem when clear logcat
    • Fix fingerprint issue
    • Added reboot ask to module settings
    • Removed Magisk v13 props to fix SafetyNet
    • Copy busybox and magiskhide in every boot
    • Removed Magisk Hide disable and enable loop
    • Output Magisk related props in the log
    • Hide permissive mode
    • Hide the original Magisk binaries of /sbin_orig folder
    • Added more props to hide
    • Updated bundle Busybox binaries to 1.27.1
    • Removed the waiting for Magisk boot end
    • Better output in Magisk log
    • Some code syntax cleanup
    • Cleanup some code
    • Hide more Magisk props
    • Added output to Magisk log of target process namespace at unmount
    • Added partial support for Magisk v12
    • Added support for newer Huawei devices unmounting vendor mountpoint
    • Added Magisk 13.5 Beta support
    • Fixed unmount of some modules
    • Improved module outputs in Magisk log

    Previous beta changelogs

    v2 Beta 4
    • Own Magisk Hide implementation renamed to Universal Hide
    • Fixed Universal Hide when there are not modules
    • Kill module if mount namespaces are not supported
    • Enable full Universal Hide if Zygote namespace is not found in Magisk log
    • Check if system shell runs correctly when is runned by BusyBox's nsenter applet, if not use BusyBox's shell
    v2 Beta 3
    • Completed own implementation of Magisk Hide to unmount all when any process listed in hidelist file is runned for Magisk v12 only, auto-enabled only if you Magisk Hide doesn't work
    v2 Beta 2
    • Own implementation of Magisk Hide to unmount all when SafetyNet process (com.google.android.gms.unstable) is runned to bypass SafetyNet for Magisk v12 only, auto-enabled only if you Magisk Hide doesn't work
    • Fix for unmount mirror, dummy & busybox
    v2 Beta 1
    • Unmount mirror, dummy & busybox in the namespace of the process you hide for Magisk v12 like Magisk v13 does. No more /dev/magisk ugly rename workaround.


    If you have issues, join here (Telegram group): https://t.me/USNFGroup

    Magisk v14 hotfix here
    79
    Hotfix for Magisk v14

    Use only with Magisk v14+

    *re-uploaded
    25
    Universal SafetyNet Fix v2 Beta 4

    I'm testing some functions and they could doesn't work stably in all devices, so I decided to release betas to test new things and get some feedback. Have in mind that you wont got support by me if something works bad with a beta version.

    v2 Beta 4 changelog
    • Own Magisk Hide implementation renamed to Universal Hide
    • Fixed Universal Hide when there are not modules
    • Kill module if mount namespaces are not supported
    • Enable full Universal Hide if Zygote namespace is not found in Magisk log
    • Check if system shell runs correctly when is runned by BusyBox's nsenter applet, if not use BusyBox's shell

    Previous beta changelogs

    v2 Beta 3
    • Completed own implementation of Magisk Hide to unmount all when any process listed in hidelist file is runned for Magisk v12 only, auto-enabled only if you Magisk Hide doesn't work
    v2 Beta 2
    • Own implementation of Magisk Hide to unmount all when SafetyNet process (com.google.android.gms.unstable) is runned to bypass SafetyNet for Magisk v12 only, auto-enabled only if you Magisk Hide doesn't work
    • Fix for unmount mirror, dummy & busybox
    v2 Beta 1
    • Unmount mirror, dummy & busybox in the namespace of the process you hide for Magisk v12 like Magisk v13 does. No more /dev/magisk ugly rename workaround.


    If you have issues, post these information
    1. Magisk log in Magisk Manager or magisk.log file in /cache
    2. universal-safetynet-fix.log file in /cache
    3. Install RootBeer Sample from Google Play, HIDE IT from Magisk Hide, run it, click the button and take screenshot.

    ATM is not fully compatible for Magisk v12 due the last SafetyNet update. Universal Hide (my own "Magisk Hide") doesn't support Magisk v13+ too.

    Beta 5 test builds is fully compatible for Magisk v12/v13+
    17
    Uninstaller

    Created the uninstaller zip from @Dark❶'s uninstaller template.
    This can be flashed from recovery to remove the module.

    May be useful in case of bootloops (although we know there are none) or may be other cases.
    I have tested at my end, works flawlessly.
    @Deic please add to OP if you find it useful.