sdm710-common: Define Bluetooth capabilities through component overrides

Change-Id: I6cf902e0ca554aa4178a1eb6de7824a10e6e0645
This commit is contained in:
Sebastiano Barezzi
2022-02-09 15:31:47 +01:00
parent 72dd785a51
commit e3e87c5433
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2019 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<config>
<component-override package="com.android.bluetooth" >
<component class=".avrcpcontroller.AvrcpControllerService" enabled="true" />
<component class=".hid.HidDeviceService" enabled="true" />
<component class=".sap.SapService" enabled="true" />
</component-override>
</config>

View File

@@ -67,6 +67,10 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
android.hardware.ir@1.0-service.xiaomi
# Component overrides
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
# Overlays
PRODUCT_ENFORCE_RRO_TARGETS := *