Fix speaker and touchscreen on Huawei P10

This commit is contained in:
Pierre-Hugues Husson 2021-12-08 13:36:39 -05:00
parent 3aad44c311
commit ee833b1d7d
1 changed files with 10 additions and 0 deletions

View File

@ -991,3 +991,13 @@ fi
if getprop ro.boot.prjname |grep -qi 21615;then
mount -o bind /system/phh/empty /odm/overlay/android_framework_res_overlay.display.product.21615.apk
fi
setprop debug.sf.latch_unsignaled 1
if [ "$(stat -c '%U' /dev/nxp_smartpa_dev)" == "root" ] &&
[ "$(stat -c '%G' /dev/nxp_smartpa_dev)" == "root" ];then
chown root:audio /dev/nxp_smartpa_dev
chmod 0660 /dev/nxp_smartpa_dev
fi
if getprop ro.odm.build.fingerprint |grep -q Huawei/Chicago;then
setprop ctl.stop aptouch
fi