init_earlyboot: Set lcd density for sdm845

Set the property ro.sf.lcd_density to 560

Change-Id: Ie72c688ba49169ca1c221424b522b2f5b79c1cf4
This commit is contained in:
Soumil Shah 2017-05-03 14:41:30 -07:00 committed by Gerrit - the friendly Code Review server
parent 33ebc3c84f
commit 78e4842483
1 changed files with 13 additions and 0 deletions

View File

@ -239,6 +239,19 @@ case "$target" in
;;
esac
;;
"sdm845")
case "$soc_hwplatform" in
*)
setprop ro.sf.lcd_density 560
if [ ! -e /dev/kgsl-3d0 ]; then
setprop persist.sys.force_sw_gles 1
setprop sdm.idle_time 0
else
setprop persist.sys.force_sw_gles 0
fi
;;
esac
;;
esac
#set default lcd density
#Since lcd density has read only