From 888725c0ed728734d89552ca85d4bf7aa924734c Mon Sep 17 00:00:00 2001 From: Hackintosh 5 Date: Wed, 30 Jan 2019 13:12:47 +0000 Subject: [PATCH] Fix camera in DND on Daisy It's an ugly workaround... --- rw-system.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rw-system.sh b/rw-system.sh index 62673b7..a47add3 100644 --- a/rw-system.sh +++ b/rw-system.sh @@ -259,7 +259,6 @@ if getprop ro.vendor.build.fingerprint | grep -qE -e ".*(crown|star)[q2]*lte.*" done fi - if getprop ro.vendor.build.fingerprint |grep -qiE '^samsung';then if getprop ro.hardware |grep -q qcom;then 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 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 mount -o bind /mnt/phh/empty_dir /vendor/etc/audio || true