init_msm: use qemu.hw.mainkeys instead of ro.hw.nav_keys
Android removed support for ro.hw.nav_keys property to enable/disable the virtual keys on the target, hence just use qemu.hw.mainkeys. Change-Id: Ieb700313ea49a32ed98f80e3e8cce9ab9e07624b
This commit is contained in:
parent
5ff7d14d4c
commit
2f479e8e0b
|
@ -53,7 +53,7 @@ void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *boar
|
|||
/* Liquid do not have hardware navigation keys, so enable
|
||||
Android sw navigation bar
|
||||
*/
|
||||
property_set(PROP_HWNAVKEY, "0");
|
||||
property_set(PROP_QEMU_NAVKEY, "0");
|
||||
}
|
||||
else {
|
||||
property_set(PROP_LCDDENSITY, "440");
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
#define PROP_HWROTATE "ro.sf.hwrotation"
|
||||
#define PROP_LCDDENSITY "ro.sf.lcd_density"
|
||||
#define PROP_HWNAVKEY "ro.hw.nav_keys"
|
||||
#define PROP_QEMU_NAVKEY "qemu.hw.mainkeys"
|
||||
|
||||
#define UNUSED(a) ((void)(a))
|
||||
#define ISMATCH(a,b) (!strncmp(a,b,PROP_VALUE_MAX))
|
||||
|
|
|
@ -53,7 +53,7 @@ void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *boar
|
|||
/* Liquid do not have hardware navigation keys, so enable
|
||||
Android sw navigation bar
|
||||
*/
|
||||
property_set(PROP_HWNAVKEY, "0");
|
||||
property_set(PROP_QEMU_NAVKEY, "0");
|
||||
}
|
||||
else if (ISMATCH(board_type, "Dragon"))
|
||||
property_set(PROP_LCDDENSITY, "240");
|
||||
|
|
Loading…
Reference in New Issue