Skip to content

Commit 262a4a2

Browse files
committed
#1364 fix: ignore AIDL files from obfuscation so inputting key events with Shizuku works
1 parent c2e28ff commit 262a4a2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/proguard-rules.pro

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,17 @@
6464
-keep class androidx.recyclerview.** { *; }
6565
-keep interface androidx.recyclerview.** { *; }
6666

67+
# Keep all the AIDL classes because they must not be ofuscated for the bindings to work.
68+
-keep class android.hardware.input.IInputManager { *; }
6769
-keep class android.hardware.input.IInputManager$Stub { *; }
70+
-keep class android.content.pm.IPackageManager { *; }
6871
-keep class android.content.pm.IPackageManager$Stub { *; }
72+
-keep class android.permission.IPermissionManager { *; }
6973
-keep class android.permission.IPermissionManager$Stub { *; }
74+
-keep class io.github.sds100.keymapper.api.IKeyEventRelayService { *; }
75+
-keep class io.github.sds100.keymapper.api.IKeyEventRelayService$Stub { *; }
76+
-keep class io.github.sds100.keymapper.api.IKeyEventRelayServiceCallback { *; }
77+
-keep class io.github.sds100.keymapper.api.IKeyEventRelayServiceCallback$Stub { *; }
7078

7179
-keepattributes *Annotation*, InnerClasses
7280
-dontnote kotlinx.serialization.AnnotationsKt # core serialization annotations

0 commit comments

Comments
 (0)