Skip to content

Commit 0fee10f

Browse files
committed
Fix: ProGuard rules for Shizuku/AIDL in release builds
1 parent 13da1f0 commit 0fee10f

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

app/proguard-rules.pro

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,28 @@
55
-keepattributes SourceFile,LineNumberTable
66
-keep public class * extends java.lang.Exception
77

8-
# Keep Shizuku
8+
# Keep Shizuku (critical for release builds)
99
-keep class rikka.shizuku.** { *; }
1010
-keep class moe.shizuku.** { *; }
11+
-keepclassmembers class * implements android.os.IInterface {
12+
public *;
13+
}
1114

1215
# Keep libsu
1316
-keep class com.topjohnwu.superuser.** { *; }
1417

15-
# Keep AIDL
18+
# Keep AIDL interfaces
1619
-keep class com.appcontrolx.IShellService { *; }
1720
-keep class com.appcontrolx.IShellService$* { *; }
21+
-keep class * extends android.os.Binder { *; }
22+
23+
# Keep Shizuku UserService
24+
-keep class com.appcontrolx.executor.ShellService { *; }
25+
-keep class com.appcontrolx.executor.ShizukuExecutor { *; }
26+
-keep class com.appcontrolx.executor.ShizukuExecutor$* { *; }
27+
28+
# Keep all executors
29+
-keep class com.appcontrolx.executor.** { *; }
1830

1931
# Keep Models
2032
-keep class com.appcontrolx.model.** { *; }

0 commit comments

Comments
 (0)