From 11ab928812fa8c7bcc78aeff3b1d2f11598d7c47 Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Thu, 10 Oct 2019 08:15:55 -0700 Subject: [PATCH] santoni: Use component-override to configure crosshatch 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 crosshatch devices. 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: I89ba2aa61492f65b269849597282594507d2fdc3 --- component-overrides.xml | 20 +++++++++++++++ device.mk | 4 +++ .../apps/Bluetooth/res/values/config.xml | 25 ------------------- 3 files changed, 24 insertions(+), 25 deletions(-) create mode 100644 component-overrides.xml delete mode 100644 overlay/packages/apps/Bluetooth/res/values/config.xml diff --git a/component-overrides.xml b/component-overrides.xml new file mode 100644 index 00000000..bb3419d8 --- /dev/null +++ b/component-overrides.xml @@ -0,0 +1,20 @@ + + + + + + + \ No newline at end of file diff --git a/device.mk b/device.mk index c3f0e957..98a28ba7 100644 --- a/device.mk +++ b/device.mk @@ -160,6 +160,10 @@ PRODUCT_PACKAGES += \ antradio_app \ AntHalService +# Bluetooth +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml + # Camera PRODUCT_PACKAGES += \ camera.msm8937 \ 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 b9ddeb95..00000000 --- a/overlay/packages/apps/Bluetooth/res/values/config.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - false - false - false - false - - - false -