mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_polaris
synced 2026-01-27 18:40:05 +00:00
polaris: Override vendor's usb_audio_policy_configuration
Android 8.1 added the support for new type of USB Audio devices (USB_HEADSET, instead of old USB_DEVICE) Some older USB devices got converted to this USB_HEADSET while still using the old protocol. There is no driver change needed, but the audio policy needs to be changed. Since vendors are simply using AOSP usb_audio_policy_configuration Override it by ourself. Change-Id: I5c43cd7c95f721914cf94f4dc20c992b4f6a24e9
This commit is contained in:
committed by
Bruno Martins
parent
c29e46cef9
commit
9355330e38
@@ -28,6 +28,10 @@ PRODUCT_AAPT_PREF_CONFIG := xxhdpi
|
||||
# Inherit from sdm845-common
|
||||
$(call inherit-product, device/xiaomi/sdm845-common/sdm845.mk)
|
||||
|
||||
# Audio
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:system/etc/usb_audio_policy_configuration.xml
|
||||
|
||||
# Device init scripts
|
||||
PRODUCT_PACKAGES += \
|
||||
init.target.rc
|
||||
|
||||
Reference in New Issue
Block a user