Disable modemml-tflite-service for aosp build

For aosp build, the vendor module `modemml-tflite-service` is not included so it shouldn't be added as a system_server jar.

Bug: 343341492
Bug: 343367700
Test: Build with target non-aosp targets in presubmit and aosp targets following the reproduce steps in b/343341492
Change-Id: Ib32ec2c31570eb3566c80de4ed510f17ec9e9a39
This commit is contained in:
Kah Xuan Lim 2024-06-04 06:05:01 +00:00
parent be1d9ec9f4
commit 6f9888658d

View file

@ -970,11 +970,13 @@ PRODUCT_PACKAGES += modem_svc_sit
# modem_ml_svc_sit daemon
PRODUCT_PACKAGES += modem_ml_svc_sit
ifeq (,$(filter aosp_%,$(TARGET_PRODUCT)))
# Modem ML TFLite service.
PRODUCT_PACKAGES += modemml-tflite-service \
libtensorflowlite_jni
PRODUCT_SYSTEM_SERVER_JARS += modemml-tflite-service
endif
# modem ML models configs
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))