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
This commit is contained in:
Kalle Raita
2017-07-14 16:18:16 -07:00
parent 803007fd81
commit 88efa56e1b
2 changed files with 3 additions and 1 deletions

View File

@@ -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");

View File

@@ -157,8 +157,10 @@ int main()
// create the boot animation object
sp<BootAnimation> boot = new BootAnimation(new AudioAnimationCallbacks());
ALOGV("Boot animation set up. Joining pool.");
IPCThreadState::self()->joinThreadPool();
}
ALOGV("Boot animation exit");
return 0;
}