summaryrefslogtreecommitdiffstats
path: root/cmds/bootanimation/bootanimation_main.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-07-28 15:27:39 -0700
committerMathias Agopian <mathias@google.com>2009-07-28 15:27:39 -0700
commitde36313b0b80c019c2784edd9d41f6761fe80685 (patch)
tree168cc8684fbe044fede73494b7b98191e963c523 /cmds/bootanimation/bootanimation_main.cpp
parente640d259c29b9d919e80b2b3d3f810459135b8f3 (diff)
downloadframeworks_base-de36313b0b80c019c2784edd9d41f6761fe80685.zip
frameworks_base-de36313b0b80c019c2784edd9d41f6761fe80685.tar.gz
frameworks_base-de36313b0b80c019c2784edd9d41f6761fe80685.tar.bz2
fix [1981759] -no-boot-anim has no effect
Diffstat (limited to 'cmds/bootanimation/bootanimation_main.cpp')
-rw-r--r--cmds/bootanimation/bootanimation_main.cpp20
1 files changed, 15 insertions, 5 deletions
diff --git a/cmds/bootanimation/bootanimation_main.cpp b/cmds/bootanimation/bootanimation_main.cpp
index 675ea81..a8359c4 100644
--- a/cmds/bootanimation/bootanimation_main.cpp
+++ b/cmds/bootanimation/bootanimation_main.cpp
@@ -16,6 +16,8 @@
#define LOG_TAG "BootAnimation"
+#include <cutils/properties.h>
+
#include <utils/IPCThreadState.h>
#include <utils/ProcessState.h>
#include <utils/IServiceManager.h>
@@ -41,12 +43,20 @@ int main(int argc, char** argv)
setpriority(PRIO_PROCESS, 0, ANDROID_PRIORITY_DISPLAY);
#endif
- sp<ProcessState> proc(ProcessState::self());
- ProcessState::self()->startThreadPool();
+ char value[PROPERTY_VALUE_MAX];
+ property_get("debug.sf.nobootanimation", value, "0");
+ int noBootAnimation = atoi(value);
+ LOGI_IF(noBootAnimation, "boot animation disabled");
+ if (!noBootAnimation) {
+
+ sp<ProcessState> proc(ProcessState::self());
+ ProcessState::self()->startThreadPool();
+
+ // create the boot animation object
+ sp<BootAnimation> boot = new BootAnimation();
- // create the boot animation object
- sp<BootAnimation> boot = new BootAnimation();
+ IPCThreadState::self()->joinThreadPool();
- IPCThreadState::self()->joinThreadPool();
+ }
return 0;
}