From 4a88116a0019e9bdae0b26f71c256db4024e9f13 Mon Sep 17 00:00:00 2001 From: Inseob Kim Date: Mon, 5 Feb 2024 17:56:37 +0900 Subject: Use RRO for product-specific resources Currently TeleService is compiled and linked with the argument '--product {PRODUCT_CHARACTERISTICS}' to select product-specific resources. But that causes the app to depend on the product characteristics, making differences of system.img among targets. Setting generate_product_characteristics_rro will automatically generate an RRO package which contains resources having product="{PRODUCT_CHARACTERISTICS}"'. The RRO package will be installed to /product partition. TeleService will be compiled with '--product default', making system.img identical to all targets. Bug: 322932641 Test: TH Change-Id: Ida005dd8ae58e65f2c3ee5917ae992681c5efd35 --- Android.bp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Android.bp b/Android.bp index 1e7b95449..b51af0b44 100644 --- a/Android.bp +++ b/Android.bp @@ -79,6 +79,8 @@ android_app { proto: { type: "lite", }, + + generate_product_characteristics_rro: true, } // Allow other applications to use public constants from SlicePurchaseController -- cgit v1.2.3