Fix camera in DND on Daisy

It's an ugly workaround...
This commit is contained in:
Hackintosh 5 2019-01-30 13:12:47 +00:00
parent 01f68a446b
commit 888725c0ed

View File

@ -259,7 +259,6 @@ if getprop ro.vendor.build.fingerprint | grep -qE -e ".*(crown|star)[q2]*lte.*"
done done
fi fi
if getprop ro.vendor.build.fingerprint |grep -qiE '^samsung';then if getprop ro.vendor.build.fingerprint |grep -qiE '^samsung';then
if getprop ro.hardware |grep -q qcom;then if getprop ro.hardware |grep -q qcom;then
setprop persist.sys.overlay.devinputjack false setprop persist.sys.overlay.devinputjack false
@ -270,6 +269,10 @@ if getprop ro.vendor.build.fingerprint |grep -qiE '^samsung';then
setprop persist.sys.phh.sdk_override /vendor/bin/hw/rild=27 setprop persist.sys.phh.sdk_override /vendor/bin/hw/rild=27
fi fi
fi fi
if getprop ro.vendor.build.fingerprint | grep -qE '^xiaomi/daisy/daisy_sprout:8.1.0/OPM.*'; then
setprop setprop audio.camerasound.force true
# Fix camera on DND, ugly workaround but meh
fi fi
mount -o bind /mnt/phh/empty_dir /vendor/etc/audio || true mount -o bind /mnt/phh/empty_dir /vendor/etc/audio || true