yashsingh1/xdaforums huggingface dataset:
[HTC One X] denkem:
GPS is working fine for me. But I have to say that I disassembled HOX (screen replacement months ago) so I put those GPS pins a bit higher. Other thing that might help is to enable all location services (google, GPS etc.) in settings, then reboot phone and use GPS Status & Toolbox app (first, delete A-GPS data and then download A-GPS data). First fix might take some time, but other are fast (I only leave GPS sensor checked after first GPS fix - so no Google Location services enabled).
[Xiaomi Mi 5 Guides, News, & Discussion] GokulNC:
Note:

This is not bootanimation, this is the splash screen (the 'Mi' boot logo which is displayed when device is switched ON)

This is for Xiaomi Mi 5(, 5s, 5s Plus) & Mi Max/Mix Only (Snapdragon Variants)..

For other devices, please send me your splash.img so that I can create a tool for you too.

Requirements:

1. Rooted Xiaomi Mi 5 or Mi 5s / 5s Plus or Mi Max or Mi Mix (any ROM)

2. Optional: Terminal Emulator app or Custom Recovery or atleast working fastboot in computer

3. You're proceeding at your own risk.

Seems this tool won't work anymore for the latest updated firmware.

STEPS to create splash.img:

Before proceeding, make sure fastboot is setup properly in your computer (just incase something goes wrong)..

1. Download & Extract this: Splash_Logo_Maker.zip

2. Make sure you have a picture with resolution equal to your device resolution (for example, 1080x1920px for Mi5) or lesser.

Note:

In fact, you don't need 1080x1920 picture, you can even have a picture with any resolution lower than device resolution, which will automatically be centered while booting.

For example, here's the stock splash with resolution 161x321: Click Here

3. Now rename your picture as logo.png or logo.jpg (according to the format) & replace it inside "pics" folder of the extracted folder.

(Or you can also directly edit the picture inside)

4. Finally, run the 'CREATE_LOGO.bat' to create splash.img , which you can find inside the "output" folder after completion.

STEPS to flash splash.img:

Optional: To backup your original splash.img:

dd if=/dev/block/bootdevice/by-name/splash of=/sdcard/splash.img

(Not necessary though.. You may get it from the stock firmware itself.)

Now, Choose any one easy method to install:

a. To flash from recovery:

Transfer the flashable_splash.zip to your device and flash from TWRP or CWM or Philz or any other custom recovery.

b. To flash from Terminal Emulator:

Transfer the splash.img to your device's Internal Storage, Open Terminal Emulator & enter the following to flash it:

su
dd if=/sdcard/splash.img of=/dev/block/bootdevice/by-name/splash

c. To flash from Fastboot mode:

fastboot flash splash splash.img

Note:

Incase something goes wrong or device doesn't bootup, flash the stock splash.img from custom recovery or fastboot.

Note:

For Mi 5 upgraded to Android 7 (Nougat) firmware, if this tool doesn't work, try this tool here by [MENTION=7874192]Cynob[/MENTION]:

Mi 5 (Nougat) Logo Maker

Credits:

1. [MENTION=6319272]GokulNC[/MENTION] (myself ;)) who wrote this script

2. Based on logo_gen.py script

Hit the Thanks :good: button if it worked for you :)

You're welcome to share here the custom splash screens that you made, since others may find it useful :)
[Xiaomi Mi 5 Guides, News, & Discussion] deusxx:
Thanks, was looking for this, trying to figure it out from the similar instructions from Redmi.
[Xiaomi Mi 5 Guides, News, & Discussion] lukigoes:
Thank you for this beatiful script!

I've made a custom splash screen which looks in my opinion really nice, so I would like to share it. You can find it in my attachements, Thanks!
[Xiaomi Mi 5 Guides, News, & Discussion] Argenis_jbc:
Thank you man, this is my boot splash image :P
[Xiaomi Mi 5 Guides, News, & Discussion] ain_gt:
Thank you so much!! :good::D

This is my splash image
[Xiaomi Mi 5 Guides, News, & Discussion] 33bca:
Can someone create a Splash Screen with the image attached? The Script does not work on my Computer :(
[Xiaomi Mi 5 Guides, News, & Discussion] Argenis_jbc:
Wow man it looks very awesome i will create the splash screen in some hour for you if nobody help you.But Can you create an image that makes more sense with xiaomi for me? Please, if you have time obviously
[Xiaomi Mi 5 Guides, News, & Discussion] 33bca:
i can do one tomorrow, if i have the time for it. :p
[Xiaomi Mi 5 Guides, News, & Discussion] Argenis_jbc:
there you go! :)
[Xiaomi Mi 5 Guides, News, & Discussion] 33bca:
Thanks mate :highfive:

In the attachements you can see another logo, i just used the Unity 5 logo, so basicly no big work behind it. On the Second Splash Screen, i've created a mosaic like five ans placed it instead of the 5 logo.

I hope you like it.

Note: @ work, I only have paint.net... :p
[Xiaomi Mi 5 Guides, News, & Discussion] Burs:
Didn't worked for me unfortunately :(

Unlocked and rooted on latest global stable miui 8.

dd in terminal emulator went just fine.

After reboot, stock splash screen is still displayed.

Any idea what am I doing wrong?
[Xiaomi Mi 5 Guides, News, & Discussion] ermacwins:
Here is one I did for the Mi 4c http://xdaforums.com/showpost.php?p=68648359&postcount=14
[Xiaomi Mi 5 Guides, News, & Discussion] Borbingo Boy:
Seems cool, but RIP warranty
[Xiaomi Mi 5 Guides, News, & Discussion] glogal:
Thank you for your work.

just a few hours ago: ... searching the net for "convert rgb565 to rgb888" and trying to figure out a way to open the .img file with the boot logo image and do some personal tuning.

and then, Taà Daà! one pensiero* hit me, go check the friends at the XDA community!

* pensiero (italiano) = thought (english)

What do you intend?
[Xiaomi Mi 5 Guides, News, & Discussion] Patrick Nelson:
Fantastic. Thank you!

Will keep having a look here, interested in seeing what you guys come up with!
[Xiaomi Mi 5 Guides, News, & Discussion] FcukBloat:
nice sir, can you please provide it in .img format also?
[Xiaomi Mi 5 Guides, News, & Discussion] glogal:
Creepy splash screen (homage to H. R. Giger)

This is my first attempt at this "game".

The title of the image used for this splash screen is Bio-Mechanical Landscape I by Hans Rudolf "Ruedi" Giger.
[Xiaomi Mi 5 Guides, News, & Discussion] fabioplata:
Same for me, dont work, flash its Ok but still stock boot splash screen.
[Xiaomi Mi 5 Guides, News, & Discussion] glogal:
Small Image to try & trial & test

@fabioplata @Burs

Sometimes the script does not work depending on the specific environment where it is operating (the user computer), mainly is Python related.

Do you have it installed? wich version? Your Python is mission critical for your workflow / lifeflow? ...do you want to hunt down the problem?

My suggestion is: go with a virtual machine, a small one; bring it up for the work and then puff! close it when done. A fresh virtual machine is a blank slate so no mismatches between different/similia pieces of code.

If the problem is in the outcome and the delivery/deployment...

Did you try the 3 methods to accomplish this task?

Personally my preferenza goes to the flashable zip via twrp. ... and a "Dalvik" if there is time (:

For your testing in attach is available a small image: both versions, all 3 methods. Hope helps.
[Xiaomi Mi 5 Guides, News, & Discussion] Burs:
I don't think my issue is Python related, because I'm just flashing the same img file others flashed too (I don't even have that tool installed). My ultimate question is why other people can flash img file and everything works fine, but I still have the same logo image? Note that I have my Mi5 unlocked and rooted with latest twrp, and personally am very confident in what I'm doing. I tried it multiple times in many different ways (using Terminal, fastboot, and twrp), and damn thing just won't work for me.
[Xiaomi Mi 5 Guides, News, & Discussion] GokulNC:
What Mi 5 variant is this?

Is this MTK or Snapdragon ?

Please tell me the list of partitions in your phone by:

ls -l /dev/block/bootdevice/by-name/

Also, just to make sure, check if the fastboot picture is changed by going into fastboot mode..
[Xiaomi Mi 5 Guides, News, & Discussion] FcukBloat:
changed my splash screen smoothly with RRemix installed, thanks OP for the tip!

...maybe it doesn't work only with stock miui installed for some reasons?
[Xiaomi Mi 5 Guides, News, & Discussion] GokulNC:
Okay.. :confused:

So, yours is Mi 5 Prime..

Changing the 'splash' partition doesn't change bootlogo in your case..

FYI, 'logo' has the fastboot image for Mi5 (nothing to worry about that now)..

What I guess is maybe the splash logo is in some other partition..

For example, Mi 4c has its bootlogo in 'bk2' partition..

So maybe something like that is the issue for Mi 5 Prime..

I don't know because I don't own a Mi5..

I wouldn't either, if I had one, because there seems to be many damn variants..:crying:

What variant of Mi 5 is it exactly?

I'm wondering what it has to do with the ROM installed..:confused:

Did you flash the bootloader (or used fastboot to flash something) recently to go to RR ROM?

Or just flashed from TWRP?
[Xiaomi Mi 5 Guides, News, & Discussion] Burs:
That could very well be the case, and I'm not excluding that either.

For example, first I bought the standard 32GB version, which came with MIUI 8.

Then later I switched to 64GB version, but I got it with MIUI 7 installed.

So maybe the partition table is differently layed out depending on the OS version/s?

But then again, if partition is named "splash", why store something else on it and not the logo?

Is there a way to quickly check which partition contains splash screen?

Other than extracting .img's one by one, and comparing hashes with the original one :D
[Xiaomi Mi 5 Guides, News, & Discussion] FcukBloat:
I'm on 32gb version. i just fastboot flashed twrp, then switched from miui MM to custom N via twrp ;)
[Xiaomi Mi 5 Guides, News, & Discussion] GokulNC:
Nope, you have to extract the partitions and check..

1. Extract .img file from each partition using 'dd' command..

2. Install any Hex Editor in computer and open each .img file using that Hex Editor..

If the file starts with something like this: "SPLASH!! ", then that's the partition which contains the logo..
[Xiaomi Mi 5 Guides, News, & Discussion] Burs:
I thought the procedure would go something like that :) Brute-force method always works...

I might develop an app which will do that, just by scanning first few KB's of each partition.

Adding it to my to-do list :)
[Xiaomi Mi 5 Guides, News, & Discussion] matonka007:
I made bootanimation from your logo :D

Thanks :)
[Xiaomi Mi 5 Guides, News, & Discussion] myxcon:
Does this work for non rooted phones but unlocked (so basically fastboot flashing).?

Sent from my mobile device.
[Xiaomi Mi 5 Guides, News, & Discussion] Mulham82:
Dear Dev,

Please may you share the required files on Android 7 to flash the splash.img (META-INF) as the current way not letting a new splash.img to be change.

Thanks.
[Xiaomi Mi 5 Guides, News, & Discussion] Keyvannn:
Can anyone make google pixel bootlogo for mi5?
[Xiaomi Mi 5 Guides, News, & Discussion] glogal:
image for the splashscreen

Put the image that you want "transformed" here as attachment.
[Xiaomi Mi 5 Guides, News, & Discussion] SubwayChamp:
[MENTION=283507]Goku[/MENTION]INC Thanks for this thread, I know that is not the place to question this but if you think if it is possible to flash recovery also via terminal same as splash logo?
[Xiaomi Mi 5 Guides, News, & Discussion] SubwayChamp:
I share those dark splash mi5 it`s same resolution
[Xiaomi Mi 5 Guides, News, & Discussion] FcukBloat:
this method doesn't work anymore with new N firmwares right? can't get rid of the mi logo with red unlocked BL sign anymore with fastboot flash splash method :(
[Xiaomi Mi 5 Guides, News, & Discussion] Z4HD:
A reprint request

Can I reprint your post to MIUI BBS(CN) ? I think your GUIDE is very useful .
[Xiaomi Mi 5 Guides, News, & Discussion] andro_diggers:
You can create custom splash in fastboot to with this method...

Tested with libra (mi4c)

It should works in mi5 too...

http://xdaforums.com/oneplus-one/themes-apps/mod-customize-ones-bootlogo-t2857153/page16
[Xiaomi Mi 5 Guides, News, & Discussion] nesquix:
Working on mi note 2.
[Xiaomi Mi 5 Guides, News, & Discussion] pykfree:
I use Mi Max Hydrogen 2/16, and is'nt working on latest MIUI 8 dev ( android 7.0 ). I just got blank screen.

do you need my splash.img to fix this?

if yes, just tell me :)
[Xiaomi Mi 5 Guides, News, & Discussion] GokulNC:
Yes :)

fastboot flash splash splash.img

Yes :)

fastboot flash recovery twrp.img

Yes :) Feel free to do anything, but please do put a link back to this thread..

Use this for Mi 4c: Mi 4c bootlogo and fastboot changing

Thanks, will add it to the devices list soon.

BTW, it will be more helpful if you send the stock splash.img of Mi Note 2.. (There might be certain variations that you might not have noticed, that may cause problems with other pictures like fastboot/recovery)

I don't know what's the problem with Android N firmwares..

Anyway, send the the original stock splash.img from Android N firmware, I'll check it out :)
[Xiaomi Mi 5 Guides, News, & Discussion] pykfree:
alright. here you go, dude. Hydrogen N Splash Image
[Xiaomi Mi 5 Guides, News, & Discussion] GokulNC:
I checked the splash.img ..

It's completely the same as that of other Android versions..

I guess there are 2 possibilities:

a. Try picture with low very resolution (like the stock logo which has resolution 161x321)

b. Maybe the bootloader verifies the checksum of the splash partition before booting up; so only if it matches, it may display the image. If this is the case, I can't do anything about that..
[Xiaomi Mi 5 Guides, News, & Discussion] pykfree:
I'll check it later. thank you for your help :)
[Xiaomi Mi 5 Guides, News, & Discussion] SubwayChamp:
[MENTION=283507]Goku[/MENTION]INC Thx for your answer, I expressed my question incomplete, I meant if is it possible flash recovery via a terminal app in same device.
[Xiaomi Mi 5 Guides, News, & Discussion] ajaxcbcb:
can share the flashable zip file for this?
[Xiaomi Mi 5 Guides, News, & Discussion] @HOSCHI@:
Don't work on mi5?

Gesendet von meinem MI 5 mit Tapatalk
[Xiaomi Mi 5 Guides, News, & Discussion] Chema_F:
I guess you're already aware of this but I'd love being able to change the logo so..

I tried to make some changes in dev/block/bootdevice/by-name with ES Explorer (rooted) adding files, renaming... And once rebooted any change had been done, everything was exactly like before.

I'm wondering if the problem when flashing the splash.img with fastboot command could be related to this.

Please excuse if this is a big nonsense.
[Xiaomi Mi 5 Guides, News, & Discussion] Cynob:
Hello

[MENTION=513460]Hoschi[/MENTION]@ has asked me if i could take a look at it how to change the bootlogo in new versions. I dont own that phone so its a little limited what i could test and do but here is what i found out:

I think the splash.img dont get read at start and the Mi Logo is in logo.img file

Why that? If you overwrite the logo.img on the phone with garbage data the hardcoded linux penguin got shown instead of the mi logo.

Ok what i have tested:

build a kernel:

for gemini there are two "options" in the kernel ( maybe there are more but i didnt find something other useful till now)

one is for the hardcoded linux penguin in /drivers/video/logo/

the other is in /drivers/video/msm/mdss and called mdss_mdp_splash_logo

Ok now i editet the /drivers/video/msm/mdss/splash.h and wrote my own image with same size and 8bit ( used rgb instead bgr - should work >read mdss_mdp_formats.h) in the "splash_bgr888_image" char array.

result: standard mi logo is shown anymore at boot. No changes ....

Now i dissected the splash.img :

There we have a header with 512 byte:

There is the "SPLASH!!" header followed of the size of the picture in INT32 format

#	Raw	UINT32
0	41 4C 50 53	1095520339 //"SPLASH!!
4	21 21 48 53	555829331 //"SPLASH!!
8	00 00 00 A1	161 // width
12	00 00 01 41	321 // heigh

After the first 512 bytes the image starts.

you can calculate: heigh * with * bpp to get the filesize of the picture:

161x321x3 = 155043 byte

Now you can skip the first 512 bytes of the splash.img and extract the next 155043 bytes to a file.

There is the Mi picture ( without header but you could open it with avconv or ffmpeg)

Ok now if i do the same with logo.img i see the "SPLASH!!" header and something that looks like resolutions but in the wrong order:

#	Raw	UINT32
0	41 4C 50 53	1095520339
4	21 21 48 53	555829331
8	00 00 00 A1	161
12	00 00 02 2E	558
16	00 00 00 B2	178
20	00 00 04 38	1080
24	00 00 04 38	1080
28	00 00 01 41	321
32	00 00 03 E0	992
36	00 00 01 5E	350
40	00 00 07 80	1920
44	00 00 07 80	1920

It looks like i have 5 files in it. First all widths get listet and then all heights.

I tried to extract a single picture like above with splash.img but i didnt get a working file till now.

I have found out that for Mi3 there is a tool which should open the logo.img file to edit whats in it - but it didnt worked for me.

I hope somebody here know what to do to get the pictures out of the logo.img and can help me or give me a hint how to solve this puzzle?

kind regarts Cynob
[Xiaomi Mi 5 Guides, News, & Discussion] GokulNC:
Yeah, use Flashify app from Play Store to do that easily..

You cannot just rename those files ;)

And that is totally irrelevant to what's going on here :)

While I was creating this tutorial, I had downloaded the stock firmware of Mi 5...

At that time, what I saw was, splash.img had bootlogo and logo.img had fastboot picture..

Seems things have changed now..

Attach the new logo.img, I'll check it out :)

And BTW, yeah, if bootloader fails to load splash, it loads the default tux logo from kernel..

But changing that is not the right solution, since not everyone can compile a kernel each time just to change splash.. (Just saying, I'm not saying you're recommending that ;) )
[Xiaomi Mi 5 Guides, News, & Discussion] Cynob:
Thank you for looking at it! I am curious...

I have told [MENTION=513460]Hoschi[/MENTION]@ that he will upload the file soon. My account have to less posts for uploading or showing a link to the file.
[Xiaomi Mi 5 Guides, News, & Discussion] @HOSCHI@:
Hello, here is the link (logo.img) Mi 5

https://drive.google.com/file/d/0B78p1EKw_mzrZXY0YUhvRXlZMHM/view?usp=drivesdk

Gesendet von meinem MI 5 mit Tapatalk
[Xiaomi Mi 5 Guides, News, & Discussion] GokulNC:
Thanks bro, I just checked it out...

I don't think it's of a general format (as in CAF)

It seems Xiaomi has done a few modifications to it..

The original script supports only 1 picture, but now, it seems it can contain as many pics as you want, thanks to Xiaomi's modifications with new Upgrade to Nougat (ofcourse the code seems to be proprietary)...

This is the format of your logo.img:

(The first 4KiB is the header)

SPLASH!!
Width (of 5 pictures)
Height (of 5 pictures)
SUPPORT_RLE24_COMPRESSIONT (of 5 pictures) (1 means it is RLE encoded, 0 means RGB24)
Payload size/4096 (of 5 pictures)
(Offset/4096)-1 (of 5 pictures)

In the logo_gen.py script from the tool, check the encodeRLE24() function..

It shows how the picture is encoded as a payload (RGB pixels -> countRGB)..

Here, if the payload_size is not divisible by 4096, zeros are padded till it is divisible by 4096..

(Why 4096 (4KiB) ? Maybe that's the cluster/block size of the eMMC flash)

I have my exams nearing, so I won't be able to create a tool as of now...

You may try modifying the current logo_gen.py to fit this new format..

BTW, that script has no function to decode the pictures.. (Because it's done by the bootloader only.. Here's the generic code just for reference, no use here)

You may try to write code to decode it if you want..

Or directly code it to create for 5 pictures... (but you may need to find which picture is what, for example, picture 1 is bootlogo, pic5 might be fastboot, etc.)

Or if you're ready to experiment and play, set SUPPORT_RLE24_COMPRESSIONT=0 and see if your bootloader supports RGB24 format.. (But this increases logo.img size)

Hope you understand what I'm blabbering ;)

Feel free to ask if you have any doubts :)
[Xiaomi Mi 5 Guides, News, & Discussion] Cynob:
Hey really thanks for your help. I understand :) and will try my luck.

But how did you determined its RLE compressed? I really want to know how you got this info :).

Edith say: ok my fault ... kernel config :D
[Xiaomi Mi 5 Guides, News, & Discussion] xpresotw:
thank you devssss
[Xiaomi Mi 5 Guides, News, & Discussion] =Duk3=:
Hi. Could anyone set boot splash on mi5 4/128?
[Xiaomi Mi 5 Guides, News, & Discussion] Cynob:
Ok i have it working i think.

The first test with 5 small pictures with only black and white color worked on [MENTION=513460]Hoschi[/MENTION]@`s Mi5

Now i edited the Windows tool and my biggest problem now is how i could upload the new logo Maker tool here....
[Xiaomi Mi 5 Guides, News, & Discussion] GokulNC:
[MENTION=7874192]Cynob[/MENTION] Awesome, bro...

If it's working, create a complete tool (by modifying this tool itself if you can) and post it as a new thread :)

I'll add a link in this thread to your thread :)

(Make sure to test your tool with someone who has Mi5 before creating thread ;))
[Xiaomi Mi 5 Guides, News, & Discussion] Cynob:
[MENTION=283507]Goku[/MENTION]INC :

Now i tested it a little around and it seems to work on Hoschis phone :)

I have made a tool for linux too and edited your script for Windows and when i am back from work i will puplish both.

Thank you for your help :good:

Here is the link: https://xdaforums.com/mi-5/how-to/modified-splash-img-dont-try-logo-t3604134
[Xiaomi Mi 5 Guides, News, & Discussion] Adantoo:
I have a question about this. When i update my 5s to official miui7.0(first build 7.5.15). Then every splash.img is no working. Just mi and text unlock. Is that any issue can help me to fix this? PS: I won't flash back official miui6.0.
[Xiaomi Mi 5 Guides, News, & Discussion] shashankpal:
If I flashed over 75kb size image I will lose Fastboot image but instead i'll get linux penguin for it? This doesnt meant that I won't be able to enter Fastboot?
[Xiaomi Mi 5 Guides, News, & Discussion] khazam_:
Hi, can you make a tool for we are device, xiaomi MI 4 ? Thanks ;)
[Xiaomi Mi 5 Guides, News, & Discussion] yoakechan:
nice info... try it
[Xiaomi Mi 5 Guides, News, & Discussion] kinkiyo:
done flashable zip have fun dude
[Xiaomi Mi 5 Guides, News, & Discussion] Devel0per95:
sadly it's not working with me :(

im creating a zip file and flashing it then reboot but nothing is changing!

even tried from terminal, but still nothing.

need help here please!
[Xiaomi Mi 5 Guides, News, & Discussion] 3n666:
Mi4 is not you.

I:good: want to try it on mi4... please help...Thanhk:good:
[Xiaomi Mi 5 Guides, News, & Discussion] arya5:
I tried to flash the original splash.img from MIUI fastboot ROM, but failed.

If I fo fastboot flash splash splash.img, then I get error: cannot load 'splash.img'

Then I tried to move it to sdcard and copy from terminal emulator using dd, the command did not failed but if I reboot I still get the old splash...
[Xiaomi Mi 5 Guides, News, & Discussion] JDExp.:
Awesome

I tried this with my Redmi note 3 (Kenzo) and it worked flawlessly.
[Xiaomi Mi 5 Guides, News, & Discussion] nesquix:
hello man,

here the splash.img of My XIAOMI MI MIX 2 256GB

Tried the splash.img i had on my computer who worked for me mi5, mi5s, and mi note 2, but can't understand why this don't work now.

tried flashing from fastboot with adb, and from my rooted phone with the terminal. in both case nothing happen. it flash, but nothing change.

any ideas?

thanks again =)
[Xiaomi Mi 5 Guides, News, & Discussion] FcukBloat:
does splash image change work also in nougat now? tx
[Xiaomi Mi 5 Guides, News, & Discussion] NotCat:
Mi5s these dont work... I flashed logo.bin by mistake... And now i'm trying to change my boot animation... And these didnt work :(
[Xiaomi Mi 5 Guides, News, & Discussion] Fuzzyflazz:
flashing success, but my boot image didnt change, still the same, lol.
[Xiaomi Mi 5 Guides, News, & Discussion] XDADev001:
How to extract splash.img contents?