[Android General] DestructoSphere:
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.

View attachment 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.

View attachment 4009900

and the one I'm using

View attachment 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

View attachment 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.

View attachment 4009898

Now we have the code below to follow, I used sdcard/oem as my directory.

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://xdaforums.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.