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/.hid.HidDeviceService
      adb shell pm query-services \
      com.android.bluetooth/.sap.SapService
This commit is contained in:
Ryan Mitchell 2019-10-10 08:09:29 -07:00 committed by roynatech2544
commit 3399fe3a01
No known key found for this signature in database
GPG key ID: 9675C32163D88D30
3 changed files with 28 additions and 4 deletions

View file

@ -174,10 +174,6 @@ PRODUCT_COPY_FILES += \
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-derp
# Google Photos
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/pixel/pixel_eureka.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/pixel_eureka.xml
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \
@ -287,6 +283,12 @@ PRODUCT_SOONG_NAMESPACES += \
hardware/google/pixel \
device/samsung/universal7885-common/aidl/power-libperfmgr
# Sysconfig
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/sysconfig/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides-bt.xml \
$(LOCAL_PATH)/configs/sysconfig/pixel_eureka.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/pixel_eureka.xml
# Thermal HAL
PRODUCT_PACKAGES += \
android.hardware.thermal@2.0-service.pixel \