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:
Kevin Jeon
2022-05-03 21:49:19 +00:00
parent 09dd375de7
commit d79d0d736c

View File

@@ -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