Skip to content

Commit

Permalink
[daemon] Fix proguard (LSPosed#1505)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-TSNG authored Dec 30, 2021
1 parent 73cfc94 commit 23c044a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 25 deletions.
4 changes: 0 additions & 4 deletions core/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
-keepclasseswithmembers class org.lsposed.lspd.core.Main {
public static void forkSystemServerPost(android.os.IBinder);
public static void forkAndSpecializePost(java.lang.String, java.lang.String, android.os.IBinder);
public static void main(java.lang.String[]);
}
-keepclasseswithmembers,includedescriptorclasses class * {
native <methods>;
Expand All @@ -15,9 +14,6 @@
public static boolean *(android.os.IBinder, int, long, long, int);
public static android.os.IBinder getApplicationServiceForSystemServer(android.os.IBinder, android.os.IBinder);
}
-keepclasseswithmembers class org.lsposed.lspd.service.LogcatService {
private int refreshFd(boolean);
}

-keepclassmembers class ** implements android.content.ContextWrapper {
public int getUserId();
Expand Down
30 changes: 9 additions & 21 deletions daemon/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-keepclasseswithmembers,includedescriptorclasses class * {
native <methods>;
}
-keepclasseswithmembers class org.lsposed.lspd.Main {
public static void main(java.lang.String[]);
}
-keepclasseswithmembers class org.lsposed.lspd.service.LogcatService {
private int refreshFd(boolean);
}

0 comments on commit 23c044a

Please sign in to comment.