summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorLijuan Gao <lijuang@codeaurora.org>2014-12-03 13:36:51 +0800
committerSteve Kondik <steve@cyngn.com>2015-10-26 16:09:10 -0700
commit9bc1f489d7a895c30e4e4050d139ee02bb71ef08 (patch)
tree0e0af3ff6f068d8d14e37585ed20bf0c84641384 /cmds
parentf3d1bbb77f9f3dbe065d713721e0591ea3fa348f (diff)
downloadframeworks_base-9bc1f489d7a895c30e4e4050d139ee02bb71ef08.zip
frameworks_base-9bc1f489d7a895c30e4e4050d139ee02bb71ef08.tar.gz
frameworks_base-9bc1f489d7a895c30e4e4050d139ee02bb71ef08.tar.bz2
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
Diffstat (limited to 'cmds')
-rw-r--r--cmds/bootanimation/bootanimation_main.cpp3
1 files changed, 2 insertions, 1 deletions
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<ProcessState> proc(ProcessState::self());
ProcessState::self()->startThreadPool();