From c755e5edf945d1740acee3c1c1f529db569ec7c2 Mon Sep 17 00:00:00 2001 From: Roman Kiryanov Date: Tue, 6 Apr 2021 20:44:57 -0700 Subject: [PATCH] Populate `ro.boot.debug.sf.nobootanimation` from `android.bootanim` emulator passes `android.bootanim=0` in the kernel command line to disable boot animation. Bug: 182336906 Test: boot emulator with -np-boot-anim Signed-off-by: Roman Kiryanov Change-Id: Id89a6c92dd4724cac414ffbf8ee731b2bfcc7195 --- init/property_service.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init/property_service.cpp b/init/property_service.cpp index 0dc8159e2..d1ba3c7ea 100644 --- a/init/property_service.cpp +++ b/init/property_service.cpp @@ -1200,6 +1200,10 @@ static void ProcessKernelCmdline() { // emulator specific, should be retired once emulator migrates to // androidboot. InitPropertySet("ro.boot." + key, value); + } else if (key == "android.bootanim" && value == "0") { + // emulator specific, should be retired once emulator migrates to + // androidboot. + InitPropertySet("ro.boot.debug.sf.nobootanimation", "1"); } }); }