In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the relevant knowledge of "how to modify the boot screen of Android". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Make a picture of the pixels on the current screen (the simulator defaults to 3200480)
Use PS to make a 32000480 picture, select "Save to Web format" when saving, and then on the pop-up window, select "PNG-24" for the "preset" item and save it as android_logo.png.
Note: it seems that only png-24 is supported, and the rle files generated in other formats do not display normally. If you are interested, you can verify it again.
two。 Convert the picture to raw format
Use the convert command that comes with ImageMagick under linux to convert the raw format as follows:
Convert-depth 8 android_logo.png rgb:android_logo.raw
Note: ubuntu 10.04 has the ImgageMagick tool installed by default. If the current system is not installed, you can install it by executing the following command:
Sudo apt-get install imagemagick
3. Convert raw format to rle file
You need to use the rgb2565 tool compiled by android. Under the android/out/host/linux-x86/bin directory (android is the directory where the current source code resides), the conversion command is as follows:
Rgb2565-rle
< android_logo.raw >Initlogo.rle
So far, the image that needs to be displayed for startup has been done, that is, initlogo.rle. Note that the file name must be this. If you want to change the file name, you need to modify the macro in android/system/core/init/init.h:
# define INIT_IMAGE_FILE "/ initlogo.rle"
The following needs to add initlogo.rle to the android file system
4. Locate the ramdisk.img file (android/out/target/product/generic/ramdisk.img), change the file name to ramdisk.img.gz, and extract it using the following command:
Gunzip ramdisk.img.gz
When I get ramdisk.img after decompression, some people may want to ask, why did the file name change back? This is not the case, just check it out with file ramdisk.img:
Before decompression: ramdisk.img: gzip compressed data, from Unix
After decompression: ramdisk.img: ASCII cpio archive (SVR4 with no CRC)
5. Use cpio to extract files:
Create a new temp directory:
Mkdir temp cd temp cpio-I-F.. / ramdisk.img
6. Export a list of files:
Cpio-I-t-F.. / ramdisk.img > list
Note: list is a text file in which the file structure of ramdisk.img is stored. We need to add the line initlogo.rle to this file. The modified file is as follows:
Data
Default.prop
Dev
Init
Init.goldfish.rc
Init.rc
Initlogo.rle
Proc
Sbin
Sbin/adbd
Sys
System
7. Generate ramdisk.img
Cpio-o-H newc-O ramdisk.img < list
Note: according to the description of list file, generate ramdisk.img file
8. Use ramdisk.img to overwrite ramdisk.img (android-sdk-windows/platforms/android-2.1/images/ramdisk.img) in the sdk directory, and * back it up first.
9. Start the simulator and you can see the boot interface we have made.
This is the end of the content of "how to modify Android boot screen". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.