- May 7, 2009
- 197
- 64
Ever since I got S-OFF on my G1, I set up a custom splash image. Here's how to do this on the G2.
Info:
The G2 stores the splash image on the /dev/block/mmcblk0p19 partition. By default, this is a white image with green letters spelling 'htc' in the center of the screen.
Prerequisite:
Install and get familiar with the Android SDK see Android SDK | Android Developers also [HOW-TO] ADB for Dummies(How-To Learner's Guide) G1 Android Development
Unlock your T-Mobile G2 / HTC Desire-Z / HTC Vision see [GUIDE] Perma-root and flash ENG HBOOT
Install FFmpeg
Windows:
Extract the ffmpeg.exe file from the bin folder in ffmpeg-r25512.7z
- or Shortcut - get the getsplash.zip from gariak
Install the adb (Android Composite ADB Interface) and fastboot (Android Bootloader Interface) drivers from the android-sdk-windows\usb_driver folder
Mac:
Might find this ffmpeg guide helpful - An easy install of the ffmpeg command line tool - Mac OS X Hints
Backup: (Optional)
To get the current image from the phone, execute this from a root shell:
On your computer, you can turn this into a PNG using ffmpeg from the command line:
Flash:
You can set the splash by converting an image you want to a 480x800 resolution PNG file, then use ffmpeg to convert it to raw565 format using the command line:
Then with an unlocked (S-OFF) bootloader, flash the new_splash.img file to your phone:
OR you can flash from a terminal window on your phone. Be very careful with this method and triple check that you typed everything correctly so you do not accidentally brick your phone:
References:
Android/HTC/Vision/LinuxAnalysis – TJworld
[Request] MyTouch splash screen?
[TOOL] [Linux / OSX] Splash Screen creator / flasher
gravis86
gariak
An easy install of the ffmpeg command line tool - Mac OS X Hints
wilnotdie
Info:
The G2 stores the splash image on the /dev/block/mmcblk0p19 partition. By default, this is a white image with green letters spelling 'htc' in the center of the screen.
Prerequisite:
Install and get familiar with the Android SDK see Android SDK | Android Developers also [HOW-TO] ADB for Dummies(How-To Learner's Guide) G1 Android Development
Unlock your T-Mobile G2 / HTC Desire-Z / HTC Vision see [GUIDE] Perma-root and flash ENG HBOOT
Install FFmpeg
Windows:
Extract the ffmpeg.exe file from the bin folder in ffmpeg-r25512.7z
- or Shortcut - get the getsplash.zip from gariak
Install the adb (Android Composite ADB Interface) and fastboot (Android Bootloader Interface) drivers from the android-sdk-windows\usb_driver folder
Mac:
Might find this ffmpeg guide helpful - An easy install of the ffmpeg command line tool - Mac OS X Hints
Backup: (Optional)
To get the current image from the phone, execute this from a root shell:
Code:
dd if=/dev/block/mmcblk0p19 of=/mnt/sdcard/splash.img
Code:
ffmpeg -f rawvideo -pix_fmt rgb565 -s 480x800 -i splash.img -f image2 splash.png
Flash:
You can set the splash by converting an image you want to a 480x800 resolution PNG file, then use ffmpeg to convert it to raw565 format using the command line:
Code:
ffmpeg -i new_splash.png -f rawvideo -pix_fmt rgb565 new_splash.img
Code:
adb reboot bootloader
fastboot flash splash1 new_splash.img
fastboot reboot
Code:
dd if=/mnt/sdcard/splash.img of=/dev/block/mmcblk0p19
References:
Android/HTC/Vision/LinuxAnalysis – TJworld
[Request] MyTouch splash screen?
[TOOL] [Linux / OSX] Splash Screen creator / flasher
gravis86
gariak
An easy install of the ffmpeg command line tool - Mac OS X Hints
wilnotdie
Attachments
Last edited: