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:
parent
7a9ce0e848
commit
475de0067d
@ -574,7 +574,9 @@ if getprop ro.vendor.build.fingerprint | grep -qE '^xiaomi/wayne/wayne.*'; then
|
|||||||
setprop audio.camerasound.force true
|
setprop audio.camerasound.force true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $(find /vendor/etc/audio -type f |wc -l) -le 3 ];then
|
||||||
mount -o bind /mnt/phh/empty_dir /vendor/etc/audio || true
|
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
|
for f in /vendor/lib{,64}/hw/com.qti.chi.override.so /vendor/lib{,64}/libVD*;do
|
||||||
[ ! -f $f ] && continue
|
[ ! -f $f ] && continue
|
||||||
|
Loading…
Reference in New Issue
Block a user