[Q] Copying bootanimation to carrier/cust/.. fails

qstarin

Senior Member
Feb 13, 2011
162
44
0
I have a U.S. Sprint LG G3 I'm trying to load custom animations on and it's giving me a heck of a time accomplishing that..

I'm trying to copy a bootanimation.zip into /carrier/cust/poweron (and a shutdownanimation.zip into /carrier/cust/poweroff) and ES File Explorer is telling me the copy task failed, with no further information.

I used stump root to root, have SU installed. ES file has root explorer enabled, rights have been granted. etc.

I can copy smaller files into those directories just fine, but over a certain size they fail. The percentage that the copy fails at amounts to the same amount of MB (that is, a 100MB file might stop at 17.5%, and a 50MB file will stop at 35% - both at what would be 17.5MB).

I can copy larger files other places, like /system/media. No problem there. I have like 20 GB of internal storage free. And worse, I was copying the same dang file into the same folder just fine earlier in the day. If I don't place another copy of the bootanimation.zip file in this folder, I get nothing but a black screen after the LG splash during boot (side note, wtf is the deal with needing 3 copies of the same bootanimation.zip or it won't work.. why on earth would it work like that).

No friggin clue why it constantly gives me a copy task failed message now. Any ideas?
 
Last edited:

meyerweb

Senior Member
Jun 19, 2010
2,407
1,141
0
I have a U.S. Sprint LG G3 I'm trying to load custom animations on and it's giving me a heck of a time accomplishing that..

I'm trying to copy a bootanimation.zip into /carrier/cust/poweron (and a shutdownanimation.zip into /carrier/cust/poweroff) and ES File Explorer is telling me the copy task failed, with no further information.

I used stump root to root, have SU installed. ES file has root explorer enabled, rights have been granted. etc.

I can copy smaller files into those directories just fine, but over a certain size they fail. The percentage that the copy fails at amounts to the same amount of MB (that is, a 100MB file might stop at 17.5%, and a 50MB file will stop at 35% - both at what would be 17.5MB).

I can copy larger files other places, like /system/media. No problem there. I have like 20 GB of internal storage free. And worse, I was copying the same dang file into the same folder just fine earlier in the day. If I don't place another copy of the bootanimation.zip file in this folder, I get nothing but a black screen after the LG splash during boot (side note, wtf is the deal with needing 3 copies of the same bootanimation.zip or it won't work.. why on earth would it work like that).

No friggin clue why it constantly gives me a copy task failed message now. Any ideas?
Not sure why the copy won't work, but those directories aren't where you want to put your custom boot animations anyway. What you need to do is delete or rename the animations in those folders, and then copy your custom ones into system/media. Here's a more detailed explanation:

http://forum.xda-developers.com/sprint-lg-g3/themes-apps/stock-boot-animations-guide-t2881117

I gave up on ES File Explorer a couple of versions ago, finding it a bit confusing and unreliable. Give FX a try:

https://play.google.com/store/apps/details?id=nextapp.fx
https://play.google.com/store/apps/details?id=nextapp.fx.rr (root add-on)
 
  • Like
Reactions: qstarin

qstarin

Senior Member
Feb 13, 2011
162
44
0
Not sure why the copy won't work, but those directories aren't where you want to put your custom boot animations anyway. What you need to do is delete or rename the animations in those folders, and then copy your custom ones into system/media. Here's a more detailed explanation:

http://forum.xda-developers.com/sprint-lg-g3/themes-apps/stock-boot-animations-guide-t2881117

I gave up on ES File Explorer a couple of versions ago, finding it a bit confusing and unreliable. Give FX a try:

https://play.google.com/store/apps/details?id=nextapp.fx
https://play.google.com/store/apps/details?id=nextapp.fx.rr (root add-on)

You are right, playing with it some more I do not appear to need the /carrier/cust folders. My head was swimming with how many times I tried putting zips in place and rebooting yesterday.

I wonder what the problem could be, then. I have no issues getting animations I downloaded from here to work. I was also able to use this site someone made to turn the vertical octopus gif from that thread into a working boot animation.

But when I try to put together an animation from this gif, I've had no success.

I've tried splitting the frames out with both Irfanview & ImageMagick. Then resizing from 480x480 to both 960x960 and 1440x1440 - then expanding the canvas to 1440x2560 and filling the new background in with black. Again, I've performed these manipulations with both IrfanView & ImageMagick.

I've tried jpg's and png's with varying levels of image compression as well as both 24 and 32 bit png's.

In the desc.txt file I've tried 30, 45, and 60 frames per second. For the part line I've tried:
p 1 0 part0
p 0 0 part0
c 1 0 part0
p 1 0 part0 (repeat this line x10)

And the zip I create uses Store compression (no compression), created with WinRAR.

I've tried connecting with adb and running the bootanimation command. When I have a working boot animation that I've downloaded, the command echos the string bootanimation at the prompt, and my phone screen flashes black for a split second. When I try the command with my custom animation in place, nothing is echoed at the prompt - no error messages or anything - and nothing happens on the phone.

I always get just a black screen on boot or shutdown trying my zip. Perhaps it's some issue with the images and the way I'm creating them.. or maybe I'm missing something simple. I put a few variations I've tried up in a dropbox folder if anyone cares to look and help.
 

meyerweb

Senior Member
Jun 19, 2010
2,407
1,141
0
I may have time to play around with this later in the week and see if I can get anything working. In the mean time, here's a different thread on converting GIFs to boot animaions. Maybe something here will work for you:

http://forum.xda-developers.com/showthread.php?t=2559670

You are right, playing with it some more I do not appear to need the /carrier/cust folders. My head was swimming with how many times I tried putting zips in place and rebooting yesterday.

I wonder what the problem could be, then. I have no issues getting animations I downloaded from here to work. I was also able to use this site someone made to turn the vertical octopus gif from that thread into a working boot animation.

But when I try to put together an animation from this gif, I've had no success.

I've tried splitting the frames out with both Irfanview & ImageMagick. Then resizing from 480x480 to both 960x960 and 1440x1440 - then expanding the canvas to 1440x2560 and filling the new background in with black. Again, I've performed these manipulations with both IrfanView & ImageMagick.

I've tried jpg's and png's with varying levels of image compression as well as both 24 and 32 bit png's.

In the desc.txt file I've tried 30, 45, and 60 frames per second. For the part line I've tried:
p 1 0 part0
p 0 0 part0
c 1 0 part0
p 1 0 part0 (repeat this line x10)

And the zip I create uses Store compression (no compression), created with WinRAR.

I've tried connecting with adb and running the bootanimation command. When I have a working boot animation that I've downloaded, the command echos the string bootanimation at the prompt, and my phone screen flashes black for a split second. When I try the command with my custom animation in place, nothing is echoed at the prompt - no error messages or anything - and nothing happens on the phone.

I always get just a black screen on boot or shutdown trying my zip. Perhaps it's some issue with the images and the way I'm creating them.. or maybe I'm missing something simple. I put a few variations I've tried up in a dropbox folder if anyone cares to look and help.
 
  • Like
Reactions: qstarin

qstarin

Senior Member
Feb 13, 2011
162
44
0
I may have time to play around with this later in the week and see if I can get anything working. In the mean time, here's a different thread on converting GIFs to boot animaions. Maybe something here will work for you:

http://forum.xda-developers.com/showthread.php?t=2559670
I've been hesitant to try an app, the boot animation installers have a lot of iffy reviews, and I've read ROM Toolbox is buggy on the G3 too. I haven't unlocked the bootloader and gone through flashing the stock rom yet on this device so I'm not quite ready to potentially soft-brick the phone.

I'm also a software developer by trade, and constructing and manually installing a boot animation is well within my comfort zone. I'm just not sure what I'm doing wrong here.

The command I was using to split the gif with ImageMagick is
convert -coalesce b.gif -resize 300% -background black -gravity center -extent 1440x2560 -units PixelsPerInch -density 96 frames/b%03d.png

I did notice that if I leave out the canvas expansion I end up with a 8bpp palette -ized png, which has considerably smaller file size. I didn't figure out how to get the expanded png's in that format yet because I wasn't sure if it would even work for the boot animation.
 

qstarin

Senior Member
Feb 13, 2011
162
44
0
So here's where I'm at - this is the bootanimation.zip - and I can't see what I'm doing wrong. I split the gif and then resize the png's, in separate steps because if I combine them I get weird artifacts in the images.

Code:
convert -coalesce b.gif frames/%03d.png
convert frames/*.png -resize 250% -background "#000000" -gravity center -extent 1440x2560 png24:part0/%03d.png
desc.txt (saved in utf-8 without BOM, line endings are {CR}{LF} - working boot animations I've downloaded use this line ending)
Code:
1440 2560 30
p 1 0 part0
Zipped with store, permissions set, nothing in the zip besides the desc.txt and part0/*.png. Black screen. I don't know what else to try; I've tried every variation I can think of.

This is frustrating. Every animation I try from this G3 thread of them works fine. I can unzip them and edit the desc.txt (change frame rate), rezip them, and they work fine. So I don't think I'm doing anything wrong with the desc.txt file (syntax or encoding) or while creating the zip.

I've taken some others, like the code one in 1080x1920 from this thread, and have no luck. I've tried installing it as-is, changing only the resolution in the desc.txt file, and resizing the images as well as changing the res in desc.txt. Always a black screen.

I mentioned an octopus gif before, and was able to get a working 1440x2560 boot animation using this site: http://gif2boot.ifc0nfig.com/ But it has a 3MB upload limit. I took the working boot animation generated from there and unzipped it, cut the png's down then doubled their size back to 1440x2560, zipped it back up and that didn't work either.
Code:
convert orig/*.png -gravity center -extent 720x1280 -resize 1440x2560 part0/X%05d.png
I also tried just converting them from 32 bit (originals, which work) to 24 bit (which is recommended) PNG's. Black screen. Tried converting to jpg's, no dice.

So I'm thinking nothing I touch with ImageMagick works, but I took the Gold Cross Bones from here and swapped black for white. That actually worked. So did converting it to 24bit PNG's. I'm so lost.
 
Last edited:

1619415

Senior Member
Mar 16, 2014
2,029
1,273
0
20
So here's where I'm at - this is the bootanimation.zip - and I can't see what I'm doing wrong. I split the gif and then resize the png's, in separate steps because if I combine them I get weird artifacts in the images.

Code:
convert -coalesce b.gif frames/%03d.png
convert frames/*.png -resize 250% -background "#000000" -gravity center -extent 1440x2560 png24:part0/%03d.png
desc.txt (saved in utf-8 without BOM, line endings are {CR}{LF} - working boot animations I've downloaded use this line ending)
Code:
1440 2560 30
p 1 0 part0
Zipped with store, permissions set, nothing in the zip besides the desc.txt and part0/*.png. Black screen. I don't know what else to try; I've tried every variation I can think of.

This is frustrating. Every animation I try from this G3 thread of them works fine. I can unzip them and edit the desc.txt (change frame rate), rezip them, and they work fine. So I don't think I'm doing anything wrong with the desc.txt file (syntax or encoding) or while creating the zip.

I've taken some others, like the code one in 1080x1920 from this thread, and have no luck. I've tried installing it as-is, changing only the resolution in the desc.txt file, and resizing the images as well as changing the res in desc.txt. Always a black screen.

I mentioned an octopus gif before, and was able to get a working 1440x2560 boot animation using this site: http://gif2boot.ifc0nfig.com/ But it has a 3MB upload limit. I took the working boot animation generated from there and unzipped it, cut the png's down then doubled their size back to 1440x2560, zipped it back up and that didn't work either.
Code:
convert orig/*.png -gravity center -extent 720x1280 -resize 1440x2560 part0/X%05d.png
I also tried just converting them from 32 bit (originals, which work) to 24 bit (which is recommended) PNG's. Black screen. Tried converting to jpg's, no dice.

So I'm thinking nothing I touch with ImageMagick works, but I took the Gold Cross Bones from here and swapped black for white. That actually worked. So did converting it to 24bit PNG's. I'm so lost.
It didnt work because you need a good root browser (not es file us like root browser)
 

qstarin

Senior Member
Feb 13, 2011
162
44
0
It didnt work because you need a good root browser (not es file us like root browser)
I've gone into a terminal on the phone and verified the permissions are correct and the file size exactly matches (haven't compared a hash though). Also, the same zips always work, and the same ones always don't. It's got nothing to do with the file explorer imho.
 

1619415

Senior Member
Mar 16, 2014
2,029
1,273
0
20
I've gone into a terminal on the phone and verified the permissions are correct and the file size exactly matches (haven't compared a hash though). Also, the same zips always work, and the same ones always don't. It's got nothing to do with the file explorer imho.
Ok well it could just be that the zips are bad or your not placing it in the correct spot (like a folder) try changing your rom
 

qstarin

Senior Member
Feb 13, 2011
162
44
0
Ok well it could just be that the zips are bad or your not placing it in the correct spot (like a folder) try changing your rom
The zips open fine and I can extract individual files onto the phone, which I have no problem viewing in the gallery. Other animations I put in place work so I am getting it in the right folder, and the rom shouldn't really matter but I've tried this on the stock rom and BarRin ZV6.
 

seanskiT!

Senior Member
Feb 27, 2013
1,381
1,225
143
Winston-Salem, NC
The zips open fine and I can extract individual files onto the phone, which I have no problem viewing in the gallery. Other animations I put in place work so I am getting it in the right folder, and the rom shouldn't really matter but I've tried this on the stock rom and BarRin ZV6.

Are you trying to extract the images for your boot animations on your phone? Or are you trying to make you own bootanimation.zip?
 

1619415

Senior Member
Mar 16, 2014
2,029
1,273
0
20
The zips open fine and I can extract individual files onto the phone, which I have no problem viewing in the gallery. Other animations I put in place work so I am getting it in the right folder, and the rom shouldn't really matter but I've tried this on the stock rom and BarRin ZV6.
This might sound a little stupid but maybe the phone just dosent like thoses. Or you may have done it in a way that the hardware/software may block it.
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone