From 4b881319773cdd728c16dbc5f18afd8a84685a47 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Fri, 1 Feb 2019 06:21:55 -0500 Subject: [PATCH] Fix snet on release builds --- app/proguard-rules.pro | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 9ede658cd..01d749710 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -22,8 +22,12 @@ -keep,allowoptimization class org.bouncycastle.jcajce.provider.digest.SHA1** { *; } -dontwarn javax.naming.** -# Snet extention +# Snet -keepclassmembers class com.topjohnwu.magisk.utils.ISafetyNetHelper { *; } +-keep,allowobfuscation interface com.topjohnwu.magisk.utils.ISafetyNetHelper$Callback +-keepclassmembers class * implements com.topjohnwu.magisk.utils.ISafetyNetHelper$Callback { + void onResponse(int); +} # BootSigner -keepclassmembers class com.topjohnwu.signer.BootSigner { *; }