From 9bc1f489d7a895c30e4e4050d139ee02bb71ef08 Mon Sep 17 00:00:00 2001 From: Lijuan Gao Date: Wed, 3 Dec 2014 13:36:51 +0800 Subject: bootanimation_main: Disable boot animation when device is triggered by alarm When the phone is triggered by alarm, it's better to show the deskclock directly instead of bootanimation as the new requirement from customers. So disable bootanimation in such case. Change-Id: Id8e92a492cc2281f1fe4c620fdaa8c293c4aa369 --- cmds/bootanimation/bootanimation_main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmds') diff --git a/cmds/bootanimation/bootanimation_main.cpp b/cmds/bootanimation/bootanimation_main.cpp index 48a34e7..50e4b1f 100644 --- a/cmds/bootanimation/bootanimation_main.cpp +++ b/cmds/bootanimation/bootanimation_main.cpp @@ -38,8 +38,9 @@ int main() property_get("debug.sf.nobootanimation", value, "0"); int noBootAnimation = atoi(value); ALOGI_IF(noBootAnimation, "boot animation disabled"); - if (!noBootAnimation) { + property_get("ro.alarm_boot", value, "false"); + if (!noBootAnimation && strcmp(value, "true")) { sp proc(ProcessState::self()); ProcessState::self()->startThreadPool(); -- cgit v1.1