[HOWTO] Moto: replace the startup screen warning

while I’d also like to relock the bootloader to get the assurance benefit, as in Relocking Bootloader after e os install moto g4 play - Motorola - /e/ community I first checked howto

… get rid of the startup screen warning (moto g4 play)?

xda forum to the rescue: one can flash a custom logo.bin to the partition containing this startup screen warning. There are some scripts at github and many custom logo.bins at xda-developers.com

GitHub - eriktim/moto-bootlogo: Modify the Motorola Moto Series' boot logo helped me. There’s a pending PR for the Makefile for some linker ordering you have to correct to successfully compile on gcc 10. After this you can add any png using your devices native resolution to the logo.bin.

I used this on a G4 Play

flash it

use “Extract the original bin file” from the Readme to get a trusted logo.bin

adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/by-name/logo of=/sdcard/logo.bin count=1 bs=634418"
adb pull /sdcard/logo.bin .

If you’re feeling lucky, there are logo.bins included in the bootanimation collection at Releases · bmaupin/motorola-boot-animations · GitHub

$ moto-bootlogo -i eelo-unlocked/logo.png eelo-unlocked/logo.bin
Created 'eelo-unlocked/logo-custom.bin'
Parsing header of 'eelo-unlocked/logo-custom.bin'.
..
Found 3 images.

$ adb reboot bootloader

$ fastboot flash logo ./eelo-unlocked/logo-custom.bin

(image applied from bootanimation · v1-q · e / os / android_vendor_lineage · GitLab)

5 Likes

Nice effort @tcecyk …shared this with the team and they are also planning something similar.

1 Like

to spare somebody the moto-bootlogo compile and sourcing of a logo.bin I uploaded them to https://www.androidfilehost.com/?w=files&flid=324750 (and signed the file hash).

To verify, create the tcecyk.pub file from my profile and use signify-openbsd or minisign to run

signify -C -p tcecyk.pub -x logo.sha1

(file extension sha1 is a misnomer, but AFH doesn’t allow for other sha file endings)

1 Like

to reiterate, with a downloaded logo.bin, all that needs to be done is

fastboot flash logo ./logo-bin

the signature verification is academic. The long howto is for people sourcing and modifying their own partition.

hi,

i am interrested by replace the charge animation have you some hints about that ?

the charge animation lives in the logo.bin / partition too, but with another header (“logo_battery”). If you modify main.c to replace this header instead of logo_boot/logo_unlocked it should work. If it is an animation it wants frames, so you’d need to find out its structure.

the xda forum is full of Moto Logo customization, it was an industry in the mid 2010s. See this thread for a util that can already address the battery, the (32bit, statically linked) binaries are still available at androidfilehost.com.

1 Like