Quellcode durchsuchen

Bluetooth: update the HAL to be IBluetoothHci @1.1

A build flag TARGET_BLUETOOTH_HCI_V1_1 to control the implementation version

Bug: 202113218
Test: pass Bluetooth ON / OFF manually test
Change-Id: I42b8e9fede9c38c51a6498df52f514f0841fca17
Cheney Ni vor 3 Jahren
Ursprung
Commit
3da8ff16ce
2 geänderte Dateien mit 7 neuen und 2 gelöschten Zeilen
  1. 1 1
      bluetooth/manifest_bluetooth.xml
  2. 6 1
      bluetooth/qti_default.mk

+ 1 - 1
bluetooth/manifest_bluetooth.xml

@@ -2,7 +2,7 @@
     <hal format="hidl">
         <name>android.hardware.bluetooth</name>
         <transport>hwbinder</transport>
-        <version>1.0</version>
+        <version>1.1</version>
         <interface>
             <name>IBluetoothHci</name>
             <instance>default</instance>

+ 6 - 1
bluetooth/qti_default.mk

@@ -23,14 +23,19 @@ BOARD_SEPOLICY_DIRS += device/google/lynx-sepolicy/bluetooth
 BOARD_HAVE_BLUETOOTH_QCOM = true
 BOARD_USES_COMMON_BLUETOOTH_HAL = true
 QCOM_BLUETOOTH_USING_DIAG = false
+TARGET_BLUETOOTH_HCI_V1_1 = true
 TARGET_BLUETOOTH_UART_DEVICE = "/dev/ttySAC18"
 UART_USE_TERMIOS_AFC = true
 TARGET_USE_QTI_BT_OBS = true
 TARGET_USE_QTI_BT_SAR = true
 TARGET_USE_QTI_BT_CHANNEL_AVOIDANCE = true
+ifeq ($(TARGET_BLUETOOTH_HCI_V1_1),true)
+   PRODUCT_PACKAGES += [email protected]
+else
+   PRODUCT_PACKAGES += [email protected]
+endif
 PRODUCT_PACKAGES += \
 	[email protected] \
-	[email protected] \
 	[email protected] \
 	[email protected]