summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dominik Laskowski <domlaskowski@google.com> 2024-02-21 10:42:23 -0500
committer Dominik Laskowski <domlaskowski@google.com> 2024-03-06 15:42:33 -0500
commitb0fdfe7095a39f2bfdafcc5caa912b440a8f6894 (patch)
tree4dffe143c3d65d76bd6e0d1eaea9e2e639f95647
parentefb131e3e11bfc12df020d4100b67c49be7c1f27 (diff)
SF: Add property to skip boot animation
Bug: 324366212 Test: setprop debug.sf.boot_animation false Change-Id: I8e0076d35566a0d7326dd1e8fe7b5d58bafad67a
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 50cd45b012..be3c1d89d0 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -950,10 +950,12 @@ void SurfaceFlinger::init() FTL_FAKE_GUARD(kMainThreadContext) {
void SurfaceFlinger::initBootProperties() {
property_set("service.sf.present_timestamp", mHasReliablePresentFences ? "1" : "0");
- // Reset and (if needed) start BootAnimation.
- property_set("service.bootanim.exit", "0");
- property_set("service.bootanim.progress", "0");
- property_set("ctl.start", "bootanim");
+ if (base::GetBoolProperty("debug.sf.boot_animation"s, true)) {
+ // Reset and (if needed) start BootAnimation.
+ property_set("service.bootanim.exit", "0");
+ property_set("service.bootanim.progress", "0");
+ property_set("ctl.start", "bootanim");
+ }
}
void SurfaceFlinger::initTransactionTraceWriter() {