summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/res/Android.bp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/res/Android.bp b/core/res/Android.bp
index 93ce7832824b..7e17840445ab 100644
--- a/core/res/Android.bp
+++ b/core/res/Android.bp
@@ -130,6 +130,10 @@ android_app {
// Allow overlay to add resource
"--auto-add-overlay",
+
+ // Framework resources benefit tremendously from enabling sparse encoding, saving tens
+ // of MBs in size and RAM use.
+ "--enable-sparse-encoding",
],
resource_zips: [