From 945603ff8ed062ecda3566d4dc08de63e7f70a2b 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 Merged-In: I150ad8a26e03b35de2f41879272502341f296387 (cherry picked from commit 34d16ec08d64e855991445c3cda8055f15ebc9ab) --- core/res/Android.bp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/res/Android.bp b/core/res/Android.bp index c42517d8a8731..179eff809c966 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: [