device: common: add navigation bar for MSM8937
Touch panel does not support virtual keys on MSM 8937. Set qemu.hw.mainkeys as 0 to enable the Android navigation bar. Change-Id: Idc40ae63488898d393153a8e4fd49fefdd0b555a
This commit is contained in:
parent
65a72ea91a
commit
d7e5428dd4
|
@ -246,6 +246,34 @@ case "$target" in
|
|||
"msm8909")
|
||||
start_vm_bms
|
||||
;;
|
||||
"msm8937")
|
||||
if [ -f /sys/devices/soc0/soc_id ]; then
|
||||
soc_id=`cat /sys/devices/soc0/soc_id`
|
||||
else
|
||||
soc_id=`cat /sys/devices/system/soc/soc0/id`
|
||||
fi
|
||||
|
||||
if [ -f /sys/devices/soc0/hw_platform ]; then
|
||||
hw_platform=`cat /sys/devices/soc0/hw_platform`
|
||||
else
|
||||
hw_platform=`cat /sys/devices/system/soc/soc0/hw_platform`
|
||||
fi
|
||||
case "$soc_id" in
|
||||
"294" | "295")
|
||||
case "$hw_platform" in
|
||||
"Surf")
|
||||
setprop qemu.hw.mainkeys 0
|
||||
;;
|
||||
"MTP")
|
||||
setprop qemu.hw.mainkeys 0
|
||||
;;
|
||||
"RCM")
|
||||
setprop qemu.hw.mainkeys 0
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
bootmode=`getprop ro.bootmode`
|
||||
|
|
Loading…
Reference in New Issue