[Honor 8 Themes, Apps, and Mods] bogarty:
WHY THIS TUTORIAL YOU MIGHT ASK? Making a boot animation for Android certainly isn't rocket science. Well, in most cases, I would certainly agree. I make animations for Android all the time without a hitch. The Honor 8, however, proved to be a special case for many reasons. First of all, it stores the bootanimation.zip in several places throughout the device, so determining which one needed to be replaced was the first obstacle. I soon discovered too that the device is also is extremely particular about the format of the images, the method of compression used on the images and the method of compression used in zipping the files. Since I don't own the device myself too, it took weeks of almost continuous tests with someone who had the device to actually determine what parameters needed to be in place for the animation to function properly.

-------

Btw, Here Are My Honor 8 Animations For Reference:

https://xdaforums.com/showthread.php?p=70645944

-------

SO, BY REQUEST, HERE ARE THE STEPS FOR GETTING YOUR BOOT ANIMATION WORKING ON THE HONOR 8:

1) Set Up A Project Folder - First of all lets make a project folder(called "My Animation" or whatever). Open the folder and make two more folders inside it called "part0"(for the first part of the animation) & "part1"(for the second part). Then also create a blank ".txt" file called "desc.txt" and just copy this bit of text into it for now and save it:

1080 1920 20 p 1 0 part0 p 0 0 part1

2) Decide How You Want Your Animation To Work - For the first part of my animation I decided to have it simply fade in on mine. After fading I made an actual moving animation frame by frame that would just loop until the device boots up.

3) Make Sure Your Images Are The Correct Size - When creating the images for the Honor 8 you will need to make sure that they are 1080x1920 resolution, since that's the resolution of the display.

4) Naming The Images - When naming your images you'll want to make sure they appear in the proper sequence. To do this it helps to add numbers to each. You'll want to save the files for the first part of your animation into the "part0" folder, naming them something like "myanimation_001.png", then "myanimation_002.png", etc. Then, once you've finished the second part of the animation you'll want to save those files into the "part1" folder. Make sure that if you ended on say "myanimation_009" in "part0" that you continue where you left off at "myanimation_010" in "part1".

5) Make Sure Your Images Are PNG - Here's where things start to get trickier on the Honor 8. Even though the stock animation is in JPG, for some reason if you use anything other than PNG format, the most you will likely get when testing your animation is a bootloop or a flickering black screen. The Honor 8 seems to prefer PNGs.

6) Converting Your JPGs To PNGs(if needed) - If you're making your animation from scratch, say in Photoshop, then you can simply just save each frame of the animation as a PNG from the start, but if like me you already saved them to JPG or if you're extracting images from a video that come out JPG or you're porting another animation that's already JPG, then you will need to convert. You can load each image into a program like Photoshop and just do a "Save As" .PNG, as I mentioned, but you'll have to do them one by one. If you want to convert them all at once though with a batch conversion, then there is also a great free program called IrfanView for that here: http://www.irfanview.com/

7) Compressing Your PNGs(if needed) - PNGS will generally be larger files, perhaps even 10 times larger than JPG. If you don't compress them there's a chance that your animation will lag under the weight of those larger files if they're too big. Also, you don't really want people to have to download a 50-60MB boot animation file anyway. In my animation everything worked fine after I converted the images, but I had to try a few different programs to compress the images before the animation would actually show after the compression, as most programs seemed to be producing PNGs that the Honor 8 simply didn't like for whatever reason. You want to find a PNG compression program that says it's "Lossless" by the way. This means that the images won't really lose any quality in the process. (For reference, I actually ended up using a Chrome extension in the end called "iLoveIMG" on a whim that produced the proper PNGs and compressed them all by about 66%.)

8) Setting The Animation Parameters - Before you finish your animation you may want to edit the parameters we entered for it earlier in the "desc.txt" file to tell it where the images are and how fast you want your animation to play. If, like most animations, you just want the first part to play once and the second part to loop until the device boots, then you can probably just leave this file for now with the text we entered before. It will play at 20 frames per second as we have it now. Then later, after testing the animation, if you find it's playing too fast, then you might want to just edit the "20" in there to something less like "10" or if it runs too slow then you can try changing it to something higher like "30". Whichever way looks better.

Here's a brief explanation of what each part in the "desc.txt" means:

"1080 1920 20 p 1 0 part0 p 0 0 part1"

1080(width) 1920(height) 20(frames per second)

p(new part indicated) 1(times to play part) 0(seconds to pause before next part) part0(folder name)

p(new part indicated) 0(times to play-0 means infinite) 0(seconds to pause) part1(folder name)

9) Making Your "bootanimation.zip" File - In order for your animation to work, you're going to have to pack the "part0", "part1" & "desc.txt" files into a zip file called "bootanimation.zip". You must make sure that you select "No Compression" when packing the zip though or the animation will not work and will likely just show a black screen.

10) Testing Your Animation - First of all, before testing PLEASE BACKUP YOUR DEVICE in TWRP, if it doesn't work and gives you a bootloop, then you will need a backup to restore your device. The alternative to this is just having another "working" boot animation to flash in TWRP to be able to boot up the device again. As I said, there are many copies of the "bootanimation.zip", so it took some time to determine which one to replace. It turns out that it was actually the standard "/system/media/bootanimation.zip" one that needed to be changed. This might seem like a no brainer to anyone who is familiar with making animations for Android, but until the images and everything else were properly formatted the animation wouldn't show anyway, so there was no way really to determine if the issue was due to a particular animation file being replaced or something else. Again though, this was the only device I've seen that keeps a copy of the "bootanimation.zip" in so many folders, so that was still a bit confusing to be sure. Anyhow, just navigate to your animation file in a root browser and move it into the "/system/media/" folder to replace the current animation. Make sure before you ever reboot though that you've changed your "bootanimation.zip" files permissions to "rw-r--r--" after copying it over or you will get a bootloop. Optionally too, you can save your original "bootanimation.zip" to a folder somewhere on your sdcard if you want to save it as an additional backup or you can just install my animation linked at the top of this post if you get stuck and can't boot.

NOTE: If you're making animations for Honor 8 devices with Nougat installed, then it appears they actually moved the location of the boot animation to "/cust_spec/media/", so you will want to put the image there. It's not confirmed yet though whether this is true for all Honor 8 devices with Nougat, but it has been confirmed for some. The US variant of the FRD-L04, build B162, Marshmallow, also stores it's animations in "/cust_spec/media/" however, so it can be a bit tricky. If you make a file for that and "/system/media/" as well though, then you should be covered. You can always check the OP of my animations page too(linked above) to see if there are any more updates on this.

-------

So there it is to the best of my knowledge. I hope this helps any of you that want to customize your boot animation on the Honor 8 to hopefully be able to do it relatively stress free. As usual, if you like this post or if you found it useful in some way, then please feel free to click the "THANKS" button on this post or even a mention on your animation thread when you finally upload it might be cool too. [emoji14]

Thank guys! Good luck.

NOTE: You may have noticed that I packed my animations(linked above) into a flashable zip, so people don't have to do it manually. If you need any help with this down the road, then just let me know on this thread. Also, I may go back through this thread at another time and attempt to make it more concise if possible. Thanks!

[IMG="Donate to Bogarty"]https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif[/IMG]