From 07a6e311a21a7446b160ae7329a9e5cda8f30aac Mon Sep 17 00:00:00 2001 From: oasisfeng Date: Tue, 23 Jul 2019 00:08:48 +0800 Subject: [PATCH] FIX: Use updated version of Hack.mirrorStaticMethod() to avoid troubles caused by R8. --- shared/src/main/java/com/oasisfeng/island/util/Hacks.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shared/src/main/java/com/oasisfeng/island/util/Hacks.java b/shared/src/main/java/com/oasisfeng/island/util/Hacks.java index 57d8548b1..396017206 100644 --- a/shared/src/main/java/com/oasisfeng/island/util/Hacks.java +++ b/shared/src/main/java/com/oasisfeng/island/util/Hacks.java @@ -141,7 +141,9 @@ interface OpEntry extends Hack.Mirror { void setMode(int code, int uid, String packageName, int mode); /** Retrieve the default mode for the operation. */ - static int opToDefaultMode(final int op) { return Hack.mirrorStaticMethod("opToDefaultMode", -1, op); } + static int opToDefaultMode(final int op) { + return Hack.mirrorStaticMethod(AppOpsManager.class, "opToDefaultMode", -1, op); + } } public interface UserManagerHack extends Hack.Mirror {