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,9 +259,16 @@ if getprop ro.vendor.build.fingerprint | grep -qE -e ".*(crown|star)[q2]*lte.*"
done
fi
if getprop ro.hardware |grep -q samsungexynos7870;then
if [ "$vndk" -le 27 ];then
setprop persist.sys.phh.sdk_override /vendor/bin/hw/rild=27
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
setprop persist.sys.phh.sdk_override /vendor/bin/hw/rild=27
fi
fi
fi