From 1552f32e09076f1d855f7b59ca9714f4a3d36365 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Mon, 30 Jul 2018 20:42:42 +0800 Subject: [PATCH] Keep the methods in SN check interface For some reason, Proguard optimization will remove the method --- .../full/java/com/topjohnwu/magisk/utils/ISafetyNetHelper.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/full/java/com/topjohnwu/magisk/utils/ISafetyNetHelper.java b/app/src/full/java/com/topjohnwu/magisk/utils/ISafetyNetHelper.java index e4c329ec4..562418e1a 100644 --- a/app/src/full/java/com/topjohnwu/magisk/utils/ISafetyNetHelper.java +++ b/app/src/full/java/com/topjohnwu/magisk/utils/ISafetyNetHelper.java @@ -12,7 +12,10 @@ public interface ISafetyNetHelper { int BASIC_PASS = 0x10; int CTS_PASS = 0x20; + @Keep void attest(); + + @Keep int getVersion(); interface Callback {