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

Skip to content
Commit 9bc25196 authored by Paz Zcharya's avatar Paz Zcharya
Browse files

SF: Merge properties that skip boot animation



The flag debug.sf.nobootanimation causes the bootanim to exit early and
not show an animation. When that flag is set, launching bootanim is
pointless, but it slows down boot on average by about 800 ms on some
devices [1]. Quick analysis showed that loading bootanim requires
reading 80 MB of read-only memory [1], which is probably the reason
behind the slowdown during boot.

Optimize that by not launching bootanim at all when
debug.sf.nobootanimation is set, similar to the behavior when
debug.sf.boot_animation is false.

References:
[1] Brya boottime: bootanim takes ~1.5s, b/373711392

Bug: 324366212
Bug: 373711392
Test: Test all 4 combinations of
      setprop debug.sf.boot_animation {false,<null>}
      setprop debug.sf.nobootanimation {1, <null>}
Flag: EXEMPT sysprop alias

Change-Id: I5599072c14008ae67ab8aec4057bda953ac5b978
Signed-off-by: default avatarPaz Zcharya <pazz@google.com>
parent 19a57c0d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment