From 06c986e7c92d43f95718ee34b1984e8dffbdc15c Mon Sep 17 00:00:00 2001 From: Nikita Ioffe Date: Mon, 27 Jan 2020 17:16:03 +0000 Subject: Add a way to customize boot animation during userspace reboot In case userspace reboot boot animation can't be found, a default Android logo is going to be shown. Test: adb reboot userspace Bug: 148172262 Change-Id: Ida12ffcfe73b335b63178f3e3f2b0c4063dae2c2 --- cmds/bootanimation/BootAnimation.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmds/bootanimation/BootAnimation.h') diff --git a/cmds/bootanimation/BootAnimation.h b/cmds/bootanimation/BootAnimation.h index dc19fb09ef1d..574d65e425cf 100644 --- a/cmds/bootanimation/BootAnimation.h +++ b/cmds/bootanimation/BootAnimation.h @@ -17,6 +17,8 @@ #ifndef ANDROID_BOOTANIMATION_H #define ANDROID_BOOTANIMATION_H +#include + #include #include @@ -157,6 +159,7 @@ private: bool parseAnimationDesc(Animation&); bool preloadZip(Animation &animation); void findBootAnimationFile(); + bool findBootAnimationFileInternal(const std::vector& files); bool preloadAnimation(); void checkExit(); -- cgit v1.2.3-59-g8ed1b