From b44dcc2da0c41a975a4793a5f5f35e2ce89bc4ec Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Mon, 24 Aug 2020 06:03:14 +0800 Subject: [PATCH] Fix SafetyNet --- app/proguard-rules.pro | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index dfa293cf4..47c455491 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -32,10 +32,12 @@ -keepclassmembers class com.topjohnwu.magisk.ui.safetynet.SafetyNetHelper { *; } -keep,allowobfuscation interface com.topjohnwu.magisk.ui.safetynet.SafetyNetHelper$Callback -keepclassmembers class * implements com.topjohnwu.magisk.ui.safetynet.SafetyNetHelper$Callback { - void onResponse(int); + void onResponse(org.json.JSONObject); } # Fragments +# TODO: Remove when AGP 4.1 release +# https://issuetracker.google.com/issues/142601969 -keep,allowobfuscation class * extends androidx.fragment.app.Fragment # Strip Timber verbose and debug logging