• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Reopened] ;) Change device's Splash Screen [common methods not working]

ninadchaudhari

What's up !
Abandoned project....

NOTE : possible ways via fastboot and by flash_image( android executive ) more over decompiling boot though gives a rle file in res folder the rle after being replaced by other custom image does not yield change in boot also the rle canot be opened as photoshop reports phrasing problem,
some of these methods do work on other phones hence the project was started,but it seems that A70 has the image embedded in its boot-loader , [ more clarification is needed on this ] if any one can help ,the help is appreciated

You can find relavent discussion on
how to convert a image (png or bmp) to rle though ...

But here are things that were taken here

1.) flashing via fastboot splash splash.img
2.) flashing via fastboot splash1 splash.img
3.) flashing via flash_img -- Android executive
4.) replacing ( though not related ) accessible rle by custom

All the above steps have been carried out in Linux by mastermind
I cannot confirm as the device not being with me though :p



WE NEED SOME WAY TO GET THAT SCREEN FIRST --


YOU WON'T GET THE ORIGINAL SPLASH SCREEN OF OUR DEVICES BACK
ALSO IF YOU COMPLETELY MESSUP I AM NOT RESPONSIBLE...
THIS IS ONLY FOR DEVELOPMENT AND DO NOT EVEN TRY TO USE THIS
IF SHIT HAPPENS PLZ WATCH


use this s script for simplifying work for
building and flashing the splash screen !


OLD METHOD <--- DO NOT USE IT :P CAZ I AM TYPING A BETTER ONE !
How to use it :

Install ffmpeg a simple tool for OSX and Linux !
the instalation way for Ubuntu can be found here : follow to install first !
as i think no one uses Fedora/BT or other OS here !

1.) you need to create a executable BASH file with pasting all this stuff in it
it is damn easy ! just give the apt. permissions
[ i have already attached a script with right permissions for OSX and LINUX]
get it from the attachment and extract to get splash_chg.sh
do not bring that Windows here plz :p

2.) use it like
for help on commands !:
Code:
     splash_chg.sh --help
for using the script
Code:
     splash_chg.sh image_file



3.) yup the image file (.bmp) must be of 320x480 <--- that's common sense :)
you canuse any photo editor !
i use Photoshop but you can go for GIMP a open source and free one.
#!/bin/bash
prog_header() {
echo "###############################"
echo "####### EleGoS's FFMPEG #######"
echo "#Changed for Micromax A70 by Ninad##"
echo "### Splash Screen converter ###"
echo "###############################"
echo "version 1.0"
echo ""
}

if [ "$1" == "--help" ] || [ "$1" == "-h" ]; then
prog_header
echo "Usage"
echo "$0 your_image_file"
exit 0
fi


warning() {
printf "\e[0;31m$1\e[0m \n"
}

check_ok() {
printf "\e[0;32m$1\e[0m \n"
}

ffmpeg_check=$(which ffmpeg)
size_check=307200
size_desc="320x480"

if [ "$ffmpeg_check" != "" ]; then
OUTPUT=$(echo "$1" | cut -d'.' -f1).raw565
clear
prog_header
ffmpeg -i $1 -f rawvideo -pix_fmt rgb565 $OUTPUT
clear
prog_header
FILESIZE=$(cat $OUTPUT | wc -c)
if [ $FILESIZE -eq $size_check ]; then
check_ok "$OUTPUT is ready to be flashed."
else
rm $OUTPUT
warning "$OUTPUT filesize mismatches! Wrong image size ($size_desc)? Aborted."
exit 0
fi
echo "In order to flash this image you have to plug your phone in fastboot mode."
read -p "Flash it now? (y/n)
if [ "$REPLY" == "y" ] || [ "$REPLY" == "Y" ]; then
fastboot devices | grep -q "fastboot"
if [ $? -ne 0 ]; then
warning "The USB cable is not plugged, or the device is not in fastboot mode."
echo "To flash the splash screen, manually execute this command once in fastboot mode:"
echo "fastboot flash splash1 $OUTPUT"
exit 0
else
fastboot flash splash1 $OUTPUT
fi
else
echo "To flash the splash screen, execute this command once in fastboot mode:"
echo "fastboot flash splash1 $OUTPUT"
exit 0
fi
else
warning "ffmpeg not found! Please install it before running this script!\ni.e. (DEBIAN) apt-get install ffmpeg / (OSX) sudo port install ffmpeg"
fi

"here is the thread

Got it from XDA his/Her name is already listed in the script
it is all his Hard-work i just changed the variables , made it executable and posted here


FOR WINDOWS USERS

some linux users can provide them with the created splash screen and they can use the command like :

fastboot flash splash1 file
 
Finally it is here...
I was looking forward to change splash screen/bootlogo since few days n found fastboot method too but was not able to get original backup,that is y hesitated to try.I will post windows tool soon.
 
Here is bootlogo creation tool for windows.
Instructions are in Readme file inside the zip package.
You are free to redistribute the package without changing anything inside.
There is no way till now to get original mmx logo back,I m working on it.
I had originally RLE conversion tool that I modified according to Ninad's linux script.

@Ninad-
Is it *.raw565 or *.rgb565 file???

DISCLAIMER:
I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed. Please do some research if you have any concerns before flashing! YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
 

Attachments

Sorry guys for hurrying n posting windows tool without testing...no problem with tool,tool does work..
Problem is flashing...on "fastboot flash splash1 image.raw565" i m getting "FAILD : unknown partition" error..I tried "fastboot flash splash image.raw565" also but it also gave same Unknown Partition error....
So as of now, this method of changing bootlogo don't work...
sending 'splash1' (300 KB)...
OKAY [ 0.078s]
writing 'splash'...
FAILED (remote: unknown partition name)
 
Guys i have designed a bat that will backup all of ur device and one of the images will be our very needed splash.img
so just run this script this script needs more than 500mb on ur sd card
just connect the phone in adb and execute ...
dd if=/dev/block/mmcblk0p20 of=/mnt/sdcard/mmcblk20.img
from 0 to 14 most of them will give you nothing found simiar error
hence i will be writing a script in evening ...
@mastermind
appreciate your intrest in splash image .
i have a some better method for windows ....

see this [release] nbimg: HTC splash screen tool - xda-developers

its as simple as like: nbimg -F splash1.bmp -w 320 -h 480

BEST :
more over the link by Samrokx is by a very popular developer in XDA called DoomLord
9100+ thanks <---that's crazy !!!!

hence i his method is surely recommended and is damn easy as
convert_image_to_rle.bat <path_to_image_file>
convert_rle_to_image.bat <path_to_rle_file>

Being no need for any command line interface in Doom Lord method after some simple script work i think it wil be very convenient more over it will be better than one method for mac :( lol


if i am not wrong i am sure the link you provided was from "Splash-Screen-Creator-v0.02-Beta"<--- for windows optimized for A70

:) i have studied all possible ways for it on Windows and found doomlord's method convenient
if any one can just write a bat file for doomlord method else i am writing at night !!
 
@mastermind use doomlord stuff
i am writing scripts for it ( at night ) <-- for n00bs NOT FOR YOU :D :D :D hence you can easily use the command line !!!!
plus i think hold down for a second
 
I used tool from yagya gaire (http://yagyagaire.blogspot.in/2012/01/create-android-boot-splash-image-for.html) n modified according to ur script...it's very simple to use.just put images in PNG folder n run bat file n u r done...
DoomLord's method does work but it creates rle files,(original tool I modified also creates rle file) but we don't have any rle file in boot.img to change...only rle image in boot.img is aftercharge.rle in res folder of ramdisk n changing that one won't work...
We need to find which partition is it first cause as already mentioned there are no partition like "splash" or "splash1"
I have also been working on changing bootlogo n came across all methods u r suggesting but main problem is where to flash???

EDIT:
btw I have got(created) original mmx bootlogo....so we can experiment freely now.
 
Just need to flash by
fastboot flash splash aplash.img

<<I think you have missed the img stuff ...>>
I think this must work :



@mastermind first of all are you ready to lose your default splash screen ?
2.) download this nbimg
3.) give commands like
Code:
nbimg -F splash1.bmp -w 320 -h 480
<<note : its .BMP>> so you wil have to convert png to bmp
4.) you will notice a file called {splash1.bmp.nb}
5.) rename it to splash.img

when you use extension something like raw565 > fastboot may not recognize it as a image file which it handles
issue commands
Code:
fastboot devices
fastboot flash splash splash.img
 
Guys plz see this image on ur device and suggest corrections from the original boot image as we can ourself prepare the original boot screen of mmx

orisplash1.png
 
I got this line in adb logcat on boot..
02-19 22:01:44.941: I/kernel(130): <3>[ 23.994808] init: cannot open '/initlogo.rle'
So I give it a shot..added initlogo.rle in ramdisk n compiled boot.img,flashed via fastboot..
N I successfully got that rle as 2nd logo...n so i also didn't get above line in adb logcat again.
But mmx 1st logo is still mystery...
 
I got this line in adb logcat on boot..
So I give it a shot..added initlogo.rle in ramdisk n compiled boot.img,flashed via fastboot..
N I successfully got that rle as 2nd logo...n so i also didn't get above line in adb logcat again.
But mmx 1st logo is still mystery...
the first logo is from the kernel ....

it cant be changed untill we get source ..in our LG P500 we get 2 logos before bootanimation and it changes with kernel

.35 gives us silver LG logo
.32 is a red LG logo
 
the first logo is from the kernel ....

it cant be changed untill we get source ..in our LG P500 we get 2 logos before bootanimation and it changes with kernel

.35 gives us silver LG logo
.32 is a red LG logo
I think so...cause all conventional methods are not working.like fastboot flash splash or splash1...
so i will leave it now...
 
@mastermind caz it did'nt work i tried to compare the mnt partitions of Other phones and A70 (in ur previous post ) and found that in Desire there exists a special splash thingy in it but not in A70 !
btw thanks for the logcat thing :)
 
Back
Top Bottom