Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upMagisk Manager unable to pass SafetyNet check with AdGuard enabled #1894
Comments
This comment has been minimized.
This comment has been minimized.
Some new data: It seems, that our root proxy mode is interfering with installation of |
This comment has been minimized.
This comment has been minimized.
Then, if I disable and re-enable Wi-Fi network, it will get an error again... And every time there is no connections in our full-log. Weird... |
This comment has been minimized.
This comment has been minimized.
Okay, this time I have no problems to check SafetyNet on my phone. But one thing changed - I've rebooted it yesterday. So, @ianmacd, try to make these steps:
Does Magisk still show an error on step 5? |
This comment has been minimized.
This comment has been minimized.
@ianmacd is there still an issue with this? |
This comment has been minimized.
This comment has been minimized.
I have replicated the steps listed by @Revertron. Adguard Ver 2.12.247 Internet Connectivity - Wireless Turn LTE On Wireless Off After one hour either on Wireless or LTE For every app which doesn't work, the above procedure works when you are on a specific Internet connectivity, right after reboot. The moment you change especially from Wireless to LTE, things stop working till you turn off Adguard and reboot and turn it back on. However there is no consistency in the success of the same. |
This comment has been minimized.
This comment has been minimized.
I can confirm this is an issue for me as well. AdGuard app version 2.12.247 on Android 9. My phone is the OnePlus 5 running the Pixel Experience ROM. It seems this affects a few other apps for me as well. Pokémon GO: Sign in doesn't work unless AdGuard is completely disabled. Nothing is listed as blocked in AdGuard Thankfully I don't use any of these apps very often. Thanks! |
This comment has been minimized.
This comment has been minimized.
I confirm this in vpn mode also if I move the certificate to system store. |
This comment has been minimized.
This comment has been minimized.
@MZGSZM @freezewind guys, how exactly did you move the certificate? Did you do it in AdGuard settings or using a Magisk module? |
This comment has been minimized.
This comment has been minimized.
I tried to move it with the app but had no success so I used the "Move Certificates" module by "yochananmarqos" from the Magisk repo. |
This comment has been minimized.
This comment has been minimized.
I also use "Move Certificates" module too. |
This comment has been minimized.
This comment has been minimized.
Not sure if it worsens ad blocking, but adding googleapis.com to Settings > HTTPS Filtering > Whitelist appears to fix it. |
This comment has been minimized.
This comment has been minimized.
I may have to try that, though I'd be interested to hear how that will affect ad blocking if anyone here knows. |
This comment has been minimized.
This comment has been minimized.
Hm, this is interesting! However, I'd better have HTTPS filtering of this domain disabled for a specific app and not for all apps. Any idea which app connects there? |
This comment has been minimized.
This comment has been minimized.
I disabled https filtering from app com.google.android.gms and SafetyNet check succeeds |
This comment has been minimized.
This comment has been minimized.
@nkartyshov well, I guess we need to figure a way how to disable HTTPS filtering for |
This comment has been minimized.
This comment has been minimized.
Maybe we should extend the current HTTPS filtering exclusions list format and allow specifying app name there? |
This comment has been minimized.
This comment has been minimized.
@ameshkov yes, we can support |
This comment has been minimized.
This comment has been minimized.
It appears this problem is resolved in the beta 3.0 release [3.0.241B (1.3.142cl) specifically]. I haven't been able to test it extensively, but haven't had issues with Magisk Manager being unable to check SafetyNet status since I installed this update. |
This comment has been minimized.
This comment has been minimized.
Awesome, thank you for testing it! |
This comment has been minimized.
This comment has been minimized.
I also tried 3.0.241B, but it doesn't resolve this problem for me if I reset the HTTPs Whitelist( I added googleapis.com to Whitelist by myself ). |
This comment has been minimized.
This comment has been minimized.
Well, in the current version we disabled HTTPS filtering for Google Play Services ( In the next build, we'll use a better solution, disable HTTPS filtering for |
This comment has been minimized.
This comment has been minimized.
Added the googleapis.com domain to the ssl exclusions for the com.google.android.gms app. |
Steps to reproduce
Expected behavior
SafetyNet check should pass.
Actual behavior
"The response is invalid."
Now Safety Net check will pass.
Possibly the problem is related to the fact that Magisk Manager downloads an extra package to perform the Safety Net check, and invokes this as com.topjohnwu.snet. But this plug-in cannot be found under Apps Management in AdGuard, so it is impossible to disable filtering for it.