HI Android Newbie,

At run-time end user i.e third party applications can't access /data/local/ 
without root access, so logically end users cant change the boot-animation.

And in BootAnimation.cpp, 
                 #define USER_BOOTANIMATION_FILE 
"/data/local/bootanimation.zip" 
is useful if any system app wants to change bootanimation as System app can 
have right to access /data/local/.
                 #define SYSTEM_BOOTANIMATION_FILE 
"/system/media/bootanimation.zip" is useful if you want booanimation to be 
used as default, as at run-time in nobody can change content of system 
partition.

To understand the concept behind this, You should understand which 
partitions are available to whom (user, system...) and in which mode (read, 
write...) and when(Android runtime, recovery..).
 
I hope it helps you.

Thanks,
Shridutt Kothari,
shriduttkoth...@gmail.com
Impetus Infotech India Ltd

On Tuesday, March 11, 2014 12:59:58 AM UTC+5:30, Android Newbie wrote:
>
> I want my used to be able to override the default boot animation.
> based on the code in BootAnimation.cpp: (Android 4.1.2 if it matters)
>
> #define USER_BOOTANIMATION_FILE "/data/local/bootanimation.zip"
> #define SYSTEM_BOOTANIMATION_FILE "/system/media/bootanimation.zip"
>
>
> I would expect the user to place their file in /data/local but it doesn't 
> appear to be reachable/writable by a regular user. (I checked on a Galaxy 
> Nexus running 4.1.2 also and it behaves the same)
> Am I misunderstand the meaning of "USER" in the #define name?
>
> What is the "proper" way to make this accessible to my end users? redefine 
> it to something like:
> #define USER_BOOTANIMATION_FILE 
> "/data/media/BootAnimation/bootanimation.zip"
>
> is there a "standard" place where the boot animation should be?
>

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to