How to Customize Splash Logo
来源:互联网 发布:内蒙古广电网络登录 编辑:程序博客网 时间:2024/05/17 05:00
Solution Number 00029759
Language Key Words LK splash image
Detail Information
Solution Title How to customize splash image
Solution Details
Introduction and Background:
For LK display (boot loader) logo, there are two methods:
a) Read the splash image data from splash.h file.
b) Get the splash image data from Splash Partition.
Solution Statement:
For a), please see the below source codes:
bootable/bootloader/lk/platform/msm_shared/include/splash.h
bootable/bootloader/lk/dev/fbcon/fbcon.c
When fbimg is NULL, LK display data gets from imageBuffer_rgb888 arrays. Please see the below snippet codes.
void display_image_on_screen()
{
struct fbimage default_fbimg, *fbimg;
bool flag = true;
fbcon_clear();
fbimg = fetch_image_from_partition(); // Splash image from partition
if(!fbimg) {
flag = false;
fbimg = &default_fbimg;
fbimg->header.width = SPLASH_IMAGE_HEIGHT;
fbimg->header.height = SPLASH_IMAGE_WIDTH;
#if DISPLAY_TYPE_MIPI
fbimg->image = (unsigned char *)imageBuffer_rgb888;
#else
fbimg->image = (unsigned char *)imageBuffer;
#endif
}
fbcon_putImage(fbimg, flag);
}
For b), the steps to generate the splash.img:
1). Install the python on Linux desktop OS.
sudo apt-get install python-imaging
2). Prepare the logo picture with the PNG format in "device/qcom/common/display/logo" folder, such as "test.png".
python ./logo_gen.py test.png
3). Add splash partition on your partition.xml, such as
<partition label="splash" size_in_kb="10240" type="20117f86-E985-4357-B9EE-374BC1D8487D" bootable="false" readonly="false" filename=""/>
4). Check if have "splash.img", and then flash splash image to your device.
fastboot flash splash splash.img
Reference CAF link:
https://www.codeaurora.org/cgit/quic/la/device/qcom/common/tree/display?h=jb_3.2_rb5.60
Applicable Products AMSS 8226, AMSS 8228, AMSS 8274, AMSS 8274AB, AMSS 8626, AMSS 8628, AMSS 8674, AMSS 8928, AMSS 8936, AMSS 8939, AMSS 8974, AMSS 8974AB, AMSS8626, AMSS8916, AMSS8926, AMSS8974AA, AMSS8974AC, AMSS8992, AMSS8994, AMSS8996
Language Key Words LK splash image
Detail Information
Solution Title How to customize splash image
Solution Details
Introduction and Background:
For LK display (boot loader) logo, there are two methods:
a) Read the splash image data from splash.h file.
b) Get the splash image data from Splash Partition.
Solution Statement:
For a), please see the below source codes:
bootable/bootloader/lk/platform/msm_shared/include/splash.h
bootable/bootloader/lk/dev/fbcon/fbcon.c
When fbimg is NULL, LK display data gets from imageBuffer_rgb888 arrays. Please see the below snippet codes.
void display_image_on_screen()
{
struct fbimage default_fbimg, *fbimg;
bool flag = true;
fbcon_clear();
fbimg = fetch_image_from_partition(); // Splash image from partition
if(!fbimg) {
flag = false;
fbimg = &default_fbimg;
fbimg->header.width = SPLASH_IMAGE_HEIGHT;
fbimg->header.height = SPLASH_IMAGE_WIDTH;
#if DISPLAY_TYPE_MIPI
fbimg->image = (unsigned char *)imageBuffer_rgb888;
#else
fbimg->image = (unsigned char *)imageBuffer;
#endif
}
fbcon_putImage(fbimg, flag);
}
For b), the steps to generate the splash.img:
1). Install the python on Linux desktop OS.
sudo apt-get install python-imaging
2). Prepare the logo picture with the PNG format in "device/qcom/common/display/logo" folder, such as "test.png".
python ./logo_gen.py test.png
3). Add splash partition on your partition.xml, such as
<partition label="splash" size_in_kb="10240" type="20117f86-E985-4357-B9EE-374BC1D8487D" bootable="false" readonly="false" filename=""/>
4). Check if have "splash.img", and then flash splash image to your device.
fastboot flash splash splash.img
Reference CAF link:
https://www.codeaurora.org/cgit/quic/la/device/qcom/common/tree/display?h=jb_3.2_rb5.60
Applicable Products AMSS 8226, AMSS 8228, AMSS 8274, AMSS 8274AB, AMSS 8626, AMSS 8628, AMSS 8674, AMSS 8928, AMSS 8936, AMSS 8939, AMSS 8974, AMSS 8974AB, AMSS8626, AMSS8916, AMSS8926, AMSS8974AA, AMSS8974AC, AMSS8992, AMSS8994, AMSS8996
0 0
- How to Customize Splash Logo
- How to customize Larbin
- How to customize ADF exception
- How to customize xtragrid column line
- How to customize back button on UINavigationBar
- How to Customize UITabBar on iOS 5
- How to Customize UITabBar on iOS 5
- How to Customize UITabBar on iOS 5
- How to Customize UITabBar on iOS 5
- How-to: Customize Android progress bars
- How to Customize your Terminal Prompt
- How to set splash timeout in scrapy-splash?
- How to change peoplesoft logo
- [Salesforce] How to redirect to customize page through override button
- How to customize the UI in IBM ITIM Solution
- How to customize a link at your desktop in LINUX
- 自定义UITabBar=How to Customize UITabBar on iOS 5
- How To Change, Customize & Create Android Boot Animation [Guide]
- 面向对象分析设计与编程OOA/OOD/OOP
- MPAndroidChart之BarChart
- SSM框架搭建及源码解析--框架搭建(一)
- 浏览器的兼容性
- Java三大器之监听器(Listener)的工作原理和代码演示
- How to Customize Splash Logo
- 作业(firefox插件)
- 顺序结构程序设计
- Android原生Launcher3简要分析
- 一个makefile的例子
- Android进程保活的一般套路
- 手游架构的设计
- SQL语句SELECT INTO
- C和C++中struct的区别