From aedf08f9cfe56849458694a7e24af66c13fb583b Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Thu, 10 Oct 2019 08:09:29 -0700 Subject: [PATCH] davinci: Use component-override to configure Bluetooth Runtime Resource Overlays (RROs) can no longer change the value of resources in manifest when read during PackagerParser. This change uses component-override to enable the service by default on this device. Remove usages of profile_supported_sap from overlays as they no longer configure the enable state of .sap.SapService. Bug: 135048762 Test: adb shell pm query-services \ com.android.bluetooth/.sap.SapService Change-Id: I284d254a921b14d1533745611a083f4b5a27d9dc --- .../config.xml => configs/component-overrides.xml | 10 ++++++---- device.mk | 3 +++ 2 files changed, 9 insertions(+), 4 deletions(-) rename overlay/packages/apps/Bluetooth/res/values/config.xml => configs/component-overrides.xml (73%) diff --git a/overlay/packages/apps/Bluetooth/res/values/config.xml b/configs/component-overrides.xml similarity index 73% rename from overlay/packages/apps/Bluetooth/res/values/config.xml rename to configs/component-overrides.xml index 9b1b241..bb3419d 100644 --- a/overlay/packages/apps/Bluetooth/res/values/config.xml +++ b/configs/component-overrides.xml @@ -1,5 +1,5 @@ - - - true - + + + + + \ No newline at end of file diff --git a/device.mk b/device.mk index 11eb839..5ce6b27 100644 --- a/device.mk +++ b/device.mk @@ -92,6 +92,9 @@ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml # Bluetooth +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml + PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \ frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml