FORUMS
Remove All Ads from XDA

[GUIDE] Changing boot splash image on the Huawei Y6

225 posts
Thanks Meter: 223
 
By DestructoSphere, Senior Member on 20th January 2017, 07:02 AM
Post Reply Email Thread
Hello Y6 users. Y6 ONLY
Today I am sharing a script I wrote that will run on your device (or linux with some small modifications) that gave me the ability to change my boot splash image.

So far tested on the following devices:
SCL-L02

After a lot of analysis of the oeminfo partition I found 2 locations that contain the boot splash image and found that if I extracted them and then added a bitmap header plus an empty 2 byte footer I now had a usable image.
I took this information to look at replacing the raw data in oeminfo and found that fthe second location was where the image displayed on my Scl-l02 was kept.
I wanted to make the process easier than hex editing the partition so wrote the script.
Anyway enough boring stuff lets get to it.

Risk of bricking is unknown so assume high, this will modify your oeminfo partition.

You know, this horrible thing.
Click image for larger version

Name:	logo.jpg
Views:	510
Size:	39.2 KB
ID:	4009896
No one wants to be stuck with a logo you can't change.

Download the attached zip, inside is the script and 2 ready made bitmap files if you like one of them.
Click image for larger version

Name:	2.jpg
Views:	490
Size:	159.4 KB
ID:	4009900
and the one I'm using
Click image for larger version

Name:	1.jpg
Views:	440
Size:	192.2 KB
ID:	4009901

The first step to getting rid of that huawei logo is creating the image that you want to see when you turn your phone on.
I am using photoshop to achieve this however I'm sure there are other applications that can do this for you as long as they can do the following. Create an image 720 pixels wide and 1280 high in RGB 8bit mode. Can save an image in bitmap (.bmp) format with 24 bits per pixel and can flip the row order.

So create your empty picture in the same manner shown below
Click image for larger version

Name:	create.jpg
Views:	502
Size:	238.5 KB
ID:	4009897

Now once you have edited the image you want, making sure that the resolution does not change you want to save in the manner shown below.
Click image for larger version

Name:	save.jpg
Views:	496
Size:	60.9 KB
ID:	4009898

Now we have the code below to follow, I used sdcard/oem as my directory.
Code:
D:\adb>adb root
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
restarting adbd as root

D:\adb>adb remount
remount succeeded

D:\adb>adb shell mkdir /sdcard/oem

D:\adb>adb push oemlogo.zip /sdcard/oem/
3504 KB/s (3756616 bytes in 1.046s)

D:\adb>adb shell
scale:/ # cd sdcard/oem
scale:/sdcard/oem # unzip oemlogo.zip
Archive:  oemlogo.zip
  inflating: oemlogo
  inflating: 1.bmp
  inflating: 2.bmp
scale:/sdcard/oem # cp ./oemlogo /system/bin/
scale:/sdcard/oem # chmod 755 /system/bin/oemlogo
scale:/sdcard/oem # oemlogo

**********************************************************
*        Huawei Y6 splash logo replacement script        *
*                                                        *
*             written by DestructoSphere                 *
*  https://forum.xda-developers.com/member.php?u=7009748 *
*                                                        *
**********************************************************

usage: oemlogo [-e] [-c] [-p] [file ...]

oemlogo, tool to extract and replace boot splash screen on the Huawei Y6

NOTICE: Always extract first and view created files to ensure correct binary loc
ation.  Failure to do so can BRICK your device... Use with caution.

Press [enter] to confirm you understand the risks.


-d       Pull diskimage from partition to oeminfo.img
-e       Extract logos from oeminfo.img into current directory
-c       Insert logo [file...] into oeminfo.img in the current directory
-p       Push oeminfo.img in current directory to partition
Exiting.

scale:/sdcard/oem # oemlogo -d

Dumping oeminfo partition
Diskmage dump succeeded

scale:/sdcard/oem # oemlogo -e

Extracting logos from ./oeminfo.img.
logo1.bmp created
logo1.bmp and logo2.bmp created, please ensure these are both valid images and t
hat at least one of them match your current splash screen.

scale:/sdcard/oem # oemlogo -c 1.bmp

Inserting 1.bmp into ./oeminfo.img, this will take a minute.
..................
Logo inserted, please reextract to ensure process completed successfully

scale:/sdcard/oem # oemlogo -e

Extracting logos from ./oeminfo.img.
logo1.bmp created
logo1.bmp and logo2.bmp created, please ensure these are both valid images and t
hat at least one of them match your current splash screen.

scale:/sdcard/oem # oemlogo -p

Pushing oeminfo.img to /dev/block/bootdevice/by-name/oeminfo
131072+0 records in
131072+0 records out
67108864 bytes transferred in 9.602 secs (6989050 bytes/sec)
Success, reboot your device to see your new splash image.
If you are unsure you got this correct please rename ./oeminfo.img.bak to oeminf
o.img and re run this command to restore

scale:/sdcard/oem # reboot
Now when you reboot you should see your brand new boot splash.
Attached Files
File Type: zip oemlogo.zip - [Click for QR Code] (3.58 MB, 336 views)
The Following 9 Users Say Thank You to DestructoSphere For This Useful Post: [ View ] Gift DestructoSphere Ad-Free
 
 
22nd January 2017, 04:18 PM |#2  
Member
Thanks Meter: 3
 
More
Nice guide, but the problem is resolution of images:

Invalid image dimensions, image must be 720 pixels wide and 1280 pixels high... Exiting

BTW i used your both images
22nd January 2017, 08:25 PM |#3  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by Ruven03

Nice guide, but the problem is resolution of images:

Invalid image dimensions, image must be 720 pixels wide and 1280 pixels high... Exiting

BTW i used your both images

for me too Y6 SCL-L01 brand "tim"
23rd January 2017, 07:14 PM |#4  
Senior Member
Flag Gerash
Thanks Meter: 58
 
More
Nice guide thanks
23rd January 2017, 07:22 PM |#5  
Member
Thanks Meter: 3
 
More
Quote:
Originally Posted by Saber5311

Nice guide thanks

How did you made it work?
24th January 2017, 02:20 AM |#6  
DestructoSphere's Avatar
OP Senior Member
Thanks Meter: 223
 
More
Quote:
Originally Posted by Ruven03

Nice guide, but the problem is resolution of images:

Invalid image dimensions, image must be 720 pixels wide and 1280 pixels high... Exiting

BTW i used your both images

That's odd it might be the way they were decompressed as it works for me.
Can you try this code on each file?
Code:
 file=./1.bmp
width=$(dd bs=1 skip=18 count=2 if=$file | xxd -p) 2> /dev/null
echo $width
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20170124-151340.png
Views:	132
Size:	97.2 KB
ID:	4014656  
The Following User Says Thank You to DestructoSphere For This Useful Post: [ View ] Gift DestructoSphere Ad-Free
24th January 2017, 12:49 PM |#7  
Senior Member
Flag Gerash
Thanks Meter: 58
 
More
Quote:
Originally Posted by destructosphere

that's odd it might be the way they were decompressed as it works for me.
Can you try this code on each file?

Code:
 file=./1.bmp
width=$(dd bs=1 skip=18 count=2 if=$file | xxd -p) 2> /dev/null
echo $width

i use your image and seccefull but with another image not work invalid image dimensions
24th January 2017, 03:00 PM |#8  
Senior Member
Flag Gerash
Thanks Meter: 58
 
More
Quote:
Originally Posted by Ruven03

How did you made it work?

i found the problem you must install android 6 or 7
install android 7 and try it again
24th January 2017, 07:11 PM |#9  
Member
Thanks Meter: 3
 
More
Hmm i noob (new) at this, so i will wait for camera fix on android 7 so I can change it
25th January 2017, 10:34 PM |#10  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by Saber5311

i found the problem you must install android 6 or 7
install android 7 and try it again

worked for me with android 7

nice work!
26th January 2017, 09:28 AM |#11  
Member
Thanks Meter: 3
 
More
I can confirm it works if u have android 7
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes