diff options
author | Keun-young Park <keunyoung@google.com> | 2017-03-23 13:46:24 -0700 |
---|---|---|
committer | Keun-young Park <keunyoung@google.com> | 2017-04-03 14:43:14 -0700 |
commit | b593842063770f9e75c623a4bc7bb41b4c1830c6 (patch) | |
tree | 25c843fbdf41d802f73265c700e6574b60508b85 /cmds/bootanimation/BootAnimation.h | |
parent | 3f2bbcbe92cd2500746153ed2378278c1b2a53e2 (diff) |
support shutdown animation from bootanim
- init will set sys.powerctl property and run bootanim.
- Use /oem/media/shutdownanimation.zip or
/system/media/shutdownanimation.zip for animation file.
If none of them exist, android animation will be used.
- Disable audio playing for shutdown animation.
- Disable TimeCheckThread for shutdown animation. It
accesses /data partition and can block umount.
bug: 36526187
Test: many reboots
Change-Id: If02c73cda2015317d88d056cd45201208da49946
Diffstat (limited to 'cmds/bootanimation/BootAnimation.h')
-rw-r--r-- | cmds/bootanimation/BootAnimation.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmds/bootanimation/BootAnimation.h b/cmds/bootanimation/BootAnimation.h index f1fc98e10c1e..181ef1c596d1 100644 --- a/cmds/bootanimation/BootAnimation.h +++ b/cmds/bootanimation/BootAnimation.h @@ -163,6 +163,7 @@ private: bool mTimeIsAccurate; bool mTimeFormat12Hour; bool mSystemBoot; + bool mShuttingDown; String8 mZipFileName; SortedVector<String8> mLoadedFiles; sp<TimeCheckThread> mTimeCheckThread = nullptr; |