From 1e203fcfbec5c0217bde93fb06fafbea2af347d6 Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Thu, 10 Oct 2019 08:09:29 -0700 Subject: [PATCH] sdm660-common: 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. Remove usages of profile_supported_* from overlays as they no longer configure the enable state of Bluetooth components. Bug: 135048762 Test: adb shell pm query-services \ com.android.bluetooth/.avrcpcontroller.AvrcpControllerService adb shell pm query-services \ com.android.bluetooth/.hid.HidDeviceService adb shell pm query-services \ com.android.bluetooth/.sap.SapService Change-Id: I284d254a921b14d1533745611a083f4b5a27d9dc --- configs/component-overrides.xml | 22 +++++++++++ .../apps/Bluetooth/res/values/config.xml | 37 ------------------- sdm660.mk | 4 ++ 3 files changed, 26 insertions(+), 37 deletions(-) create mode 100644 configs/component-overrides.xml delete mode 100755 overlay/packages/apps/Bluetooth/res/values/config.xml diff --git a/configs/component-overrides.xml b/configs/component-overrides.xml new file mode 100644 index 00000000..21893bec --- /dev/null +++ b/configs/component-overrides.xml @@ -0,0 +1,22 @@ + + + + + + + + + diff --git a/overlay/packages/apps/Bluetooth/res/values/config.xml b/overlay/packages/apps/Bluetooth/res/values/config.xml deleted file mode 100755 index 9624f83f..00000000 --- a/overlay/packages/apps/Bluetooth/res/values/config.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - true - false - true - diff --git a/sdm660.mk b/sdm660.mk index 24bd78fb..b99745cd 100644 --- a/sdm660.mk +++ b/sdm660.mk @@ -173,6 +173,10 @@ PRODUCT_PACKAGES += \ com.android.media.swcodec \ libsfplugin_ccodec +# Component overrides +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml + # Connectivity Engine support (CNE) PRODUCT_PACKAGES += \ cneapiclient \