Merge pull request #301 from ksdrar/android-12.0

[Motorola One Fusion+] Fix bluetooth audio
This commit is contained in:
Pierre-Hugues HUSSON 2022-03-04 15:54:02 +01:00 committed by GitHub
commit 2818802996
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1058,3 +1058,11 @@ fi
if getprop ro.vendor.build.fingerprint | grep -qi -e iaomi/mona; then if getprop ro.vendor.build.fingerprint | grep -qi -e iaomi/mona; then
copyprop ro.product.manufacturer ro.product.vendor.manufacturer copyprop ro.product.manufacturer ro.product.vendor.manufacturer
fi fi
if getprop ro.vendor.build.fingerprint | grep -iq -e motorola/liber; then
cp /vendor/etc/audio_policy_configuration.xml /mnt/phh/
sed -i '/r_submix_audio_policy_configuration/a \t<xi:include href="/vendor/etc/a2dp_audio_policy_configuration.xml"/>' /mnt/phh/audio_policy_configuration.xml
mount -o bind /mnt/phh/audio_policy_configuration.xml /vendor/etc/audio_policy_configuration.xml
chcon -h u:object_r:vendor_configs_file:s0 /vendor/etc/audio_policy_configuration.xml
chmod 644 /vendor/etc/audio_policy_configuration.xml
fi