From 55a4bc48a9cec3f9f7e86388f534bfa9a89413fb Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Thu, 10 Oct 2019 08:09:29 -0700 Subject: 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/.a2dpsink.A2dpSinkService adb shell pm query-services \ com.android.bluetooth/.avrcp.AvrcpTargetService adb shell pm query-services \ com.android.bluetooth/.avrcpcontroller.AvrcpControllerService adb shell pm query-services \ com.android.bluetooth/.ba.BATService 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-qti.xml | 21 ++++++++++++ configs/component-overrides.xml | 23 ++++++++++++++ .../packages/apps/Bluetooth/res/values/config.xml | 35 -------------------- .../packages/apps/Bluetooth/res/values/config.xml | 37 ---------------------- sdm660.mk | 10 +++--- 5 files changed, 50 insertions(+), 76 deletions(-) create mode 100644 configs/component-overrides-qti.xml create mode 100644 configs/component-overrides.xml delete mode 100644 overlay-system/vendor/qcom/opensource/commonsys/packages/apps/Bluetooth/res/values/config.xml delete mode 100644 overlay/vendor/qcom/opensource/commonsys/packages/apps/Bluetooth/res/values/config.xml diff --git a/configs/component-overrides-qti.xml b/configs/component-overrides-qti.xml new file mode 100644 index 0000000..4e257b0 --- /dev/null +++ b/configs/component-overrides-qti.xml @@ -0,0 +1,21 @@ + + + + + + + + diff --git a/configs/component-overrides.xml b/configs/component-overrides.xml new file mode 100644 index 0000000..a4fd25e --- /dev/null +++ b/configs/component-overrides.xml @@ -0,0 +1,23 @@ + + + + + + + + + + diff --git a/overlay-system/vendor/qcom/opensource/commonsys/packages/apps/Bluetooth/res/values/config.xml b/overlay-system/vendor/qcom/opensource/commonsys/packages/apps/Bluetooth/res/values/config.xml deleted file mode 100644 index 027ac61..0000000 --- a/overlay-system/vendor/qcom/opensource/commonsys/packages/apps/Bluetooth/res/values/config.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - true - false - diff --git a/overlay/vendor/qcom/opensource/commonsys/packages/apps/Bluetooth/res/values/config.xml b/overlay/vendor/qcom/opensource/commonsys/packages/apps/Bluetooth/res/values/config.xml deleted file mode 100644 index 68b18d8..0000000 --- a/overlay/vendor/qcom/opensource/commonsys/packages/apps/Bluetooth/res/values/config.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - true - true - false - true - diff --git a/sdm660.mk b/sdm660.mk index 4da3845..e78d4bd 100644 --- a/sdm660.mk +++ b/sdm660.mk @@ -28,12 +28,9 @@ PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true # Overlays DEVICE_PACKAGE_OVERLAYS += \ $(LOCAL_PATH)/overlay \ - $(LOCAL_PATH)/overlay-lineage \ - $(LOCAL_PATH)/overlay-system + $(LOCAL_PATH)/overlay-lineage PRODUCT_ENFORCE_RRO_TARGETS := * -PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += \ - $(LOCAL_PATH)/overlay-system # Soong namespaces PRODUCT_SOONG_NAMESPACES += \ @@ -189,6 +186,11 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml +# Component overrides +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml \ + $(LOCAL_PATH)/configs/component-overrides-qti.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/component-overrides.xml + # Display PRODUCT_PACKAGES += \ gralloc.sdm660 \ -- cgit v1.2.3