Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88efa56e authored by Kalle Raita's avatar Kalle Raita
Browse files

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
parent 803007fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -29,7 +29,7 @@ bool bootAnimationDisabled() {
    char value[PROPERTY_VALUE_MAX];
    char value[PROPERTY_VALUE_MAX];
    property_get("debug.sf.nobootanimation", value, "0");
    property_get("debug.sf.nobootanimation", value, "0");
    if (atoi(value) > 0) {
    if (atoi(value) > 0) {
      return false;
        return true;
    }
    }


    property_get("ro.boot.quiescent", value, "0");
    property_get("ro.boot.quiescent", value, "0");
+2 −0
Original line number Original line Diff line number Diff line
@@ -157,8 +157,10 @@ int main()


        // create the boot animation object
        // create the boot animation object
        sp<BootAnimation> boot = new BootAnimation(new AudioAnimationCallbacks());
        sp<BootAnimation> boot = new BootAnimation(new AudioAnimationCallbacks());
        ALOGV("Boot animation set up. Joining pool.");


        IPCThreadState::self()->joinThreadPool();
        IPCThreadState::self()->joinThreadPool();
    }
    }
    ALOGV("Boot animation exit");
    return 0;
    return 0;
}
}