From b0fdfe7095a39f2bfdafcc5caa912b440a8f6894 Mon Sep 17 00:00:00 2001 From: Dominik Laskowski Date: Wed, 21 Feb 2024 10:42:23 -0500 Subject: SF: Add property to skip boot animation Bug: 324366212 Test: setprop debug.sf.boot_animation false Change-Id: I8e0076d35566a0d7326dd1e8fe7b5d58bafad67a --- services/surfaceflinger/SurfaceFlinger.cpp | 10 ++++++---- 1 file 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() { -- cgit v1.2.3-59-g8ed1b