Merge pull request #141 from eremitein/android-10.0

[daisy] revert camera in DnD fix
This commit is contained in:
Pierre-Hugues HUSSON 2020-01-07 20:57:50 +01:00 committed by GitHub
commit 2a42bd0ed2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -317,6 +317,11 @@ if getprop ro.vendor.product.device | grep -q -e nora -e rhannah; then
setprop debug.sf.latch_unsignaled 1
fi
if getprop ro.vendor.build.fingerprint | grep -iq -e xiaomi/daisy; then
setprop debug.sf.latch_unsignaled 1
setprop debug.sf.enable_hwc_vds 1
fi
if getprop ro.vendor.build.fingerprint | grep -iq -E -e 'huawei|honor' || getprop persist.sys.overlay.huawei | grep -iq -E -e 'true'; then
p=/product/etc/nfc/libnfc_nxp_*_*.conf
mount -o bind "$p" /system/etc/libnfc-nxp.conf ||
@ -364,7 +369,7 @@ if getprop ro.vendor.build.fingerprint | grep -qiE '^samsung'; then
fi
fi
if getprop ro.vendor.build.fingerprint | grep -qE '^xiaomi/(daisy|wayne)/(daisy|wayne).*'; then
if getprop ro.vendor.build.fingerprint | grep -qE '^xiaomi/wayne/wayne.*'; then
# Fix camera on DND, ugly workaround but meh
setprop audio.camerasound.force true
fi