diff options
-rw-r--r-- | cmds/bootanimation/BootAnimation.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index 934539e..5c60008 100644 --- a/cmds/bootanimation/BootAnimation.cpp +++ b/cmds/bootanimation/BootAnimation.cpp @@ -903,9 +903,20 @@ char *BootAnimation::getAnimationFileName(ImageID image) SYSTEM_SHUTDOWN_ANIMATION_FILE, SYSTEM_ENCRYPTED_SHUTDOWN_ANIMATION_FILE} }; int state; + char sku[PROPERTY_VALUE_MAX]; + char skusuffix[PATH_MAX]; state = checkBootState() ? 0 : 1; + property_get("ro.prebundled.mcc", sku, "000"); + sprintf(skusuffix,"-%s",sku); + + String16 skuPath(fileName[state][image]); + skuPath.insert(skuPath.size()-4,String16(skusuffix)); + + if (access(String8(skuPath).string(), R_OK) == 0) + return (char *)String8(skuPath).string(); + return fileName[state][image]; } |