Strip verbose logs in SystemUI
This change adds rules to proguard.flags to strip Log.v and Slog.v in SystemUI. This results in a 37.5KiB reduction in dex size. Stripping will only occur in user/userdebug builds; eng builds will not be affected Test: Build; check before/after .apk using ApkDiffStats. Bug: 223674938 Change-Id: I203c589ea8a856bf3dc01bc876dbd2231c336d41
This commit is contained in:
@@ -90,3 +90,12 @@
|
||||
# on every field access without this.
|
||||
static void throwUninitializedPropertyAccessException(java.lang.String);
|
||||
}
|
||||
# Strip verbose logs.
|
||||
-assumenosideeffects class android.util.Log {
|
||||
static *** v(...);
|
||||
static *** isLoggable(...);
|
||||
}
|
||||
-assumenosideeffects class android.util.Slog {
|
||||
static *** v(...);
|
||||
}
|
||||
-maximumremovedandroidloglevel 2
|
||||
|
||||
Reference in New Issue
Block a user