Exclude btusb seplicies in gsi targets
This should fix the build breakage on gsi targets.
Bug: 202405948
Test: local build
Change-Id: I23a20dfb10e95a1bfb22aaaaa541a4b7586d38f4
diff --git a/emulator/bluetooth/btlinux-service.mk b/emulator/bluetooth/btlinux-service.mk
index 90342f2..ab427d2 100644
--- a/emulator/bluetooth/btlinux-service.mk
+++ b/emulator/bluetooth/btlinux-service.mk
@@ -19,8 +19,11 @@
PRODUCT_PACKAGES += \
android.hardware.bluetooth@1.1-service.btlinux \
+# Allow sepolicies to be excluded in GSI targets.
+ifeq ($(DO_NOT_INCLUDE_BT_SEPOLICY),)
BOARD_SEPOLICY_DIRS += \
- device/generic/car/emulator/bluetooth/sepolicy \
+ device/generic/car/emulator/bluetooth/sepolicy
+endif
PRODUCT_COPY_FILES += \
device/generic/car/emulator/bluetooth/vendor.qemu.preferred.bt.service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qemu.preferred.bt.service.rc \
diff --git a/gsi_car_base.mk b/gsi_car_base.mk
index 67b8ac9..406c621 100644
--- a/gsi_car_base.mk
+++ b/gsi_car_base.mk
@@ -164,5 +164,6 @@
PRODUCT_PACKAGE_OVERLAYS := device/generic/car/common/overlay
EMULATOR_VENDOR_NO_SENSORS := true
PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
+DO_NOT_INCLUDE_BT_SEPOLICY := true
$(call inherit-product, device/generic/car/emulator/aosp_car_emulator.mk)
EMULATOR_VENDOR_NO_SOUND := true