From 914fcdf1015282b1883461da67c3a551a6d3efea Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Fri, 11 Nov 2016 11:45:53 +0100 Subject: [PATCH] Disable boot animation --- .../android-emugl/host/libs/libOpenglRender/LayerManager.cpp | 2 ++ src/anbox/qemu/boot_properties_message_processor.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/external/android-emugl/host/libs/libOpenglRender/LayerManager.cpp b/external/android-emugl/host/libs/libOpenglRender/LayerManager.cpp index e6d15ce..f2c0a97 100644 --- a/external/android-emugl/host/libs/libOpenglRender/LayerManager.cpp +++ b/external/android-emugl/host/libs/libOpenglRender/LayerManager.cpp @@ -28,6 +28,8 @@ std::string get_package_name(const std::string &name) { bool is_layer_blacklisted(const std::string &name) { static std::vector blacklist = { + // The boot animation should be disabled already but we blacklist it + // here too to ensure it is never visible. "BootAnimation", "StatusBar", "Sprite", diff --git a/src/anbox/qemu/boot_properties_message_processor.cpp b/src/anbox/qemu/boot_properties_message_processor.cpp index 8b7e6f8..52f5089 100644 --- a/src/anbox/qemu/boot_properties_message_processor.cpp +++ b/src/anbox/qemu/boot_properties_message_processor.cpp @@ -69,6 +69,9 @@ void BootPropertiesMessageProcessor::list_properties() { // To let surfaceflinger load our hwcomposer implementation we specify // the correct subkey of the module here. "ro.hardware.hwcomposer=anbox" + + // Keep boot animation disabled as we don't need it + "debug.sf.nobootanimation=1", }; for (const auto &prop : properties) {