From 88efa56e1b7993e5ea32028c962ecd517c15ed3d Mon Sep 17 00:00:00 2001 From: Kalle Raita Date: Fri, 14 Jul 2017 16:18:16 -0700 Subject: Fix nobootanimation toggle The sf.debug.nobootanimation was apparently broken in a recent refactoring. Flipping the boolean in the utils fixes the issue. Left some additional logging behind. Test: marlin-eng boots Test: my test can prevent the boot animation Test: shell stop start shows boot animation Change-Id: I815708a2f16a3a8688cf1a53695e5a8d43194575 --- cmds/bootanimation/BootAnimationUtil.cpp | 2 +- cmds/bootanimation/bootanimation_main.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmds/bootanimation/BootAnimationUtil.cpp b/cmds/bootanimation/BootAnimationUtil.cpp index 377d6ce372f2..7718daf61d81 100644 --- a/cmds/bootanimation/BootAnimationUtil.cpp +++ b/cmds/bootanimation/BootAnimationUtil.cpp @@ -29,7 +29,7 @@ bool bootAnimationDisabled() { char value[PROPERTY_VALUE_MAX]; property_get("debug.sf.nobootanimation", value, "0"); if (atoi(value) > 0) { - return false; + return true; } property_get("ro.boot.quiescent", value, "0"); diff --git a/cmds/bootanimation/bootanimation_main.cpp b/cmds/bootanimation/bootanimation_main.cpp index daac5887a500..8501982d071c 100644 --- a/cmds/bootanimation/bootanimation_main.cpp +++ b/cmds/bootanimation/bootanimation_main.cpp @@ -157,8 +157,10 @@ int main() // create the boot animation object sp boot = new BootAnimation(new AudioAnimationCallbacks()); + ALOGV("Boot animation set up. Joining pool."); IPCThreadState::self()->joinThreadPool(); } + ALOGV("Boot animation exit"); return 0; } -- cgit v1.2.3-59-g8ed1b