summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuncheol Heo <ycheo@google.com>2022-11-22 14:39:47 -0800
committerYuncheol Heo <ycheo@google.com>2022-11-22 14:53:46 -0800
commit9dea9e4cceb45f1eba3e240db5afd5a7d7cb387f (patch)
tree7de83b2227e07749ecf42d13b83c645c55358f7f
parenta723741ebf83c286fdc5944ed886205f03e04937 (diff)
downloadgoogle_car-9dea9e4cceb45f1eba3e240db5afd5a7d7cb387f.tar.gz
Disable the optimazation of System Server in phone_car.
- The optimazation removes the unused hidden apis in System Server, which can cause NoSuchMethodError exception on the access from CarServiceHelperService. Bug: 259601271 Test: build phone_car and check if it boots. Change-Id: I8e5c5e6b461c55559b147e90b83e798bc6e563d3
-rw-r--r--common/pre_google_car.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/pre_google_car.mk b/common/pre_google_car.mk
index 6d5c59f..6012c95 100644
--- a/common/pre_google_car.mk
+++ b/common/pre_google_car.mk
@@ -18,6 +18,9 @@
#### This file should be included at the top of the aosp_PHONE_car.mk file
####
+# CarServiceHelperService accesses the hidden api in the system server.
+SYSTEM_OPTIMIZE_JAVA := false
+
DEVICE_FRAMEWORK_MANIFEST_FILE += device/google_car/common/manifest.xml
# generic_system.mk sets 'PRODUCT_ENFORCE_RRO_TARGETS := *'