aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2021-03-23 22:01:05 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2021-03-23 22:01:05 +0000
commit95f0bcc921e3e536eef871f4fb5750901b969bd6 (patch)
tree741f1f0ba701dc13e898a4bd3fce3ecd56930269
parentbc91f74351237ded90e2665e03965e1f11b1752d (diff)
parent77dd584ff205c98b7a8e25aa709e143881183ecb (diff)
downloadcuttlefish-android11-d2-release.tar.gz
Change-Id: I6309148bad47bdef3b7b86f3a6cb235c8a633a05
-rw-r--r--shared/auto/device.mk1
-rw-r--r--shared/config/manifest.xml9
-rw-r--r--shared/config/manifest_android.hardware.bluetooth@1.1-service.xml29
-rw-r--r--shared/device.mk12
4 files changed, 39 insertions, 12 deletions
diff --git a/shared/auto/device.mk b/shared/auto/device.mk
index dbe984ca2..52488369d 100644
--- a/shared/auto/device.mk
+++ b/shared/auto/device.mk
@@ -39,6 +39,7 @@ ifneq ($(LOCAL_SENSOR_FILE_OVERRIDES),true)
endif
PRODUCT_COPY_FILES += \
+ 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.screen.landscape.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.screen.landscape.xml \
frameworks/native/data/etc/android.software.activities_on_secondary_displays.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.activities_on_secondary_displays.xml \
diff --git a/shared/config/manifest.xml b/shared/config/manifest.xml
index 0e500d22c..0ba25dae4 100644
--- a/shared/config/manifest.xml
+++ b/shared/config/manifest.xml
@@ -68,15 +68,6 @@
</hal>
-->
<hal format="hidl">
- <name>android.hardware.bluetooth</name>
- <transport>hwbinder</transport>
- <version>1.1</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>
diff --git a/shared/config/manifest_android.hardware.bluetooth@1.1-service.xml b/shared/config/manifest_android.hardware.bluetooth@1.1-service.xml
new file mode 100644
index 000000000..4d70779e0
--- /dev/null
+++ b/shared/config/manifest_android.hardware.bluetooth@1.1-service.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2021, The Android Open Source Project.
+**
+** Licensed under the Apache License, Version 2.0 (the "License");
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
+**
+** http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+-->
+<manifest version="1.0" type="device">
+ <hal format="hidl">
+ <name>android.hardware.bluetooth</name>
+ <transport>hwbinder</transport>
+ <version>1.1</version>
+ <interface>
+ <name>IBluetoothHci</name>
+ <instance>default</instance>
+ </interface>
+ </hal>
+</manifest>
diff --git a/shared/device.mk b/shared/device.mk
index 55f8f90f5..31b519660 100644
--- a/shared/device.mk
+++ b/shared/device.mk
@@ -272,9 +272,15 @@ PRODUCT_PACKAGES += \
#
# Bluetooth HAL and Compatibility Bluetooth library (for older revs).
#
-PRODUCT_PACKAGES += \
- android.hardware.bluetooth@1.1-service.sim \
- android.hardware.bluetooth.audio@2.0-impl
+ifeq ($(LOCAL_BLUETOOTH_PRODUCT_PACKAGE),)
+ LOCAL_BLUETOOTH_PRODUCT_PACKAGE := \
+ android.hardware.bluetooth@1.1-service.sim
+ DEVICE_MANIFEST_FILE += device/google/cuttlefish/shared/config/manifest_android.hardware.bluetooth@1.1-service.xml
+endif
+
+PRODUCT_PACKAGES += $(LOCAL_BLUETOOTH_PRODUCT_PACKAGE)
+
+PRODUCT_PACKAGES += android.hardware.bluetooth.audio@2.0-impl
#
# Audio HAL