yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] gaetawoo:
:(:(:(:(

yea i tried that... what did i do , seriously.

i deleted everything the flashable script thing you made did. without any bootanimation.zip, it does the ANDROID thing, but when i put a file in system/media, it just plays blackness, which is to say nothing.

ok, i pulled the animation frommy rom and put in in system/media .... waiting... k it works! what the hell! seriously confused! the one i had been using is attached... it was working great!!!!! and then i had all these issues before and such..

argg... so can i put the one i like back now??
[Samsung Galaxy Nexus] gaetawoo:
ok, so... i just got the boot animation off the forum and flashed it instead of moving it on the phone. and it works note. so i don't konw if i corrupted or did something to the files or if the frame rates don't work well... i have the google gears one and it works great at 60 fps. i don't know. most of the animations are way too choppy and slow. i like smooth animations.
[Samsung Galaxy Nexus] djmcnz:
Perhaps you did as someone else above? Sometimes boot animations are distributed within another zip file... you need to take them out of that first.

In my zip with the sample animations the frame rates are all suitable.
[Samsung Galaxy Nexus] gaetawoo:
yea i made sure that the zips i had were the animation, not the flashable. dunno what i did.
[Samsung Galaxy Nexus] droidgren:
Tried with Apex Rom with Imoseyon 1.8.0 Kernel, and it doesn't work. It defaults to the Android logo only.
[Samsung Galaxy Nexus] djmcnz:
That would normally indicate you haven't installed any animations. Are you sure they're in the correct location?
[Samsung Galaxy Nexus] Nighthound:
Hey there, I just got a Galaxy Nexus 2 days ago, and was quite surprised to see this thread! :) I stopped work on the script for the Nexus One because I had problems accessing the sdcard during init.d process, but with the GNexus that problem is solved. It's great that you've got it working here and thanks for the compilation of boot animations. :D
[Samsung Galaxy Nexus] djmcnz:
Dude! :D

TBH I thought you were long gone... glad to hear you've picked up the best replacement for the Nexus One ever. Although of course no phone will ever be a great as the N1 was...

I remember that init.d problem and eventually modded the script for Kang-o-rama on the N1 to use the sd-ext partition that was kernel-mounted - fixed the problem (as by that time almost everybody with a N1 was using some form of sd-ext).

I also "deployed" it for the LG Optimus 2x and G2x so it's had a fair bit of run-time. Full credit to you I've needed to make almost no changes, robust scripting, thanks for that... :)

Since you really deserve the credit, if you want me to decommission this thread so you can start your own feel free to let me know, I've got no problems with that.

Cheers,

Dave
[Samsung Galaxy Nexus] Nighthound:
Nah, I'm too busy with work to follow XDA much (other than just after getting a new phone :P) so it's probably better if you leave this thread open. Keep up the good modding work! :)
[Samsung Galaxy Nexus] afguy0127:
I just tried this out, and I have to say this is the best mod I've done to this phone yet. I love the idea that I never know which ani I'm going to get when I reboot (I installed another 6 or 7 animations on top of the ones you included). Awesome work, many thanks!
[Samsung Galaxy Nexus] Bananebieger:
I can't get this one running on AOKP Milestone 3 with Francokernel 15.2 ... I can flash it as often I want.

The bootanimation doesn't change!

Does the /data/local/bootanimations folder need special properties?

I created it with Root Explorer.

Edit:

Also tried to turn off the AOKP bootanimation with the built-in function. Now I only get the "standard" bootanimation where you can see "Android" flashing in the system font.

Hm.
[Samsung Galaxy Nexus] djmcnz:
The folder just needs read and execute. The script will actually create it if it doesn't exist so you can delete and reboot if you are concerned about permissions.

Does Franco kernel process init.d scripts? That would be another reason (if it didn't).

Can you get a boot logcat? That will tell me.
[Samsung Galaxy Nexus] zombieflanders:
Well, the description for the franco.Kernel specifically says not to use 3rd party init.d scripts (which is what this mod is), but I don't know why. You may want to ask in the dev thread. Now, if you're on AOKP M3 there's an init.d patch that's made for the stock kernel that comes with it.
[Samsung Galaxy Nexus] Damien White:
Success!

I am using the following:

Phone: GNex GSM

Kernel Version: 3.0.21 franco Nightly 17.2

ROM: aokp_manguro_build_23

Mods: Circles Mods 23.b1, Nav Icon Mod, etc (point is how mod flexible this set up is)

1st try and no issues.

Installed using CWM touch.

How this helps those who are not sure.
[Samsung Galaxy Nexus] Bananebieger:
Tbh... I didn't check for init.d support because I had an init.d folder before flashing the script.

And in the script description I read when you have an init.d folder that there is support for this script.

Will check with the devs later! Thank you!
[Samsung Galaxy Nexus] TwilightSparkle:
This is grand.
[Samsung Galaxy Nexus] Nighthound:
I finally got around to adding this to my GNexus, and I thought of a small improvement.

Instead of storing all the boot animations in /data/local/bootanimations/, I find it easier to store them on the internal storage, for example in a folder called bootanimations under /sdcard/. Now all I have to do to add new boot animations is to connect my phone to the computer, and drag-and-drop it over to the folder in Windows Explorer, saving an extra step of copying the file to /data/local/bootanimations/.

The only change required in the script is to change the line to point to the correct folder.

BA_DIR="/sdcard/bootanimations"
[Samsung Galaxy Nexus] djmcnz:
Yep, that's a safe change to make on a phone with a virtual sdcard but it just won't work if you try and point that did at a physical sdcard - they don't mount in time.
[Samsung Galaxy Nexus] adrynalyne:
I myself would create a symlink to /data/local/ on the 'sdcard' (technically /data/media/).

That would remove the need to add it to any script.
[Samsung Galaxy Nexus] djmcnz:
How would you randomise them without the script?
[Samsung Galaxy Nexus] adrynalyne:
I was referring to the guy who was using a script to place the boot animations in a different location from data/local/.
[Samsung Galaxy Nexus] djmcnz:
And he was referring to the supplied script. :)
[Samsung Galaxy Nexus] adrynalyne:
...lol, and I am saying I wouldn't use a script for that. Feel like arguing today, I see.
[Samsung Galaxy Nexus] Nighthound:
The random boot animation script has a configurable setting for the location where the boot animations are stored. What I meant in my post was to update the variable in the random boot animation script to point to the right directory. Then you don't even have to do a symlink. :)

---------- Post added at 01:18 PM ---------- Previous post was at 01:16 PM ----------

Yup, I'm assuming since this is posted in the Galaxy Nexus forum that everyone has a phone with a virtual sdcard :D
[Samsung Galaxy Nexus] djmcnz:
No, I try not to argue on the internet although the thought was clearly in your mind.

There is only one script, perherps you meant "the script"? If so, as Nighthound points out, your method would require more work.

The script is value driven for portability. Of course if it doesn't need to be portable you could write it in many different ways.

You worded your indignation as if there were two scripts, I was simply pointing out there was not. I should have been more explicit.
[Samsung Galaxy Nexus] ragnarokx:
Works like a charm! Thanks so much :D
[Samsung Galaxy Nexus] scar45:
This is great djmcnz! Thanks a bunch, it's working perfectly.

I was also wondering if you'd be able to include an ORIGINAL boot animation that I created in your OP/downloadable package. Again, I created it, so you have my permission ;)

Here's a link to the thread, and a preview of the animation:

[BOOTANIMATION] Android Arcade - Classic Old-skool Arcade Title Screen

Let me know if it's something you'd consider adding to your .zip collection!

Cheers, and thanks again for your efforts ;)
[Samsung Galaxy Nexus] afguy0127:
Is there a way to completely and permanently remove the stock animation?

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] zombieflanders:
Not if you ever run a factory reset (which some ROMs or updates require), but wilskywalker's bootanimation thread has several methods.
[Samsung Galaxy Nexus] djmcnz:
Yep, delete it from /system/media/
[Samsung Galaxy Nexus] djmcnz:
I'm on holiday at the moment but will have a look when I'm home, sure.
[Samsung Galaxy Nexus] afguy0127:
Awesome, thank you! For whatever reason, that animation was starting to annoy me, lol.

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] blancNoir:
Do you happen to have the link to that boot animation thread? A few days back I found a great thread at rootzwiki that had a bunch of custom boot animations for the gnex but I can't find it now. If anyone can link me to boot animation collection threads for gnex it'd be greatly appreciated.
[Samsung Galaxy Nexus] godsfilth:
ooo thanks for bringing this back i loved this on the G1/N1, was also the only time i was actually able to help a mod creator with more than beta testing/logcat was sad to see it go but now its back so yay

thank you djmcnz

now to see how to go about getting it to work in aokp m4
[Samsung Galaxy Nexus] k8sh:
Is there a way to make your awesome script work any custom rom on HTC sensation? I tried flashing it but I guess I don't have that init.d support thing. Sorry to hijack the thread when i dont even have a gnex but your mod caught my eye. Thanks.
[Samsung Galaxy Nexus] djmcnz:
No problem, if you flash a kernel with init.d support for phone you should be good to go.
[Samsung Galaxy Nexus] zombieflanders:
The XDA collection thread is here. The RW collection thread is here (they moved it from the GN section to a general bootanimation section).
[Samsung Galaxy Nexus] k8sh:
Hello. I have Sebastianfm kernel for HTC sensation, what exactly do I have to be looking for so it can work with your script? I tried flashing his latest kernel and then yours but it doesn't work, I still have my bootanimation from the system media folder. I do have the init.d folder but does it mean my kernel supports it? I can send you the kernel that I am using if that would help. Thanks. I really want this mod to work. :)
[Samsung Galaxy Nexus] exzacklyright:
I flashed this but my /data/ folder is empty?
[Samsung Galaxy Nexus] djmcnz:
You need to enable 'root' options in ES Explorer to see the contents of the /data/ directory.

Nice nav bar icons BTW, where did you get those?
[Samsung Galaxy Nexus] exzacklyright:
They are somewhere in the forums. Thanks got it working. I enabled the viewing of the root but not the root explorer!

Mandated from Stannis Baratheon
[Samsung Galaxy Nexus] exzacklyright:
I put like 35 animations into data/local/BootAnimations.... will it randomize between those 35? I keep getting this same boot so just wondering if it's only randomizing between 5... or 10... or what.
[Samsung Galaxy Nexus] djmcnz:
It will use all 35 yes.

Your rom/kernel needs to support init.d (autostart) scripts, so check that first.

Then, if all else fails, the script does write to the log when it executes so we could also check that. I would need a log of your boot process and that requires a little bit of work. Let me know if you want to go down that track.
[Samsung Galaxy Nexus] n2ishun:
Those nav bar icons are "Zenyth_-_ICS_Blue_-_Flashable_-_v1" and there is a thread in here for them.

Not much help but at least you now have a name to work with.
[Samsung Galaxy Nexus] djmcnz:
That was good enough, thanks.

http://xdaforums.com/showthread.php?t=1669169
[Samsung Galaxy Nexus] gaetawoo:
how does one verify if a rom/kernel has init.d support? I'm running AOKP JB with leankernel 4.2 exp2
[Samsung Galaxy Nexus] djmcnz:
Most custom kernels support init.d - normally if your rom has a /system/etc/init.d/ directory it has support. There's no hard in trying either way 9but verify it with a few boots in case the stock animation is randomly selected).
[Samsung Galaxy Nexus] gaetawoo:
thanks a ton for the reply. i did install it and it does not run, and my aokp jb rom does have an init.d folder . so i don't know why it isn't running. it did used to work on ICS. i wish i knew ways to debug it but, i install your script with my own animations and it installs fine, but it doesn't run.
[Samsung Galaxy Nexus] djmcnz:
Actually it logs everything... but since you're using AOKP, have you enable "start up options" or whatever under performance? That turns on and off init.d processing (in AOKP).

Otherwise, grab a log of the start of the boot process:

adb logcat > boot.log

From power off to the animation starts and attach it here, I'll take a look.
[Samsung Galaxy Nexus] gaetawoo:
It works I just did a clean flash of my rom and installed your full animation zip. Thank you!
[Samsung Galaxy Nexus] webDeWo:
Cooying the bootanimation every time device boots isn't a good idea. Better place all these animations in /system/media and then, when random number is generated just RENAME this one file to bootanimation.zip.
[Samsung Galaxy Nexus] djmcnz:
Why is it not a good idea?

As for your alternative, you wouldn't implement any procedure on or in /system/media/ because it's a read only file system, making it read/write for this purpose would not be a good solution.

However, you could implement the rename method on or in /data/local/ so I don't write it off for that reason. If you keep renaming files however, you either need to a) keep track of the file names (so you can rename them back) or b) discard useful file names and come up with a fixed naming scheme. Both of these approaches are problematic.

Finally, "rename" isn't a real unix command, it's often simulated. To rename files reliably across all systems you would have to use the "mv" (move) command and this introduces the same problems as above; instead of 1 step (copy over existing animation) you now need many steps (identify target file name, move existing animation to target file name, move new animation to bootanimation.zip) which introduces more points of failure.

I think the only reason one might think this was a better approach would be storage limitations, either the space taken to store a copy of the animation or the time taken to copy (as opposed to move) the file. In my testing, and based on user reports, neither of these is a problem that needs to be solved. Again, even if they did need to be solved, using any form of rename approach introduces greater consequences.

My $0.02... :)
[Samsung Galaxy Nexus] ppog:
Love the idea of this, great. But unfortunately.....

I ran the the script, it worked, in that it created the \data\local\bootanimations folder, and I could see that after every boot ii was creating a new "bootanimation.zip" with the different animations, but I was still getting the original one from my ROM, which was stored in \system\media. So I deleted that in the hope that android would then see the new .zip in \data\local, but instead I just got the default "android" glowing text.

So no random boot animations for me.... :( and I had spent ages collecting about 20 really nice ones!

Anyone help me out and tell me what i've done wrong?
[Samsung Galaxy Nexus] djmcnz:
That's very odd... it seems as if Android's not working as it should. If you want I can look at a boot log for you?

Do you have adb set up?
[Samsung Galaxy Nexus] ppog:
Thanks very much, but I tried again and I got it working. Dunno what I did wrong the first time..... :silly:

Now I just have to resist the temptation to constantly reboot my phone! :laugh:

Thanks
[Samsung Galaxy Nexus] djmcnz:
It's a read only command so you should be okay... :)

adb logcat > boot.log

Turn your phone off, plug it into the computer, type that command, hit enter, turn the phone on, wait till it boots and settles, press CTRL+C, attach the file called boot.log from that directory on your computer to this thread and I'll take a look.

NOTE: your computer will say "waiting for device" - that's normally fine, it will stay there probably...
[Samsung Galaxy Nexus] natezire71:
Try me. I've attached the file.

I have the script installed, I have the folder in the correct place, it has a few boot animations, however, whatever bootanimation.zip is in /data/local/ doesn't overwrite what's in /system/media/. If I delete what is in /system/media/, I get the AOSP Default "Android" boot animation.

What did I do wrong? :(

https://www.dropbox.com/s/u633gufh21ygopb/boot.log
[Samsung Galaxy Nexus] ppog:
Same thing happened to me the first time, but now it works.

Not very scientific, but I think this is what worked for me: On a clean system, without this script, I moved my normal boot animation from /system/media to /data/local and rebooted once to let the phone play the animation from there. Then once it had booted I turned it off again, recovery, script, re-boot and hey-presto now it works. That was only the first time, and on an older version of my ROM, last night I flashed an update, and re-flashed this script over it, and it works perfectly first time. The black arts of android.....
[Samsung Galaxy Nexus] natezire71:
That didn't work. It seems as if it isn't putting the boot animation in the /data/local/ folder. Whatever boot animation is there plays there.
[Samsung Galaxy Nexus] ppog:
So there's no bootanimation.zip in /data/local?

That's what I did, I put my original one in there, did the permissions, booted it once, and then after one boot with my normal animation I ran the script and it worked at next boot. In my very un-knowledgeable way I assumed it had to overwrite a bootanimation.zip already in the /data/local folder or something......
[Samsung Galaxy Nexus] natezire71:
Permissions? What do you mean you "ran the script". It's an init.d script. It's nothing you can "run". Android runs it.

Edit: I set permissions, and it seems that it's working... however, every time I reboot, it's the same boot animation. I know the script is partially working because I placed a different boot animation in data/local/, and it overwrote it with another boot animation, but now it's not changing.
[Samsung Galaxy Nexus] ppog:
Meant installed the zip recovery
[Samsung Galaxy Nexus] Citizen_Snips:
Flashed the full zip on CNA 3.6.0 and everything works perfectly! Sweet boot animations!! Thanks
[Samsung Galaxy Nexus] djmcnz:
You're not doing anything wrong by the looks of things, in your log we have:

I/bootanimation( 159): Choosing a random boot animation
I/bootanimation( 165): /data/local/bootanimations/bootanimation_NexusQ.zip successfully copied

Nobody needs to delete /system/media/bootanimation.zip if one exists at /data/local/bootanimation.zip then it should be used by preference.

However, to check if /data/local/bootanimation.zip is being used for sure then remove/rename /system/media/bootanimation.zip - if /data/local/bootanimation.zip exists and is not used then the glowing android animation will show.

My script sets the correct permissions (but there's no harm in checking them manually). Therefore if /data/local/bootanimation.zip does exist and those lines above (or similar) are in the boot log the conclusion is the script is working but perhaps the ROM is somehow broken... which would be odd and the first time I've ever seen it? :confused:
[Samsung Galaxy Nexus] natezire71:
As of now, there is no bootanimation.zip in /system/media/. There is one in /data/local/, but I don't think it's changing. Whenever I reboot, it's the same boot animation. I've even changed the animation, and it still reverts to a different one.
[Samsung Galaxy Nexus] djmcnz:
Ok, so at least now we're sure /data/local/ is being used. Try using the 'Single Animation Flag' as described in the first post to force a particular animation, reboot twice and see if that works - obviously you should see the animation you've selected and none other. If that works remove the flag, reboot again and let me know.
[Samsung Galaxy Nexus] natezire71:
Like that other guy a few posts above... It just started working. No clue why. Rebooted several times and they were different boot animations each time. x)

Thanks for the help man. Keep up the great work. :laugh:
[Samsung Galaxy Nexus] djmcnz:
Nice one! Enjoy. :)
[Samsung Galaxy Nexus] ppog:
-deleted-
[Samsung Galaxy Nexus] djmcnz:
I didn't get a chance to reply! :)

Pretty random is the answer:

# generate 8bit random number, increase if more than 255 animations
RANDOM=$(hexdump -e '1/1 "%d"' -n 1 /dev/urandom)

# select random file
BA_NUM=$(($RANDOM % $BA_COUNT + 1))
BA_FILE=$(sed -n "${BA_NUM}"p ${BA_TMP})

Which means of course there's a similar chance of seeing the same animations again and again as there is seeing a unique one each time.
[Samsung Galaxy Nexus] ppog:
Thanks for the reply. I deleted the post because I checked, and I realised that I had seen all of them at least once, except for two which I think had errors in the desc file. So my post was that of the classic xda user (not Dev.) who posts *****y posts without first bothering to check the facts for himself! :silly:

THank you.
[Samsung Galaxy Nexus] Mizun0h:
My experience. Lots of trial and error. The kind of script worked after a clean install of aokp jb build 4. Now here's what's happening. If I shutdown my phone and then boot it shows a random animation. If i just reboot my phone it shows the animation that was made in the last cold boot. If I reboot my phone 5 times in a row it will show the same animation. Only with a shutdown and cold boot does the script work for me. Are there any ideas for a solution?
[Samsung Galaxy Nexus] djmcnz:
If it's a "hot boot" (quick boot) then it doesn't execute the entire start-up procedure so the script won't get executed. You can check this by running an 'adb logcat' whilst rebooting to see if the script runs - it will print to the log near the very beginning of the boot process.

Unfortunately there's nothing that can be done about this.
[Samsung Galaxy Nexus] gialandra:
Sorry, maybe is a stupid question but is there a script that simply disable or delete the bootanimation on all android 4 smartphone?
[Samsung Galaxy Nexus] djmcnz:
If you simply remove /system/media/bootanimation.zip then the very basic "Android" animation will show, I don't think you can remove this.
[Samsung Galaxy Nexus] gialandra:
With ROM Toolbox Lite I have check an option to disable the boot animation and now the word Google with a open padlock appear until all is loaded. I try to make the same thing without install everytime 8 mega of app on all two smartphone (GNex + Sony mini). BTW thank you
[Samsung Galaxy Nexus] viperML:
Download link is down
[Samsung Galaxy Nexus] djmcnz:
I'll see if I can grab a copy from my archives and create new links.
[Samsung Galaxy Nexus] Citizen_Snips:
Hey guys, I've since moved on to the Nexus 5 and haven't actually tried this mod on that phone, but I did upload this zip mod to my dropbox over a year ago. I'll upload it in just a few minutes and edit this post. Brb.

Md5: 766d28b5a99b8f7dee44f229ef9a2259

Edit: can't upload on XDA, 20MB limit on zip files. Here's the link to my dropbox folder;

https://www.dropbox.com/s/719fjlqp4i5ilx8/RandomBootAnimationsFull.zip

Let me know if Dropbox kills the link or disables my account, lol. I never really use it since I got on Drive. [MENTION=225651]op[/MENTION] let me know if the link is a problem for you, I'll remove it no questions asked. This is the same file I downloaded from this thread when I was using a GNex. Loved it so much, I saved it. Never edited in any way, shape, or form. Just sitting in Dropbox since 2012, LOL.
[Samsung Galaxy Nexus] djmcnz:
Thanks for this.

I've updated the first post with the necessary attachment.