summaryrefslogtreecommitdiffstats
path: root/common/car.mk
diff options
context:
space:
mode:
Diffstat (limited to 'common/car.mk')
-rw-r--r--common/car.mk31
1 files changed, 20 insertions, 11 deletions
diff --git a/common/car.mk b/common/car.mk
index 2dbccb9..4dff8f8 100644
--- a/common/car.mk
+++ b/common/car.mk
@@ -16,8 +16,11 @@
# Auto modules
PRODUCT_PACKAGES += \
- android.hardware.broadcastradio@2.0-service \
- android.hardware.automotive.vehicle@2.0-service
+ android.hardware.automotive.vehicle@2.0-service \
+ android.hardware.automotive.audiocontrol@1.0-service \
+ android.hardware.bluetooth@1.0-service.sim \
+ android.hardware.bluetooth.audio@2.0-impl \
+ android.hardware.broadcastradio@2.0-service
# Emulator configuration
PRODUCT_COPY_FILES += \
@@ -28,6 +31,11 @@ PRODUCT_COPY_FILES += \
packages/services/Car/car_product/init/init.bootstat.rc:root/init.bootstat.rc \
packages/services/Car/car_product/init/init.car.rc:root/init.car.rc
+# Copy car_core_hardware and overwrite handheld_core_hardware.xml with a dummy config.
+PRODUCT_COPY_FILES += \
+ device/generic/car/common/android.hardware.dummy.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
+ device/generic/car/common/car_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/car_core_hardware.xml
+
# Enable landscape
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.screen.landscape.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.screen.landscape.xml
@@ -38,21 +46,22 @@ PRODUCT_COPY_FILES += \
# Permission for Wi-Fi passpoint support
PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:system/etc/permissions/android.hardware.wifi.passpoint.xml
+ frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml
-# Overwrite handheld_core_hardware.xml with a dummy config.
+# Additional permissions
+PRODUCT_COPY_FILES += \
+ frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
+ frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
+ frameworks/native/data/etc/android.hardware.broadcastradio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.broadcastradio.xml \
+ frameworks/native/data/etc/android.hardware.type.automotive.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.type.automotive.xml \
+
+# Copy APN configs
PRODUCT_COPY_FILES += \
- device/generic/car/common/android.hardware.dummy.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \
device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml \
- device/sample/etc/old-apns-conf.xml:system/etc/old-apns-conf.xml \
- device/generic/car/common/car_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/car_core_hardware.xml \
- frameworks/native/data/etc/android.hardware.type.automotive.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.type.automotive.xml
+ device/sample/etc/old-apns-conf.xml:system/etc/old-apns-conf.xml
# Vendor Interface Manifest
PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.hardware.broadcastradio.xml:$(TARGET_COPY_OUT_VENDOR)/system/etc/permissions/android.hardware.broadcastradio.xml \
device/generic/car/common/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml
-TARGET_USES_CAR_FUTURE_FEATURES := true
-
$(call inherit-product, packages/services/Car/car_product/build/car.mk)