summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-08-22 03:10:00 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-08-22 03:10:00 +0000
commitb39756233266438bfaad7a14bb6d460c3d0217fe (patch)
treeda0a56ee00f2f951df9c73398c41ef49e898fd8b
parentb4fb9a16c0409076159d037af610690ec376adfd (diff)
parent22fb416ab10387302d02c9a25ce40dbff60b5f24 (diff)
downloaddevice_generic_car-android10-qpr1-d-release.tar.gz
device_generic_car-android10-qpr1-d-release.tar.bz2
device_generic_car-android10-qpr1-d-release.zip
Change-Id: I4b61839cb389c686c979956552e099ec3a8416e8
-rw-r--r--common/car.mk4
-rw-r--r--common/car_core_hardware.xml4
-rw-r--r--common/manifest.xml18
-rw-r--r--common/sepolicy/file_contexts2
4 files changed, 27 insertions, 1 deletions
diff --git a/common/car.mk b/common/car.mk
index 4dff8f8..de0250a 100644
--- a/common/car.mk
+++ b/common/car.mk
@@ -64,4 +64,8 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
device/generic/car/common/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml
+# Car emulator specific sepolicy
+BOARD_SEPOLICY_DIRS += \
+ device/generic/car/common/sepolicy
+
$(call inherit-product, packages/services/Car/car_product/build/car.mk)
diff --git a/common/car_core_hardware.xml b/common/car_core_hardware.xml
index 7911cc0..b0d4f12 100644
--- a/common/car_core_hardware.xml
+++ b/common/car_core_hardware.xml
@@ -16,7 +16,6 @@
<!-- This is a copy of frameworks/native/data/etc/car_core_hardware.xml that is somewhat
combined with device/generic/goldfish/data/etc/handheld_core_hardware.xml.
- Notably bluetooth is removed since it does not work in the emulator.
-->
<!-- These are the hardware components that all handheld devices
@@ -38,6 +37,9 @@
<feature name="android.hardware.touchscreen" />
<feature name="android.hardware.microphone" />
+ <!-- Notably bluetooth is added to avoid crashing. It does not work in the emulator. -->
+ <feature name="android.hardware.bluetooth" />
+
<!-- basic system services -->
<feature name="android.software.connectionservice" />
<feature name="android.software.voice_recognizers" notLowRam="true" />
diff --git a/common/manifest.xml b/common/manifest.xml
index 6e1f759..d7eaf2a 100644
--- a/common/manifest.xml
+++ b/common/manifest.xml
@@ -45,6 +45,24 @@
</interface>
</hal>
<hal format="hidl">
+ <name>android.hardware.bluetooth</name>
+ <transport>hwbinder</transport>
+ <version>1.0</version>
+ <interface>
+ <name>IBluetoothHci</name>
+ <instance>default</instance>
+ </interface>
+ </hal>
+ <hal format="hidl">
+ <name>android.hardware.bluetooth.audio</name>
+ <transport>hwbinder</transport>
+ <version>2.0</version>
+ <interface>
+ <name>IBluetoothAudioProvidersFactory</name>
+ <instance>default</instance>
+ </interface>
+ </hal>
+ <hal format="hidl">
<name>android.hardware.audio</name>
<transport>hwbinder</transport>
<version>4.0</version>
diff --git a/common/sepolicy/file_contexts b/common/sepolicy/file_contexts
new file mode 100644
index 0000000..e3e07d2
--- /dev/null
+++ b/common/sepolicy/file_contexts
@@ -0,0 +1,2 @@
+# label the bluetooth@1.0-service.sim or it won't register during system boot
+/vendor/bin/hw/android\.hardware\.bluetooth@1\.0-service\.sim u:object_r:hal_bluetooth_default_exec:s0