From 9d3092d1a8ef1f74085726d919e8a1fde0dbcdef Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Sun, 27 Sep 2020 19:07:58 +0200 Subject: [PATCH] universal7885: 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/.hfpclient.HeadsetClientService adb shell pm query-services \ com.android.bluetooth/.sap.SapService Signed-off-by: roynatech2544 --- .../permissions/component-overrides.xml | 22 +++++++++++++++++++ universal7885-common/universal7885-common.mk | 4 ++++ 2 files changed, 26 insertions(+) create mode 100644 universal7885-common/configs/permissions/component-overrides.xml diff --git a/universal7885-common/configs/permissions/component-overrides.xml b/universal7885-common/configs/permissions/component-overrides.xml new file mode 100644 index 0000000..6c93702 --- /dev/null +++ b/universal7885-common/configs/permissions/component-overrides.xml @@ -0,0 +1,22 @@ + + + + + + + + + diff --git a/universal7885-common/universal7885-common.mk b/universal7885-common/universal7885-common.mk index 3b03e11..ad2533e 100644 --- a/universal7885-common/universal7885-common.mk +++ b/universal7885-common/universal7885-common.mk @@ -55,6 +55,10 @@ PRODUCT_PACKAGES += \ android.hardware.camera.provider@2.5-service \ CameraLightSensor +# Component overrides +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/permissions/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml + # DRM PRODUCT_PACKAGES += \ android.hardware.drm@1.0-impl \