From 05361a4024fd023fd426412185913a67289dd433 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Fri, 27 Oct 2023 13:11:54 +0100 Subject: [PATCH] deadpool: Properly overlay Bluetooth apex Change-Id: I87c4f1136fd68490bd55bda4033f36988cbd57f1 --- device.mk | 7 ++----- rro_overlays/BluetoothOverlay/Android.bp | 11 +++++++++++ .../BluetoothOverlay/AndroidManifest.xml | 17 +++++++++++++++++ .../BluetoothOverlay}/res/values/config.xml | 0 4 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 rro_overlays/BluetoothOverlay/Android.bp create mode 100644 rro_overlays/BluetoothOverlay/AndroidManifest.xml rename {overlay/packages/apps/Bluetooth => rro_overlays/BluetoothOverlay}/res/values/config.xml (100%) diff --git a/device.mk b/device.mk index dcbaa9c..d220975 100644 --- a/device.mk +++ b/device.mk @@ -1,11 +1,12 @@ # -# Copyright (C) 2021-2022 The LineageOS Project +# Copyright (C) 2021-2023 The LineageOS Project # # SPDX-License-Identifier: Apache-2.0 # ## Bluetooth PRODUCT_PACKAGES += \ + DeadpoolBluetoothOverlay \ libbt-vendor ## Init-Files @@ -16,10 +17,6 @@ PRODUCT_COPY_FILES += \ PRODUCT_PACKAGES += \ dhd -## Overlays -DEVICE_PACKAGE_OVERLAYS += \ - $(LOCAL_PATH)/overlay - ## Wi-Fi Firmware include hardware/amlogic/kernel-modules/dhd-driver/firmware/firmware.mk diff --git a/rro_overlays/BluetoothOverlay/Android.bp b/rro_overlays/BluetoothOverlay/Android.bp new file mode 100644 index 0000000..7958d94 --- /dev/null +++ b/rro_overlays/BluetoothOverlay/Android.bp @@ -0,0 +1,11 @@ +// +// Copyright (C) 2023 The LineageOS Project +// +// SPDX-License-Identifier: Apache-2.0 +// +runtime_resource_overlay { + name: "DeadpoolBluetoothOverlay", + resource_dirs: ["res"], + sdk_version: "current", + proprietary: true +} diff --git a/rro_overlays/BluetoothOverlay/AndroidManifest.xml b/rro_overlays/BluetoothOverlay/AndroidManifest.xml new file mode 100644 index 0000000..c93a920 --- /dev/null +++ b/rro_overlays/BluetoothOverlay/AndroidManifest.xml @@ -0,0 +1,17 @@ + + + + + + + diff --git a/overlay/packages/apps/Bluetooth/res/values/config.xml b/rro_overlays/BluetoothOverlay/res/values/config.xml similarity index 100% rename from overlay/packages/apps/Bluetooth/res/values/config.xml rename to rro_overlays/BluetoothOverlay/res/values/config.xml -- 2.20.1