… 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
https://github.com/eriktim/moto-bootlogo 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
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.
01/2022 update: I had a look at the same procedure with a Moto G5 and G5s:
use blockdev --getsize64 /dev/block/platform/soc/7824900.sdhci/by-name/logo (path depends on device… look for by-name) for the bs (bytesize) value of dd to get the full partition. The value (“634418”) used prior was just taken blindly from the moto-bootlogo readme. The partition is actually 4 mbytes in ~2016 Motos, 16 mbytes later
also merge the PR upstream that parses the header size as 16bit value. This will make header readouts successful when there are more elements
running moto-bootlogo will extract all existing images, take those a basis for modification as the pixel size needs to be according to your device