Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
reukiodo
Old
(Last edited by reukiodo; 26th January 2011 at 07:13 AM.) Reason: update, elaborate
#1  
reukiodo's Avatar
Senior Member - OP
Thanks Meter 52
Posts: 144
Join Date: May 2009
Location: Tacoma, WA

 
DONATE TO ME
Arrow [GUIDE][MOD] Splash Image

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:
Code:
dd if=/dev/block/mmcblk0p19 of=/mnt/sdcard/splash.img
On your computer, you can turn this into a PNG using ffmpeg from the command line:
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
Then with an unlocked (S-OFF) bootloader, flash the new_splash.img file to your phone:
Code:
adb reboot bootloader
fastboot flash splash1 new_splash.img
fastboot reboot
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:
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
Attached Thumbnails
Click image for larger version

Name:	splash_g2.jpg
Views:	2350
Size:	5.7 KB
ID:	437503  
Attached Files
File Type: 7z mmcblk0p19.7z - [Click for QR Code] (1.4 KB, 421 views)
The Following 5 Users Say Thank You to reukiodo For This Useful Post: [ Click to Expand ]
 
g_grey
Old
#2  
Senior Member
Thanks Meter 4
Posts: 123
Join Date: Nov 2010
very nice, but what about instead of dd the partition you just use fastboot flash and direct it at the splash partition. but idk, i'm a newb
 
reukiodo
Old
#3  
reukiodo's Avatar
Senior Member - OP
Thanks Meter 52
Posts: 144
Join Date: May 2009
Location: Tacoma, WA

 
DONATE TO ME
Using dd is to retrieve the existing boot splash, for those that would like to be able to revert later on, or just for general knowledge.
 
Weaseal
Old
(Last edited by Weaseal; 9th November 2010 at 09:32 PM.)
#4  
Member
Thanks Meter 2
Posts: 82
Join Date: Aug 2009
My cmd sits at "< waiting for device >" - the device is in fastboot and if I reboot the phone I am able to "adb shell" successfully. Any hints? S-OFF and perma-root are done.

EDIT: Nevermind, I got it-needed to install fastboot driver.
T-Mobile G1 + CyanogenMod (retired)
T-Mobile G2 + Enom's "TheOfficial" 2.14.1 (retired)
Samsung Galaxy Nexus + AOKP build 39
 
joebobjoe
Old
#5  
Senior Member
Thanks Meter 3
Posts: 147
Join Date: Sep 2010
Location: Orlando
Does this replace the HTC logo, T-Mobile G2 logo, or both?
 
Weaseal
Old
#6  
Member
Thanks Meter 2
Posts: 82
Join Date: Aug 2009
Quote:
Originally Posted by joebobjoe View Post
Does this replace the HTC logo, T-Mobile G2 logo, or both?
Just the HTC logo.+
T-Mobile G1 + CyanogenMod (retired)
T-Mobile G2 + Enom's "TheOfficial" 2.14.1 (retired)
Samsung Galaxy Nexus + AOKP build 39
 
Greenarcher707
Old
#7  
Greenarcher707's Avatar
Senior Member
Thanks Meter 11
Posts: 564
Join Date: Oct 2006
Location: Yay Area 707
How bout replacing the G2 logo?

Mobile Manager
Device Roster:
Optimus G, Apple iPad LTE, Sony Tablet P, G Slate, Lumia 920, Samsung Skyrocket
 
SRed13
Old
#8  
Junior Member
Thanks Meter 0
Posts: 23
Join Date: Nov 2009
Location: Atlanta
Any way we can replace the ugly Tmobile G2 splash picture?
 
reukiodo
Old
(Last edited by reukiodo; 10th November 2010 at 09:44 AM.) Reason: correction
#9  
reukiodo's Avatar
Senior Member - OP
Thanks Meter 52
Posts: 144
Join Date: May 2009
Location: Tacoma, WA

 
DONATE TO ME
If you are using windows, you might have to manually install the fastboot driver the first time you connect it.

Open your device manager without the phone plugged in. Boot to fastboot mode (VOL_D+POWER, then POWER to select fastboot) on your phone. Plug in the phone and watch device manager to see if it finds 'Android Bootloader Interface' or something similar ('HTC Bootloader' is an older driver, but still works). It should show up as USB\VID_0BB4&PID_0FFF if you look at its device id.

If the device is detected as USB\VID_0BB4&PID_0C94, then it's in HBOOT mode, you need to select FASTBOOT from the HBOOT menu (using VOL_U or VOL_D, then POWER to select).
 
ffff00
Old
#10  
ffff00's Avatar
Senior Member
Thanks Meter 9
Posts: 179
Join Date: May 2009
Location: Las Vegas
Ive been using a custom bootanimation.zip for weeks. Just push one for another 800x480 device to /data/local/bootanimation.zip
T-mo G2 + CM Nightlies

Nexus 7 + ParanoidAndroid

Twitter: ffff00

 
Post Reply+
Tags
boot, image, splash, splash screen
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...