Loading cmds/bootanimation/bootanimation_main.cpp +16 −5 Original line number Diff line number Diff line Loading @@ -16,9 +16,12 @@ #define LOG_TAG "BootAnimation" #include <cutils/properties.h> #include <binder/IPCThreadState.h> #include <binder/ProcessState.h> #include <binder/IServiceManager.h> #include <utils/Log.h> #include <utils/threads.h> Loading @@ -41,6 +44,12 @@ int main(int argc, char** argv) setpriority(PRIO_PROCESS, 0, ANDROID_PRIORITY_DISPLAY); #endif 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(); Loading @@ -48,5 +57,7 @@ int main(int argc, char** argv) sp<BootAnimation> boot = new BootAnimation(); IPCThreadState::self()->joinThreadPool(); } return 0; } Loading
cmds/bootanimation/bootanimation_main.cpp +16 −5 Original line number Diff line number Diff line Loading @@ -16,9 +16,12 @@ #define LOG_TAG "BootAnimation" #include <cutils/properties.h> #include <binder/IPCThreadState.h> #include <binder/ProcessState.h> #include <binder/IServiceManager.h> #include <utils/Log.h> #include <utils/threads.h> Loading @@ -41,6 +44,12 @@ int main(int argc, char** argv) setpriority(PRIO_PROCESS, 0, ANDROID_PRIORITY_DISPLAY); #endif 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(); Loading @@ -48,5 +57,7 @@ int main(int argc, char** argv) sp<BootAnimation> boot = new BootAnimation(); IPCThreadState::self()->joinThreadPool(); } return 0; }