diff options
Diffstat (limited to 'init/init_msm8916.cpp')
| -rw-r--r-- | init/init_msm8916.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/init/init_msm8916.cpp b/init/init_msm8916.cpp index c804647..a84ac02 100644 --- a/init/init_msm8916.cpp +++ b/init/init_msm8916.cpp @@ -72,6 +72,9 @@ static void init_alarm_boot_properties() { char const *alarm_file = "/proc/sys/kernel/boot_reason"; char buf[64]; + char tmp[PROP_VALUE_MAX]; + + property_get("ro.boot.alarmboot", tmp); if (read_file2(alarm_file, buf, sizeof(buf))) { /* @@ -89,7 +92,7 @@ static void init_alarm_boot_properties() * 7 -> CBLPWR_N pin toggled (for external power supply) * 8 -> KPDPWR_N pin toggled (power key pressed) */ - if (buf[0] == '3') + if (buf[0] == '3' || !strcmp(tmp, "true")) property_set("ro.alarm_boot", "true"); else property_set("ro.alarm_boot", "false"); |
