From 34d16ec08d64e855991445c3cda8055f15ebc9ab Mon Sep 17 00:00:00 2001 From: Yurii Zubrytskyi Date: Tue, 30 Aug 2022 08:54:42 -0700 Subject: [PATCH] Switch Framework resources to sparse encoding Bug: 234059741 Test: manual + presubmits Change-Id: I150ad8a26e03b35de2f41879272502341f296387 --- core/res/Android.bp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/res/Android.bp b/core/res/Android.bp index 93ce7832824b2..7e17840445ab6 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: [