From 8b18ceac1930a8568fbe3e788705618ec4c09a54 Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Thu, 10 Oct 2019 08:09:29 -0700 Subject: [PATCH] sm6250-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 --- atoll.mk | 4 ++++ configs/component-overrides.xml | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 configs/component-overrides.xml diff --git a/atoll.mk b/atoll.mk index 5fe44b7..bbcef1d 100644 --- a/atoll.mk +++ b/atoll.mk @@ -100,6 +100,10 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ Snap +# Component overrides +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml + # Rootdir PRODUCT_PACKAGES += \ init.qcom.early_boot.sh \ diff --git a/configs/component-overrides.xml b/configs/component-overrides.xml new file mode 100644 index 0000000..99c2115 --- /dev/null +++ b/configs/component-overrides.xml @@ -0,0 +1,22 @@ + + + + + + + + +