Android Customizing BootAnimation: Difference between revisions
(Created page with "<!-- Set release according to "release" parameter in URL and use RELEASE_N7.1.1_1.0.0_VAR-SOM-MX6 as default --> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- --> {{#l...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
--> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- | --> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- | ||
--> {{#lst:Android_Platform_Customization|{{#var:RELEASE_PARAM|RELEASE_N7.1.1_1.0.0_VAR-SOM-MX6}}}} <!-- | --> {{#lst:Android_Platform_Customization|{{#var:RELEASE_PARAM|RELEASE_N7.1.1_1.0.0_VAR-SOM-MX6}}}} <!-- | ||
--> {{PageHeader|{{#var:HARDWARE_NAME}} - | --> {{PageHeader|{{#var:HARDWARE_NAME}} - {{#var:ANDROID_VERSION}} - Logo and Boot Animation customization}} {{DocImage|category1={{#var:HARDWARE_NAME}}|category2=Android}} __toc__ | ||
==Changing Android Linux Penguin Logo== | ==Changing Android Linux Penguin Logo== | ||
1. Create your logo in a .png format (logo.png), and run the following commands to convert it to a 224 colors PPM formatted image file named logo_linux_clut224.ppm: <br> | 1. Create your logo in a .png format (logo.png), and run the following commands to convert it to a 224 colors PPM formatted image file named logo_linux_clut224.ppm: <br> | ||
Install following packages on host machine and create a ppm file from png | Install the following packages on the host machine and create a ppm file from png | ||
$ sudo apt-get install netpbm | $ sudo apt-get install netpbm | ||
$ pngtopnm logo.png | ppmquant 224 | pnmnoraw > logo_linux_clut224.ppm | $ pngtopnm logo.png | ppmquant 224 | pnmnoraw > logo_linux_clut224.ppm | ||
2. Replace the default logo file in the Linux source | 2. Replace the default logo file in the Linux source | ||
Note: If the Android uses GKI, the Linux kernel boot logo won't be visible. | |||
3. Using the Linux source code directly <br> | 3. Using the Linux source code directly <br> | ||
Line 20: | Line 22: | ||
4. Build the android image following <br> | 4. Build the android image following <br> | ||
{{Varlink|Android_Customizing_the_Linux_kernel|{{#var:RELEASE_LINK}}|Customizing the Linux kernel}} | {{Varlink|Android_Customizing_the_Linux_kernel|{{#var:RELEASE_LINK}}|Customizing the Linux kernel}} | ||
==Changing Android Boot Animation == | ==Changing Android Boot Animation == | ||
Line 29: | Line 30: | ||
and replace the newly created .zip in the build, | and replace the newly created .zip in the build, | ||
3. To customize your boot animation you need to create bootanimation- | 3. To customize your boot animation you need to create bootanimation-var1280.zip and replace it in android_build/device/variscite/common/bootanimation-var1280.zip and replace it with the existing file. | ||
* Please note:<br> | * Please note:<br> | ||
You must create the zip file in Linux as there are few dependencies and utilities, which only work correctly | You must create the zip file in Linux as there are few dependencies and utilities, which only work correctly | ||
under Linux. | under Linux. |
Latest revision as of 09:48, 18 September 2023
Changing Android Linux Penguin Logo
1. Create your logo in a .png format (logo.png), and run the following commands to convert it to a 224 colors PPM formatted image file named logo_linux_clut224.ppm:
Install the following packages on the host machine and create a ppm file from png
$ sudo apt-get install netpbm $ pngtopnm logo.png | ppmquant 224 | pnmnoraw > logo_linux_clut224.ppm
2. Replace the default logo file in the Linux source
Note: If the Android uses GKI, the Linux kernel boot logo won't be visible.
3. Using the Linux source code directly
Follow the "Build Linux from source code" guide to get the Linux kernel source tree.
Copy your logo_linux_clut224.ppm file to drivers/video/logo/logo_linux_clut224.ppm overwriting the original logo.
Configure your kernel and enable the default logo instead of the Variscite logo: Device Drivers -> Graphics support -> Bootup logo -> Standard 224-color Linux logo (Symbol: LOGO_LINUX_CLUT224)
If you want to create a different configuration for your own logo rather than overwriting the default one, you can look at this commit which adds the Variscite Linux logo to our kernel, and make a similar patch of your own.
4. Build the android image following
Customizing the Linux kernel
Changing Android Boot Animation
1. To change boot animation you need to create a custom animation.zip file,
2. To create and obtain new bootanimation.zip follow https://android.googlesource.com/platform/frameworks/base/+/master/cmds/bootanimation/FORMAT.md and replace the newly created .zip in the build,
3. To customize your boot animation you need to create bootanimation-var1280.zip and replace it in android_build/device/variscite/common/bootanimation-var1280.zip and replace it with the existing file.
- Please note:
You must create the zip file in Linux as there are few dependencies and utilities, which only work correctly under Linux.