• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2#
3# Copyright (C) 2022 The Android Open-Source Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9#      http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17# Bluetooth HAL and Pixel extension
18DEVICE_MANIFEST_FILE += \
19       device/google/tangorpro/bluetooth/manifest_bluetooth.xml
20BOARD_SEPOLICY_DIRS += device/google/tangorpro-sepolicy/bluetooth
21PRODUCT_PACKAGES += android.hardware.bluetooth@1.1-service.synabtlinux
22# Bluetooth SAR test tools
23PRODUCT_PACKAGES_DEBUG += bt_sar_test
24
25# Bluetooth Tx power caps
26PRODUCT_COPY_FILES += \
27    device/google/tangorpro/bluetooth/bluetooth_power_limits_tangorpro.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv \
28    device/google/tangorpro/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_CA.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GTU8P_CA.csv \
29    device/google/tangorpro/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GTU8P_EU.csv \
30    device/google/tangorpro/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_JP.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GTU8P_JP.csv \
31    device/google/tangorpro/bluetooth/bluetooth_power_limits_tangorpro_GTU8P_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GTU8P_US.csv \
32
33# default BDADDR for EVB only
34PRODUCT_PROPERTY_OVERRIDES += \
35       ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"
36PRODUCT_PROPERTY_OVERRIDES += \
37    ro.bluetooth.a2dp_offload.supported=true \
38    persist.bluetooth.a2dp_offload.disabled=false \
39    persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac
40PRODUCT_PRODUCT_PROPERTIES += \
41    persist.bluetooth.firmware.selection="BTFW.hcd"
42
43# Disable MAP, PBAP and SAP profiles
44PRODUCT_PRODUCT_PROPERTIES += \
45       bluetooth.profile.map.server.enabled=false \
46       bluetooth.profile.pbap.server.enabled=false \
47       bluetooth.profile.sap.server.enabled=false \
48
49BLUETOOTH_UART_PORT = /dev/ttySAC18
50
51# Inject soong bluetooth configurations
52$(call soong_config_set,bluetooth,bluetooth_uart_port,$(BLUETOOTH_UART_PORT))
53