summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Inseob Kim <inseob@google.com> 2024-02-05 17:53:47 +0900
committer Inseob Kim <inseob@google.com> 2024-02-05 17:53:47 +0900
commit7ea054e6b44405c860d298800e476e504b06683d (patch)
treea9a7b27d8fc17a4c20b6b2573032297218f3a815
parent77ff5996acbe3cd2fde0f9eb559d3e77c3b48e3e (diff)
Use RRO for product-specific resources
Currently CompanionDeviceManager 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. CompanionDeviceManager will be compiled with '--product default', making system.img identical to all targets. Bug: 322932641 Test: TH Change-Id: I0677e2e6c435ae9cfc4141c1ba7d569e3579ff69
-rw-r--r--packages/CompanionDeviceManager/Android.bp2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/CompanionDeviceManager/Android.bp b/packages/CompanionDeviceManager/Android.bp
index f6458c26f309..ce32ec4321dc 100644
--- a/packages/CompanionDeviceManager/Android.bp
+++ b/packages/CompanionDeviceManager/Android.bp
@@ -46,4 +46,6 @@ android_app {
],
platform_apis: true,
+
+ generate_product_characteristics_rro: true,
}