Some devices have a lot of stuff in /vendor/etc/audio, not just a CAF audio policy, like ZF8 has their whole vendor audio configuration there. Dont empty this dir in that case

This commit is contained in:
Pierre-Hugues Husson 2021-06-03 16:44:44 -04:00
parent 7a9ce0e848
commit 475de0067d
1 changed files with 3 additions and 1 deletions

View File

@ -574,7 +574,9 @@ if getprop ro.vendor.build.fingerprint | grep -qE '^xiaomi/wayne/wayne.*'; then
setprop audio.camerasound.force true
fi
mount -o bind /mnt/phh/empty_dir /vendor/etc/audio || true
if [ $(find /vendor/etc/audio -type f |wc -l) -le 3 ];then
mount -o bind /mnt/phh/empty_dir /vendor/etc/audio || true
fi
for f in /vendor/lib{,64}/hw/com.qti.chi.override.so /vendor/lib{,64}/libVD*;do
[ ! -f $f ] && continue