[Magisk] ClaudioJuniorBR:
Hi guys! now i show to work magisk safatynet pass

Thanks [MENTION=7890493]xJovs[/MENTION] for your tutorial!

Link for your post Click Here!

Let's go

All rights reserved [MENTION=7890493]xJovs[/MENTION] for this tutorial

(Please note that I am not responsible if your phone bricks etc. Please use at your own risk! Myself and others who have also tested this bypass have had no reported issues of this bypass causing some sort of brick etc., but I cannot guarantee anything.)

__________________________________​

*UPDATED*

Since October 2016, Google has (yet again) changed their way on how SafetyNet works and how they can now easily figure out if your phone is rooted or not. This caused many issues for rooted Android users who wanted to play games such as PKMNGO and use apps such as Snapchat. However, there is still ways to bypass SafetyNet.

Tested Devices:

- Samsung Galaxy S6

- Samsung Galaxy S5

- Samsung Galaxy S7

- SamSung Galaxy S7 EDGE

__________________________________​

Requirements:

- Basic Understanding on how to use Custom Recovery, flashing zip files etc.

- Running on Android 6.0+/7.0+

- Phone has a custom recovery (I suggest TWRP) and on a Custom ROM. (Stock roms "should" work too.)

- Magisk V11.1 & Magisk Manager 4.1

- Root File Explorer. I suggest Root Browser

- Kernel Adiutor

- Root Checker

(If you cannot bypass with Xposed, use Root Switch!)

Tutorial

**WARNING: BIG IMAGES** (Had no time to resize them, but will soon.)

Step 1:

Clean Install

The first step install your custo rom, i installed SuperRom 1.2 MM and custom Karnel SuperStock 1.6 on installation.

Step 2: (For no MagiskSU users!)

Removing SuperSU

This step is 'also' optional, but ONLY if your rom/kernel does not automatically install SuperSU for you. In my case, it is automatically installed.

What you will need to do is to go to the SuperSU app, go to settings.

Scroll down until you see "Full unroot" and click it.

A popup will come up and click "Continue", then followed by another popup and click "NO".

Once you click no, your phone will freeze and then reboot. You should then install Root Checker to verify if your phone is unrooted.

(If for some reason, you are unable to use the SuperSU app but you know SuperSU is installed, I'd suggest you download UPDATE-unSU-signed.zip and flash it as it will manually remove SuperSU.)

Step 3:

Installing required APKs.

You will now need to install MagiskManager 4.2.6, SafetyNet Helper Sample, Root Browser and Kernel Adiutor.

Step 4:

Flashing MagiskV11.1

You will need to reboot into your custom recovery and flash "Magisk-v10.2.zip", followed by rebooting. If you receive ERROR: 1 in TWRP when it is trying to mount SU, I suggest reflashing a kernel (and re-remove SuperSU), uninstalling Magisk with MagiskUninstaller (in Magisk thread) and reinstall Magisk V11.1, or reinstalling your rom.

Step 5:

Enabling Magisk Hide

In Magisk Manager, go to the side menu and go to "Settings." You will see an unchecked box that says "Enable Magisk Hide." Select it and reboot. Re-open Magisk Manager and verify that it is now check marked. If the App crashes when you select "Enable Magisk Hide", reboot your phone and retry.

Step 6:

Set Permissions

In Root Browser, go to the directory "/sys/fs/selinux" and find the file "enforce" and the file "policy". On the file "enforce", change the permissions of the file from "644" to "640", and for the file "policy", change the permissions of the file from "444" to "440". If MagiskSU pops up and asks for root access, click "Allow."

Once you are done, open up SafetyNet Helper Sample and it 'should' pass. If you are getting "Response Validation Failed" and the background is blue, uninstall Magisk by flashing Magisk Uninstaller, flash UPDATE-unSU-signed.zip, then reflash Magisk V11.1. Then, go back to Step 5 and enable Magisk Hide.

Step 7:

Use Kernel Adiutor to automatically set permissions in init.d

This last step is 'optional', however it automates the permission setting as every time you reboot your system, the file permissions will reset. Open up Kernel Adiutor, go to the sidebar and scroll down until you see 'Init.d'. Click it and make sure "Emulate Init.d" is enabled.

Then click the plus button, set the name to "Permissions" and then add the following script:

"chmod 640 /sys/fs/selinux/enforce" and "chmod 440 /sys/fs/selinux/policy" and save the files.

Also allow root access to Kernel Adiutor!

Step 8:

Reboot

Reboot your device, let Kernel Adiutor do its countdown (you will see in the notifications drop down) and once it says "Applying settings completed!", open up Safetynet and you should be passing!

If you're still not passing, try disabling USB Debugging in Developer Options!

Credits:

topjohnwu - Main developer of Magisk and Magisk Supported Phh Super User

This XDA thread - Helped me figure out how to do this bypass in the first place.

CoreUi Telegram Chat - Helped me test this bypass to see if it worked on different S6 models. Join here!

If I forgot to credit anyone, please tell me.

__________________________________​

If there is any mistakes I made, spelling, phrasing etc., please tell me so I can fix it. Thanks.[/QUOTE]