summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.h
diff options
context:
space:
mode:
authorNikita Ioffe <ioffe@google.com>2020-01-27 17:16:03 +0000
committerNikita Ioffe <ioffe@google.com>2020-01-28 15:41:42 +0000
commit06c986e7c92d43f95718ee34b1984e8dffbdc15c (patch)
tree4a45c146f89a7aa7995fb453ddfef31c12692367 /cmds/bootanimation/BootAnimation.h
parent3f0a9dbf65f4dd239ef15a4a905dd4cd9dc2753f (diff)
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
Diffstat (limited to 'cmds/bootanimation/BootAnimation.h')
-rw-r--r--cmds/bootanimation/BootAnimation.h3
1 files changed, 3 insertions, 0 deletions
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 <vector>
+
#include <stdint.h>
#include <sys/types.h>
@@ -157,6 +159,7 @@ private:
bool parseAnimationDesc(Animation&);
bool preloadZip(Animation &animation);
void findBootAnimationFile();
+ bool findBootAnimationFileInternal(const std::vector<std::string>& files);
bool preloadAnimation();
void checkExit();