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

NOT WORKING ANYMORE, go to post #1215

_____///______

I saw that now there is this dedicated forum to Pokemon Go related things, so I just wanted to reshare my post from the other forum that helped some people, specially Samsung Galaxy users.

Here it goes:

[ ] Confirmed working until now on:

a- Galaxy S6/Galaxy S6 Edge/Galaxy S7/Galaxy S7 Edge with Stock Roms/kernels.

b- Galaxy S6/Galaxy S6 Edge with custom rom Alexis 7.1.1 with Arters kernel.

c- Note 4 running the latest Emotion ROM (be sure to unroot it from the baked it app before following this guide), the xposed part wasn´t tested. But the root procedure works fine.

d- TMO Note 5 with Custom Rom (Darthstalker Rom) + Arter's Kernel.

e- Galaxy S5 with CM13. Unroot from the SuperSu app and use the normal V8 magisk version.

f- Samsung Galaxy S7 (SM-G930F with Superman ROM V1.15 and kernel 3.18.43-SuperStock_SM-G930F_V1.4.5

*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 // Xposed Framework 86.1 or 86.2 (xposed-v86.1-sdk23-arm64-custom-build-by-wanam-20160904.zip or xposed-v86.2-sdk23-topjohnwu.zip) which are "System version" for samsung by Wanam and "Systemless version" by Topjohnwu respectively. 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), specially if you have already installed Xposed. 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 ), 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- The Xposed part. You have two options. Flash Wanams version for samsung or flash Xposed Systemless 86.2 in "system mode" (it will be done automatically). So first try flashing Wanams version, then reboot and install the latest Xposed apk. If you see a green screen telling Xposed by wanam is installed and active proceed to step 7.

If you open Xposed app and you see a red screen telling the framework is not installed then you will have to try some other tricky methods, as it seems sometimes it just doesn't install/flash. To start with the fix keep in mind some things:

a. If you have any previous version of xposed installed it will probably cause problems, so it is better to start form cero. Uninstall Xposed with the proper zip file (they are different depending on the version you have installed, so search for the proper one).

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. If you installed Xposed 86.2 Systemless it should say during flashing that it is not installed as systemless but as the normal "system" way. This is ok, in fact, this is what makes possible to hide Xposed later with Root Switch app.

d. Before continuing with the next steps, if you have a red screen on the Xposed app reboot into recovery and flash again the Xposed version you already flashed. Reboot again to see if now is in green. If its still in red, reboot into recovery and wipe dalvik/cache, reboot into normal mode, then reboot into recovery and flash for the last time the xposed version that you used on step 6.

Keep in mind that the only two options that will work are when you get a green screen or a yellow/orange screen on the Xposed app (mentioning version 86.2 or wanam version of the framework)

If wanam version didn´t work for you then you will need to try the same steps with Xposed 86.2 Systemless version. First flash the uninstaller and wipe dalvik/cache. Reboot on normal mode once. Then reboot into recovery and try flashing/reflashinga couple of times, reboot a couple of times. Sometimes during 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 systemless, 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 get and error related to "! Failed: Unable to extract zip file!" look into post #1152

If you are lucky, Wanam version would work fine just with the first flash, otherwise, try flashing and reflashing uninstallers and framework until you see version 86.2 / or Wanams version 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. Also, this post might help you as well #1147

When you have it in green, continue with the other steps.

----

7- Open Xposed app and make sure it has root acces granted (to do this press soft reboot option in the app and it will ask for permissions. If it doesn't ask it's probably because you have already granted permissions for the app).

Install your Xposed modules, activate them and reboot to make them work.

----

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

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

8- Download the RootSwitch-1.3.1.2.zip (newest version also works) and extract the APK, install it, open the app and grant root access when it asks, close the app, and then open it again.

----

9- Now disable Xposed. 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, AND 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, Gastlys, Drowzees, Meowths and Cubones! :laugh:

---> I can't try Android Pay and I don´t use it, this is just for Pokemon Go purposes. But if someone tries it report back.

Also, this post might have some usefull info for/from other users #7252

[MENTION=1620550]fOmey[/MENTION]