Android Phone boot animation modification

Source: Internet
Author: User
<span id="Label3"></p><p style="line-height:29px"><p style="line-height:29px"><strong><span style="font-size: 16px;font-family: 宋体">Working principle</span></strong></p></p> <p style="line-height:29px"><p style="line-height:29px"><span style="font-size: 16px;font-family: 宋体">Android</span> <span style="font-size: 16px;font-family: 宋体">There are 2 types of system logon Animations:</span></p></p> <p style="line-height:29px"><p style="line-height:29px"><strong><span style="font-size: 16px;font-family: 宋体">1</span></strong> <strong> <span style="font-size: 16px;font-family: 宋体">: Android comes with Animations. </span></strong></p></p> <p style="text-indent:32px;line-height:29px"><p style="text-indent:32px;line-height:29px"><span style="font-size: 16px;font-family: 宋体">Consisting of two PNG images in foreground and background, these two images exist in the/system/framework/framework-res.apk file and correspond to the original file located in/frameworks/base/core/res/assets/images /。 The Android text portion of the foreground picture (android-logo-mask.png) is hollowed out, and the background image (android-logo-shine.png) is a simple texture. When the system is logged on, the foreground picture is displayed at the top level, and the program code (bootanimation.android ()) controls the background image to scroll continuously, and the background texture is scrolled through the foreground picture text cutout to achieve the animation effect.</span></p></p> <pre><pre>2: Multi-frame pictures are played in turn to form the Animation.</pre></pre> <pre><pre><span style="font-family: 宋体">This and put the movie similar, the animation file For/out/target/product/dkb/system/media/bootanimation.zip compressed package, When there is no bootanimation.zip in the directory, the system automatically loads the animation that comes with Android. Bootanimation Animation has 2 parts, namely part0,part1. Part0 generally play once, part1 generally loop playback until the system Starts.<br><br><br><br><br><br></span></pre></pre> <p><p></p></p> <p style="line-height:29px"><p style="line-height:29px"><strong><span style="font-size: 16px;font-family: 宋体">Production Steps:</span></strong></p></p> <p style="line-height:29px"><p style="line-height:29px"><strong><span style="font-size: 16px;font-family: 宋体"> </span></strong> <span style="font-size: 16px;font-family: 宋体">1<strong>:</strong> </span> <span style="font-size: 16px;font-family: 宋体">make your own animations:/frameworks/base/core/res/assets/images/ Directory of Android-logo-mask.png and android-logo-shine.png, directly with 2 of the same resolution of the PNG-24 picture to replace it, the name of the picture will remain Unchanged. You can then recompile the Package. </span></p></p> <p style="line-height:29px"><p style="line-height:29px"><strong><span style="font-size: 16px;font-family: 宋体">2</span></strong> <strong><span style="font-size: 16px;font-family: 宋体">:</span></strong> <span style="font-size: 16px;font-family: 宋体">making multi-frame picture animations:</span></p></p> <p style="line-height:29px"><p style="line-height:29px"><span style="font-size: 16px;font-family: 宋体">A:</span> <span style="font-size: 16px;font-family: 宋体">Create a new bootanimation folder, create a new 2 directory Part0,part1 in bootanimation, and a text file Desc.txt. </span></p></p> <pre><pre>B: Make animated picture Frames. Use Photoshop to save the exported PNG image in Png-24 format, and the name of the image to be named in order (for example: 1.png,2.png,3.png ...). finally, we put the continuous images in part0, and part1. of course, you can put 2 different animated pictures in the part0,part1.</pre></pre> <pre><pre><br></pre></pre> <p><p></p></p> <p style="line-height:29px"><p style="line-height:29px"><span style="font-size: 16px;font-family: 宋体">C</span> <span style="font-size: 16px;font-family: 宋体">: Desc.txt: This is a save form for ANSI format, used to set this animation pixel (size), number of frames, flashing times, folder name, etc., The general format is as Follows:</span></p></p> <p style="line-height:29px"><p style="line-height:29px"><span style="font-size: 16px;font-family: 宋体">480//</span> <span style="font-size: 16px;font-family: 宋体">indicates that the picture plays at 480*800 resolution, playing 25 pictures per second</span></p></p> <p style="line-height:29px"><p style="line-height:29px"><span style="font-size: 16px;font-family: 宋体">P 1 0 part0//p</span> <span style="font-size: 16px;font-family: 宋体">as a marker, which means to play 1 times in the order of the pictures inside the part0, with a time interval of 0 frames</span></p></p> <p style="line-height:29px"><p style="line-height:29px"><span style="font-size: 16px;font-family: 宋体">P 0 2 part1//</span> <span style="font-size: 16px;font-family: 宋体">indicates that the picture inside the part1 is played 0 times (that is, Looping) until the system is Booted. Two times between cycles 2 frames of picture. </span></p></p> <p style="line-height:29px"><p style="line-height:29px"><span style="font-size: 16px;font-family: 宋体">In fact, as long as a part is also possible.</span></p></p> <p style="line-height:29px"><p style="line-height:29px"><span style="font-size: 16px;font-family: 宋体">D</span> <span style="font-size: 16px;font-family: 宋体">: Enter the Bootanimation directory, package part0,part1,desc.txt into Bootanimation.zip and place the file in the/out/target/product/sdkdemo/system/ Media/directory. </span></p></p> <p style="line-height:29px"><p style="line-height:29px"><span style="font-size: 16px;font-family: 宋体"></span></p></p> <p style="line-height:29px"><p style="line-height:29px"><span style="font-size: 16px;font-family: 宋体">Windows</span> <span style="font-size: 16px;font-family: 宋体">: Packed in zip format, compression mode to select storage, otherwise it will not play properly</span></p></p> <p style="line-height:29px"><p style="line-height:29px"><span style="font-size: 16px;font-family: 宋体">Linux</span> <span style="font-size: 16px;font-family: 宋体">the following commands are Packaged:</span></p></p> <p style="line-height:29px"><p style="line-height:29px"><span style="font-size: 16px;font-family: 宋体">#zip-o</span> <span style="font-size: 16px;font-family: 宋体">–r. /bootanimation.zip./*</span></p></p> <p style="line-height:29px"><p style="line-height:29px"><span style="font-size: 16px;font-family: 宋体">Linux</span> <span style="font-size: 16px;font-family: 宋体">directives must use –O, which means that the compression level is the lowest level of stored, that is, packaging is not compressed, otherwise it will cause an animation display exception due to a problem with the packaging format. </span></p></p> <p><p><br></p></p><p><p>Android Phone boot animation modification</p></p></span>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.