Fix proguard for release build (#2441)

This commit is contained in:
LoveSy 2023-03-14 16:03:18 +08:00 committed by GitHub
parent b9233fe0a4
commit 55a488b72a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 50 additions and 1 deletions

View File

@ -4,7 +4,56 @@
-keepclasseswithmembers,includedescriptorclasses class * {
native <methods>;
}
-keepclassmembers class org.lsposed.lspd.impl.LSPosedContext {
getAssets(...);
getResources(...);
getPackageManager(...);
getMainLooper(...);
setTheme(...);
getTheme(...);
getClassLoader(...);
getPackageName(...);
getApplicationInfo(...);
getPackageResourcePath(...);
getPackageCodePath(...);
getSharedPreferences(...);
moveSharedPreferencesFrom(...);
deleteSharedPreferences(...);
openFileInput(...);
deleteFile(...);
getFileStreamPath(...);
getDataDir(...);
getFilesDir(...);
getNoBackupFilesDir(...);
getCacheDir(...);
getCodeCacheDir(...);
fileList(...);
getDir(...);
openOrCreateDatabase(...);
moveDatabaseFrom(...);
deleteDatabase(...);
getDatabasePath(...);
databaseList(...);
getSystemService(...);
getSystemServiceName(...);
createPackageContext(...);
createConfigurationContext(...);
getFrameworkName(...);
getFrameworkVersion(...);
getFrameworkVersionCode(...);
getFrameworkPrivilege(...);
featuredMethod(...);
hookBefore(...);
hookAfter(...);
hook(...);
deoptimize(...);
invokeOrigin(...);
invokeSpecial(...);
newInstanceOrigin(...);
newInstanceSpecial(...);
log(...);
parseDex(...);
}
-assumenosideeffects class android.util.Log {
public static *** v(...);
public static *** d(...);