[Magisk] zapahacks:
INFO for Samsung Galaxy S6/S7/Edge users searching for a Safetynet Green Response

[ ]Confirmed working until now on Galaxy S6/Galaxy S6 Edge/Galaxy S7/Galaxy S7 Edge

*What is working: Root (with phh's superuser) + Custom Rom/Custom Kernel/Stock Kernel/PermissiveOrEnforcing SELinux status + Pokemon GO lastest version with GREEN response in Safetynet Helper and working Xposed Module related to Pokemon Go (Snorlax latest version)

*What is not working: Other modules not related to Pokemon Go, like YouTube adaway or XtouchWiz are not working while Xposed is hidden on my case (they wont work while you play Pokemon Go, but if you unhide Xposed Framework they will work just fine).

-----

*Files you will need: magisk-V8_mod2.zip // phh-superuser-magisk-r259.zip // MagiskManager-v2.1.apk // phh's Super User app from Play Store // RootSwitch-1.3.1.2.zip // Your Rom files and TWRP 3.0.2 (only if you decide to start from zero) // Arter Kernel (only if you want to change yours). I wrote the names so you can use the search option on their respectives threads. Seriously guys, if you can't copy and paste the names on the search bar of their respective threads you probably don´t deserve to have things working :silly::silly:. Just a simple search will provide the results, but anyways, there you have some of the links. :good:

-----

1- Install/Reinstall your ROM (custom/stock or whatever your preference), open Safetynet Helper App from the Play Store, it should be green. If it is not, you have 2 options.

A. First one, reflash a Stock Firmware from Sammobile. A stock kernel/rom should not triger Safetynet, it should be green and with Pokemon Go working. This will leave you with stock recovery/kernel (so you will need to flash TWRP 3.0.2 in Odin if you want to make nandroid backups ) and you will have to use your Rom as Stock (battery and trash apps are not great in my opinion, but I guess it would be fine for a regular user).

B. Second one, supposing you are using a Custom Rom that uses SuperSU root. Unroot with SuperSU app, the check Safetynet, if it is green you don´t need to change your current kernel. If it says success succes but CTS fails and safetynet is red you are going to need to change your kernel. I can confirm that Arter Kernel works fine on these specifics Samsung models. Check if this kernel is available for your specific phone version . This will change your kernel, and maybe your SELinux (depending on the kernel you use) to Permissive but there is no problem with that (at least for Galaxy S6/7 variants).

*Please BE SURE to use only kernels that are for your device, don´t 'break' your device :)

** Wipe Dalvik/Cache before you continue with the others steps (if you have TWRP recovery), some Xposed files only dissapear with this, so you can uninstall Xposed but it won't be completely erased until you wipe dalvik/cache. The uninstaller.zip even tell you to do this! So just follow the recomendations.

***Suggestion: I use Alexis ROM and Arter Kernel on my Galaxy S6 Edge, if you have never tried a Custom Rom for your Galaxy S6, you can be sure this Custom ROM+Custom Kernel is one the best combinations available for our phone models. Latest version 7.1.1 works fine, it's battery friendly and has no lag at all.

---- CHECKPOINT 1----: reboot and double check that safetynet is GREEN/PASSING and that POKGO works fine, if you did any of the previous steps well your Safetynet Helper result should be GREEN. If you are with a different screen, then don't continue with the other steps as they will not work with this guide. Report and tell which kernel/rom you are using, because having a red screen is probably related to your kernel/rom choice. If you are GREEN in Safetynet Helper, I suggest you make a full nandroid backup (or at least of the boot.img part, cuz it will spend you time and troubles later)

----

2- Boot into TWRP recovery and flash Magisk V8 (magisk-V8_mod2.zip). This is the only version that worked for me, the others (oficial) didn't allow me to Hide Magisk under the Settings options of the app. I repeat, normal Magisk V8 didn't work for me when doing what is written on step 6, but it did work for other people (I have no idea why :laugh:), so if you are having problems just try with the other available version. Again, the oficial version is in the first post of the thread and the other versions you just need to type the name of the file in the search box.

----

3- After flashing Magisk V8 Mod2 version, flash Phh's Super User (phh-superuser-magisk-r259). Search on the first post of the xda phh's super user thread for the file.

----

4- Boot into system (normal boot) and download phh's superuser app from the Play Store. Install it and open it once, in my case, if I didn´t open it once then apps thar use root acces were not able to request root acces to phh's superuser app.

Then install Magisk Manager 2.1 apk and open it, it should ask you for Root Privilages (without root privilages it won´t let you Hide Magisk!)

----

5- Check that Hide Magisk option is ticked in Magisk Manager settings tab. If you used Magis V8 mod2 it will probably be ticked by default. If you used the other versions of Magisk and it is unticked, then tick it and restart the app to see if it is still ticked. If you open the app and it's still unticked then tick it and reboot. If it continue unticked, then you probably need to try the same procedure with one of the other Magisk V8 zip files availabe on the xda Magisk thread. Please understand that if this option is not ticked, Safetynet will fail cuz it will detect Magisk/root.

---- CHECKPOINT 2----: With Magisk Hide funciont enabled you should have Magisk and phh's superuser root working properly and with a GREEN/PASS safetynet response. Check that in fact it is working for you. If you have a blue/red screen then probably Magisk Hide isn´t enabled, or you need to wipe Dalvik/Cache. If after wipe this isn´t working for you and you are you are sure you passed trough checkpoint 1 with a green safetynet screen then probably your phone is not compatible with this workaround :/. If everything is working I suggest you restore your backups (titanium/apps) and set up your rom as you usually like it and then make a full nandroid backup (in case you mess with the next steps, which are really tricky).

----

6- Flash Xposed Systemless 86.2 and then reboot and install the latest Xposed apk, this is the tricky part as it seems sometimes it just doesn't install/flash. Keep in mind some thins:

a. If you have any version of xposed installed it will probably cause problems, so it is better to start form cero. Uninstall Xposed with the proper zip file.

b. MOST IMPORTANT!, everytime you uninstall Xposed you need to WIPE DALVIK/CACHE. Otherwise files will remain trigering safetynet and messing with the installation of other Xposed versions.

c. When you install Xposed 86.2 it will say during flashing that it is not installed as systemless but as normal system way. This is ok, in fact, this is what makes possible to hide Xposed later with Root Switch app.

d. If you have a red screen on Xposed app reboot into recovery and flash again Xposed. Then only to options that would work are when you get a green screen or a yellow/orange screen (metioning version 86.2 of the framework)

Try flashing/reflashing/uninstalling a couple of times, reboot a couple of times. Sometimes durint the first reboot after you flash Xposed the app won't detect it, so reboot to double check which screen you have in the Xposed app (green/yellow/red).

Your last resource, and the method that worked for me, is to install version 86.6 then flash its uninstaller, then flash version 86.2 without wiping dalvik cache and then wipe dalvik cache. Then reboot and check that version 86.2 is installed, if it isn´t working then again flash version 86.2 with no wipes. If you are lucky it would work just with the first flash, otherwise, try flashing and reflashing uninstallers and framework until you see version 86.2 in green on the app. I don't know any other precise order or method to install Xposed 86.2 as I tried more than 5 different combinations until I got it working, but I can tell you that there is a way and that it is working on my phone. So just try and try until you get it and post your method so it can help other people as well.:good:

----

7- Open Xposed app and grant root acces to Xposed (to do this press soft reboot option in the app and it will ask for permissions. Install your Xposed modules, activate them and reboot.

----

Safetynet should be Blue (failing now) up to this point because it detects Xposed. When you double check that Xposed 86.2 is installed and your modules are working normally you can continue to the next steps (hidding Xposed so you can play Pokemon Go while Snorlax is doing its magic :))

----CHECKPOINT 3----: Safetynet should fail and give you a blue screen but root and your xposed modules should be working. Try with other modules like youtube adaway or just make sure they are working. If Xposed is working, continue with the next steps.

8- Download the RootSwitch-1.3.1.2.zip and extract the APK, install it, grant root access, close the app, open it again.

----

9- Don´t disable root!, disable ONLY Xposed (the second option at the bottom) and it will soft reboot (it is normal and necessary to make the hide trick work)!

----

10- If you look into Xposed apk it will show a yellow screen BUT your Pokemon modules will be working (Snorlax). Safetynet should be GREEN as well. If you have made it so far try Pokemon and check that in fact Snorlax is working. If it is working, then make a full nandroid backup and keep it safe in your pc ;)

11. Lastly, TO KEEP IN MIND: when you reboot your phone your Xposed modules (Snorlax) will not work any more. To make them work after a reboot:

a- Open Root Switch app

b- Enable Xposed (it will soft reboot)

c- Do a normal reboot (xposed should be green and safetynet should be failing)

d- Open again root switch app and disabled xposed again (it will soft reboot)

e- Then you are good to go and Snorlax should be working fine again.

I am sure that at least the latest version of Snorlax is working until the date of this post (29/10), but I haven´t tried other versions of it.

----

Enjoy the double candie week! and FPM back online!! :)

--->I can't try Android Pay and I don´t use it, this is just for Pokemon Go purposes