Merge "Look for bootanimation in apex-module" into qt-dev
am: 36e3da7920
Change-Id: Ib37abe37122d14a2e3d3a4ecaae5c24a23ba9992
This commit is contained in:
@@ -69,6 +69,7 @@ static const char OEM_BOOTANIMATION_FILE[] = "/oem/media/bootanimation.zip";
|
||||
static const char PRODUCT_BOOTANIMATION_DARK_FILE[] = "/product/media/bootanimation-dark.zip";
|
||||
static const char PRODUCT_BOOTANIMATION_FILE[] = "/product/media/bootanimation.zip";
|
||||
static const char SYSTEM_BOOTANIMATION_FILE[] = "/system/media/bootanimation.zip";
|
||||
static const char APEX_BOOTANIMATION_FILE[] = "/apex/com.android.bootanimation/etc/bootanimation.zip";
|
||||
static const char PRODUCT_ENCRYPTED_BOOTANIMATION_FILE[] = "/product/media/bootanimation-encrypted.zip";
|
||||
static const char SYSTEM_ENCRYPTED_BOOTANIMATION_FILE[] = "/system/media/bootanimation-encrypted.zip";
|
||||
static const char OEM_SHUTDOWNANIMATION_FILE[] = "/oem/media/shutdownanimation.zip";
|
||||
@@ -358,10 +359,10 @@ void BootAnimation::findBootAnimationFile() {
|
||||
|
||||
const bool playDarkAnim = android::base::GetIntProperty("ro.boot.theme", 0) == 1;
|
||||
static const char* bootFiles[] =
|
||||
{playDarkAnim ? PRODUCT_BOOTANIMATION_DARK_FILE : PRODUCT_BOOTANIMATION_FILE,
|
||||
{APEX_BOOTANIMATION_FILE, playDarkAnim ? PRODUCT_BOOTANIMATION_DARK_FILE : PRODUCT_BOOTANIMATION_FILE,
|
||||
OEM_BOOTANIMATION_FILE, SYSTEM_BOOTANIMATION_FILE};
|
||||
static const char* shutdownFiles[] =
|
||||
{PRODUCT_SHUTDOWNANIMATION_FILE, OEM_SHUTDOWNANIMATION_FILE, SYSTEM_SHUTDOWNANIMATION_FILE};
|
||||
{PRODUCT_SHUTDOWNANIMATION_FILE, OEM_SHUTDOWNANIMATION_FILE, SYSTEM_SHUTDOWNANIMATION_FILE, ""};
|
||||
|
||||
for (const char* f : (!mShuttingDown ? bootFiles : shutdownFiles)) {
|
||||
if (access(f, R_OK) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user