From 2f479e8e0b30dadef6b760da51a07a67ae13df28 Mon Sep 17 00:00:00 2001 From: "Arun Kumar K.R" Date: Fri, 15 Nov 2013 12:01:06 -0800 Subject: [PATCH] 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 --- init/init_apq8084.c | 2 +- init/init_msm.h | 2 +- init/init_msm8974.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/init/init_apq8084.c b/init/init_apq8084.c index 15fe0ec6..b832ccf2 100644 --- a/init/init_apq8084.c +++ b/init/init_apq8084.c @@ -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"); diff --git a/init/init_msm.h b/init/init_msm.h index cdae32cc..aacfa6fd 100644 --- a/init/init_msm.h +++ b/init/init_msm.h @@ -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)) diff --git a/init/init_msm8974.c b/init/init_msm8974.c index 50444ee7..6173eff7 100644 --- a/init/init_msm8974.c +++ b/init/init_msm8974.c @@ -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");