From: Bruno Martins Date: Fri, 27 Oct 2023 12:11:54 +0000 (+0100) Subject: dopinder: Properly overlay Bluetooth apex X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9ed97d7333a131e2b59d3f971e2931c2fdfbb6c5;p=GitHub%2FLineageOS%2FG12%2Fandroid_device_askey_dopinder.git dopinder: Properly overlay Bluetooth apex Change-Id: I87c4f1136fd68490bd55bda4033f36988cbd57f1 --- diff --git a/device.mk b/device.mk index 94207e8..da93c18 100644 --- a/device.mk +++ b/device.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2021-2022 The LineageOS Project +# Copyright (C) 2021-2023 The LineageOS Project # # SPDX-License-Identifier: Apache-2.0 # @@ -8,6 +8,9 @@ BOARD_HAVE_BLUETOOTH_RTK_TV := true include hardware/realtek/rtkbt/rtkbt.mk +PRODUCT_PACKAGES += \ + DopinderBluetoothOverlay + ## GMS ifeq ($(WITH_GMS),true) GMS_MAKEFILE=gms_minimal.mk @@ -21,10 +24,6 @@ PRODUCT_COPY_FILES += \ PRODUCT_PACKAGES += \ 8822cs -## Overlays -DEVICE_PACKAGE_OVERLAYS += \ - $(LOCAL_PATH)/overlay - ## Inherit from the common tree product makefile $(call inherit-product, device/amlogic/g12-common/g12.mk) diff --git a/overlay/packages/apps/Bluetooth/res/values/config.xml b/overlay/packages/apps/Bluetooth/res/values/config.xml deleted file mode 100644 index 7df2fca..0000000 --- a/overlay/packages/apps/Bluetooth/res/values/config.xml +++ /dev/null @@ -1,22 +0,0 @@ - - false - false - false - false - false - false - false - - false - false - false - false - false - - true - true - true - true - true - true - diff --git a/rro_overlays/BluetoothOverlay/Android.bp b/rro_overlays/BluetoothOverlay/Android.bp new file mode 100644 index 0000000..1e0ae37 --- /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: "DopinderBluetoothOverlay", + 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..963847b --- /dev/null +++ b/rro_overlays/BluetoothOverlay/AndroidManifest.xml @@ -0,0 +1,17 @@ + + + + + + + diff --git a/rro_overlays/BluetoothOverlay/res/values/config.xml b/rro_overlays/BluetoothOverlay/res/values/config.xml new file mode 100644 index 0000000..7df2fca --- /dev/null +++ b/rro_overlays/BluetoothOverlay/res/values/config.xml @@ -0,0 +1,22 @@ + + false + false + false + false + false + false + false + + false + false + false + false + false + + true + true + true + true + true + true +