Fix headphone and ril on Samsung qualcomm devices

This commit is contained in:
Pierre-Hugues Husson 2019-01-26 11:36:54 +01:00
parent cbf5a7891f
commit 1423f94c17

View File

@ -259,10 +259,17 @@ if getprop ro.vendor.build.fingerprint | grep -qE -e ".*(crown|star)[q2]*lte.*"
done done
fi fi
if getprop ro.hardware |grep -q samsungexynos7870;then
if getprop ro.vendor.build.fingerprint |grep -qiE '^samsung';then
if getprop ro.hardware |grep -q qcom;then
setprop persist.sys.overlay.devinputjack false
fi
if getprop ro.hardware |grep -q -e samsungexynos7870 -e qcom;then
if [ "$vndk" -le 27 ];then if [ "$vndk" -le 27 ];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 fi
mount -o bind /mnt/phh/empty_dir /vendor/etc/audio || true mount -o bind /mnt/phh/empty_dir /vendor/etc/audio || true