diff options
author | Roman Kiryanov <rkir@google.com> | 2021-04-06 20:44:57 -0700 |
---|---|---|
committer | Roman Kiryanov <rkir@google.com> | 2021-04-06 20:44:57 -0700 |
commit | c755e5edf945d1740acee3c1c1f529db569ec7c2 (patch) | |
tree | 9f24e78ffad3c67a8921ff93d0664c378acdb47c | |
parent | 0cf8af68606798aa5264eb70e63563061e7db007 (diff) | |
download | core-c755e5edf945d1740acee3c1c1f529db569ec7c2.tar.gz |
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 <rkir@google.com>
Change-Id: Id89a6c92dd4724cac414ffbf8ee731b2bfcc7195
-rw-r--r-- | init/property_service.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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"); } }); } |