yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] Sookels:
Hey Vosberg1,

Maybe we can help each other ;)

I can make the splash screen without an issue. What I did was the following:

1.) Get picture you want (must be 480 x 800)

2.) Save picture as .BMP (24-bit, I used windows paint)

3.) I entered this command -> nbimg.exe -p 18400 -w 480 -h 800 -F Splash.bmp

4.) I verified that the file was correct by converting it back to a .BMP, worked fine.

The issue that I now have is making the .nbh file, I found a NBH Utility but it does not contain any LEO models. Do you have or know where I can find something to make a .nbh with my splash screen?

Edit: Managed to update the .XML file with the LEO info's and all is well in Splash screen world :)
[Windows Mobile Software Development] jmdearras:
Where can I get the devices file for this, since the domain is gone?
[Windows Mobile Software Development] SpottierPython:
Here are the LEO XML Details for NBHUtil XML.

<device name="Leo" chunksize="64">

<ModelID>PB8110000</ModelID>

<CID>HTC__E11</CID>

<Ver>1.43.leo</Ver>

<Lang>WWE</Lang>

<Item value="0x200">SPL</Item>

<Item value="0x301">Radio</Item>

<Item value="0x400">OS</Item>

<Item value="0x500">Diag</Item>

<Item value="0x600">Splash</Item>

</device>

If you are using HTCRT.exe then you should search for same parameters in ini format. :)
[Windows Mobile Software Development] romracer:
Mac version

Here's a compiled version of nbimg for OS X. I compiled this on an Intel-mac running Leopard (10.5). I can't guarantee it will work anywhere else, but I think it should.

Of course if you don't trust my compile, people can compile for Mac using the following command after downloading the Linux source code:

gcc -o nbimg nbimg.c
[Windows Mobile Software Development] Casbah:
Great! Thanks for this.
[Windows Mobile Software Development] melethron:
Got three warnings when i compiled it:

nbimg.c:430: warning: format not a string literal and no format arguments
nbimg.c:453: warning: format not a string literal and no format arguments
nbimg.c:461: warning: format not a string literal and no format arguments

Can't code and have no idea what this means ....
[Windows Mobile Software Development] pipomolo42:
Hello,

Just for your info, I've noted two small issues with nbimg-1.1:

- when compiling on a 64bit OS, it won't be able to generate a BMP, as in convertNB2BMP, biSize is declared as an unsigned long, and the size of this type is 4 bytes in 32bit and 8 bytes in 64bit. Changing it to an unsigned int fixes this.

- the way you convert pixels in convertBMP2NB rounds values down, thus making the image a bit darker. I fixed this by doing rounded integer divisions:

unsigned short tmpdata;
tmpdata = ((int)(pixdata[0]) + 4) / 8;
encoded = tmpdata > 0x1f ? 0x1f : tmpdata; //B

tmpdata = ((int)(pixdata[1]) + 2) / 4;
encoded |= (tmpdata > 0x3f ? 0x3f : tmpdata) << 5; //G

tmpdata = ((int)(pixdata[2]) + 4) / 8;
encoded |= (tmpdata > 0x1f ? 0x1f : tmpdata) << 11; //R

A blue value of 0x7 should be converted to 0x1, and not 0x0, but a value of 0xff should be kept to 0x1f, as 0x20 would overflow the blue component of RGB565.
[Windows Mobile Software Development] Ricky Liang:
What's the id fo LEO model for nbimg tool?

Thanks, nbimg is a very good tool, but could you tell me the NBH argument -D <model id>. what's the id fo LEO model?
[Windows Mobile Software Development] Sneakyghost:
Hi!

Thanks for some funtastic Tools, really.

I just succeded to create my own first, second and boot splash screens. Now my HD2 boots very slick with one image (Oh yes! my mighty Gamer-Nick and Logo! hrhrhr) through the whole process. Very nice indeed.

Now i need some smart gfx junkie to animate the second LEO_animated.gif for me... :D

Understanding and setting up everything for changing the first splash screen took me half a day. I also noticed, that explanations and comprehensive help for the LEO/HD2 owners are given only to some geeky extend. It took all my (limited) brain processing power to understand whats going on here.

So i decided to give back something. I will rather not be able to compile a smoothy one-click fix-my-splash exe, i cannot even write a batch script (well, yes, windows users are known to be a little numb on that part) but i can very well write up a specific guide. The one from Paolonio is already quite nice but i found it very frustrating not knowing wether or not that guide would suffice for the Leo/HD2. Especially on the calculation and padding bit i got very unsure of what i am doing.

Actually another stupid part is the lack of support for Dark Simons ROM tool. I was searching quite a while for a htcrt_devices.ini which includes the Leo. Plus, Mr. Simon seems to be gone somehow. hasn't visited XDA for a while and his host for his prog is gone too.

I'll probably drop a little guide within the next few days. I'll make it a pdf but with embedded fonts so people can actually copy/paste the lines.

Thanks again folks... so long...

[EDIT]

@pipomolo42

I did this on Windows 7 64bit. Both directions worked flawless. I am currently under the impression that there is no fault with nbimg.exe on x64...

[EDIT 02]

I attached a rough first version of this guide. I do not claim its any better than Paolonio's guide but i claim that it looks at it from another minds perspective and thus it offers more chances of understanding if one individual reads both guides.

Plus i think its time i put up the htcrt_devices.ini i found, which contains the leo info... please feedback on errors and mistakes and click thanks if it helped you somewhat.

cheers.

[EDIT 03]

New Guide attached. Please use this commandline to create your Splashscreen.nb file:

NBIMG - w 480 -h 800 -p 18400 -F splash.bmp <-- mind that the padding might not be universal, i did not fully understand that yet. you might have to calculate it. read last post from me here

Substitute "splash.bmp" for the name of your file.

Make sure the padding is correct.

Do NOT use the -s argument (at least not for the LEO)
[Windows Mobile Software Development] pipomolo42:
Well, there is only a problem if you compile it from sources as a 64bit executable.
[Windows Mobile Software Development] Sneakyghost:
My apologies.

At the time of writing that i was already having watering eyes and was constantly yawning because i overstayed bedtime for hours... i simply didn't notice that you where referring to compiling the executable instead of using it. Sorry.

Here's the Guide, rough first version. feedback on errors and mistakes welcome. check attachment. I might be doing a german version soon if i find the time. I might not. I am very busy and need do all this ****e at night...

For those just looking for the HTC ROM Tool Devices.ini information on the LEO, check codebox below:

[Info]
Magic=kateiloveyou
Version=1011

[Defaults]
DefCountryId=11111111
DefVersionId=1.00.000.0
DefLanguageId=WWE

[Devices]
Leo=1

[Leo]
Experimental=1
ModelId=PB8110000
SignMaxChunkSize=64
RomSections=7, “0x100,IPL,0,TRUE”, “0x200,SPL,524288,TRUE”,
“0x600,Splash,786432,FALSE”, “0x601,Subsplash,0,FALSE”,
“0x301,Radio,20840448,TRUE”, “0x700,””Ext. ROM””,0,FALSE”,
“0x400,OS,0,FALSE”
[Windows Mobile Software Development] Sneakyghost:
After having successfully set up my Splashscreen with nbimg and rom tool i now tried to achieve the same goal by using the build-in nbh-creator of nbimg.

i derived the device information from the ini-file of the rom tool. those informations had lead me to success before.

using this info, the resulting nbh did not differ in size but was, when checking it with a hex/text editor, different in some parts. compared to the rom-tools output. Apart from a file comment inside the file i could not identify the exact differences.

Since everything looked pretty decent i decided to flash the nbh. unfortunately a blank screen was what the device woke up with, no pretty splash, just a white splash with nothing on it.

i then reflashed my rom-tool generated splash. the white stayed.

i then flashed a stock rom. the white was gone and the stock splash was there.

i then flashed my rom-tool generated splash again. the white returned. WTF?!

so i somehow managed to rip me off a chance to exchange the stock splash for a decent one. how? is nbimg at fault? are my params at fault?

I used these: "nbimg -w 480 -h 800 -p 18402 -s -D PB8110000 -S 64 -T 0x600 -F filename.bmp"

The padding is the calculated one to get my bmp up to required 786432 bytes length. i assume the deviceID is correct and so is the chunksize and the splash type.

could anyone help and point out a possible cause for this mess? i'd like to get my splash back in and also i would like to write down a little pretty guide to use only nbimg without the rom tool.

thanks guys.
[Windows Mobile Software Development] Bonito77:
Hi,

the only thing I can see in your parameters is different to mine is the size (p). At your it's p 18402, at me it's p 18400. The other what is importantly you make the .bmp image as 24bit.

Hope it's help you. Please let me know if it works now.

nbimg -p 18400 -w 480 -h 800 -F Imagename.bmp -T 0x600 -S 64 -D PB8110000
[Windows Mobile Software Development] pof:
@Sneakyghost: the '-s' flag is only for use in old non-touchscreen phones (example: htc vox, htc wings...). Now we call everything a "smartphone", but HTC made a difference between "smartphones" and "PocketPC phones" a few years ago when I wrote this tool :) In modern phones, like HTC Leo, you should not use the '-s' flag.
[Windows Mobile Software Development] Sneakyghost:
Thank you POF. This clarifies a few things actually.

Why don't you update Post 1 with some of these Infos? I think it'd save quite some folks quite some hassle.

I have read about similar problems like mine in a few places and i think if someone points out the missing info it does help a lot since many people don't manage to figure themselves.

Somehow i got this odd feeling that i am moving in a very old thread which hardly anyone still sees. Somehow i feel like there must be more advanced/better/easier methods to generate a Splashscreen somewhere on the forums.

Should i be bothered to keep investigating the mysteries of NBIMG? :eek: :D

If there is better ways which everyone is using nowadays please just someone put a link in here so people get redirected before they start messing here (like me ;) )

[EDIT]

Today i checked the nbh-function of NBimg again and it worked flawless this time (mind the -s argument!).

I attached a new guide which does the trick without using the HTC Rom Tool. Only downside i could discover so far: you can't set an individual String for "version" and no Language setting either with NBimg. Doesn't really matter cuz the only moment one can see that is just before the flash in the RUU. Only cosmetical.
[Windows Mobile Software Development] JLowe:
Thanks for the nice guide, works like a treat!
[Windows Mobile Software Development] Java the Hut:
"DON'T PANIC" splashscreen

I'm failing to use Ubuntu terminal in order to do this...

bla@bla bla:~$ nbimg.exe -F splash1.bmp -n

nbimg.exe: command not found

bla@bla bla:~$ nbimg -F splash1.bmp -n

nbimg: command not found

that is the splash screen i want:

"DON'T PANIC"

mind to help?
[Windows Mobile Software Development] Wicked1ab:
This works awesome! Thank you
[Windows Mobile Software Development] ddvniek12:
Hi there. I need some help because everytime I try to run nbimg.exe on windows 7 it just opens up and closes immediately... Sorry if I'm making a mistake somewhere, noob at creating splash screens lol.

PLEASE HELP

Thanks!

EDIT:

Never mind. Lol got it to work in CMD...
[Windows Mobile Software Development] Schimmerlos:
Had that, too. Using v1.1 AND v1.0 on Windows 7 64bit. My command:

Problemsignatur:
Problemereignisname:	APPCRASH
Anwendungsname:	nbimg.exe
Anwendungsversion:	0.0.0.0
Anwendungszeitstempel:	487234d9
Fehlermodulname:	nbimg.exe
Fehlermodulversion:	0.0.0.0
Fehlermodulzeitstempel:	487234d9
Ausnahmecode:	c0000005
Ausnahmeoffset:	000015f8
Betriebsystemversion:	6.1.7601.2.1.0.256.48
Gebietsschema-ID:	1031
Zusatzinformation 1:	0a9e
Zusatzinformation 2:	0a9e372d3b4ad19135b953a78882e789
Zusatzinformation 3:	0a9e
Zusatzinformation 4:	0a9e372d3b4ad19135b953a78882e789

View attachment 645373

However, a "splash.bmp.nb" file was generated.
[Windows Mobile Software Development] roboprint:
Hi,

I have small problem with command in nbimg.

I type

nbimg.exe -w 480 -h 800 -F splash1.bmp | rename .bmp to .img

and file splash1.bmp.nb is created but not changing a name to img.

What can be wrong?

Edit: Solved

Can be :

nbimg.exe -w 480 -h 800 -F splash1.bmp

rename *.bmp.nb splash1.img
[Windows Mobile Software Development] RuLEoF2:
Can someone help me out?

I used this tool for my Incredible at least a couple dozen times and never had a problem. The string that worked for that was... "nbimg.exe -F splash1.bmp -w 480 -h 800". Worked every time.

Now, I'm trying to make some screens for my rezound and I keep getting the error below.

Thanks.
[Windows Mobile Software Development] bgcngm:
The image that you have attached is broken.
[Windows Mobile Software Development] RuLEoF2:
Sorry, try this.
[Windows Mobile Software Development] GabrielSousa:
i did make a nb splash file for sensation its 540x960.

now i'm trying to make for one x 720 x 1280.

but the nbimg crashes

any ideas ?

could be the bmp format ?
[Windows Mobile Software Development] lt1pnyklr:
Can someone please explain how you use this nbimg script? Is it used from a pc or the phone? If the phone where do you put the file, root of sdcard? Then run terminal with the proper commands to convert? If you use cmd on a pc are you placing this file in your platform-tools directory? I don't get it.
[Windows Mobile Software Development] eclyptos:
GUYS, it's seems your don't know how works nbimg v1.1.

I try to explain because who use nbimg v1.1 don't know there is no way to go back if for curiosity someone try the second splash screen of the application.

Nobody write a warning about that.

I did 20 custom splash screen, like I like, and I do them today if I want. So I convert any .jpg file into .png 24 bit and i flash it. Ok, no problem.

BUT, with nbimg v1.1 you can chose to do 2 different splash screen 1st and 2nd, EVERYBODY think 2nd is AFTER R.G.D, is not.

Before that anybody on boot have only 1 splash screen, but if you do with nbimg v1.1 the second splash screen the first ORIGINAL splash screen will be SPLIT into 2 splash screen, AND AFTER THIS IS NO WAY BACK.

One beautiful day I try the second splash screen and now I got this crap.

Which problem I have now?

I can flash any stock/custom ROM from entire world via SDcard or pc but the second splash screen when show up the R.G.D don't go away.

I DON'T WANT MALGRD just to replace the picture.

Currently many application for change the splash screen work on phones which has never been flashed with nbimg v1.1.

Who did second splash screen with nbimg v1.1 have this problem.

Now I want have full sequence of this boot http://xdaforums.com/showthread.php?t=625911 but it not replace the second bloody splash screen.

This is the problem.

To the OWNER of this application, PLEASE, remove the option of the 2nd splash screen because that option make many victims!

So people, DO NOT EVER TRY THE SECOND SPLASH SCREEN WITH nbimg v1.1.
[Windows Mobile Software Development] charlietron:
Gràcies pof! Jo encara vaig amb el meu HTC HD2 amb WinMo6.5 i això m'ha anat de perles!
[Windows Mobile Software Development] dmonium:
nbimg.exe has stopped working

hi I'm trying to convert in BMP the orginal splah of HTC ONE but i get this error message

nbimg.exe has stopped working

this is the command

D:\Desktop>nbimg.exe -F splash1.nb -w 1080 -h 1920

=== nbimg v1.1

=== Convert NB <--> BMP splash screens

=== (c)2008 Pau Oliva - pof @ xda-developers

[] File: splash1.nb

[] Image dimensions: 1080x1920

D:\Desktop>

Could you help me with this?

thanks
[Windows Mobile Software Development] :
https://github.com/ModdingMyMind/Android_Splash_Image

Requires NBIMG/to565, BUSYBOX, and GM (GraphicsMagick)!

NBIMG/to565 and GM are all included in this repo. They have been statically compiled for ARM to work with PRE-JB devices as well as being in compliance with Android L (latest release).

-- Clone, or download Repo

-- Place binaries and script to /system/bin on your Android device

-- Set permissions to 755 (rwxr-xr-x)

-- Open Terminal then type and enter, SPLASH, to run the script.

-- Enter the root directory of where your image(s) are located as requested by the script

-- Enter your device resolution as requested by the script

-- Select either .img or .rle format

-- Check directory after completion, enjoy

Ok, so, what exactly does this script do? Valid question, so let me go ahead and answer this for you.

When you run the script it will ask where the image(s) are located on your device. It will check to see if the directory exists and if it doesn't it will let you know. This check is mainly there in case you made a typo (I recommend copying and pasting if this is a problem for you).

Next, it will ask for your device resolution so it will know what size to make the image. Again, it will check the info you tell it and if not correct it will ask you again.

The script will then ask you if you wish to convert the pictures to either "splash".img format or "splash".rle format. Pick your option.

Once the script has this information it will proceed to read the entire directory and take note of all the pictures. The pictures do not have to already be in .bmp format. They can be .jpg, .png, etc.

Important: The script will check for Busybox, gm, nbimg, and to565 as needed and if what is needed to run the script is not found it will inform you then abort.

After it takes note of all your images it will proceed to use GraphicsMagick to resize the images based on the info you gave it as well as convert it to .bmp or .raw. Afterwards, it will call on nbimg/to565 to convert the newly created .bmp/.raw image in to the properly formatted splash image whether it be .img or .rle based on the option you initially chose at the beginning.

It's rather simple but very useful when dealing with multiple images.

It doesn't take long for the process even if you are dealing with, say, 50 pictures lol.

When it is finished go to the directory and you will see the .img or .rle and picture for each. The picture is kept so you may view it through your gallery and determine if you will like it as your splash screen. If you do, then go to the .img or .rle file of that picture and rename it accordingly.

I won't go in to details on how to apply the images since I expect this to be used as assistance for devs out there - experience is expected in this case.

-- Happy Hunting! :D
[Windows Mobile Software Development] manos78:
Hi,

Related to this: https://github.com/ModdingMyMind/Android_Splash_Image

Thank you for this tool!

One question: Please, can you add support for "extracting" the splash images from IMG dump? :fingers-crossed:
[Windows Mobile Software Development] GokulNC:
Can you please help me making a splash screen??

I have a splash.img file of my phone with resolution 720x1280.

When I convert it back to bmp, the image is very much distorted..

How do I extract the correct image?

How do I find if the image is .nb or.nbh format?

Moreover, when I try to convert a bmp file to .nb, I get an error.

C:\Users\Gokul\Desktop>nbimg -F puma.bmp -w 720 -h 1280
=== nbimg v1.1
=== Convert NB <--> BMP splash screens
=== (c)2008 Pau Oliva - pof @ xda-developers

[] File: puma.bmp
[] No padding added. Check file size.

And nbimg.exe file crashes.

Help me please :)
[Windows Mobile Software Development] Sneakyghost:
Sorry it's been some time since I dealt with this tool. I have forgotten how to use it. I'd need to research it's correct parameters again myself. So, you'd probably be better off researching that yourself. I'm quite limited in my time these days.
[Droid 2 General] :
If you are reading this it's because you are using an application.

This thread redirects to: https://xdaforums.com/nexus-5x/general/moderator-contact-list-t3207927/post62942301#post62942301
[OnePlus 6T  Questions & Answers] YousefHadder:
Hello everyone, so I recently flashed android 10.3.1 on my OnePlus 6t device.

After that I found that I no longer have TWRP as my recovery mode.

Now I'm trying to flash TWRP and root the device again.

But every time I get into fastboot mode, the phone gets stuck on it, and my windows 10 cannot detect my device anymore.

any suggestions?
[OnePlus 6T  Questions & Answers] sajeel:
try a different pc i have never used windows 10 only 7 or xp without any issues, the reason why twrp keeps going is because of stock rom verification, if you want to keep twrp then root and flash with custom rom, reflash twrp if necessary and then all will be fine.

Hope that resolves all your isssues
[OnePlus 6T  Questions & Answers] YousefHadder:
I just tried the same steps on windows 7 and got the same result, Once My phone gets into fastboot mode, my windows cannot detect it.
[OnePlus 6T  Questions & Answers] xijar:
Does it show up in device manager at all? Perhaps as an unrecognized device?
[OnePlus 6T  Questions & Answers] YousefHadder:
I think it does as an unrecognized device, but I tried to update it and nothing changed.

Im thinking it might be that the last version of TWRP os not compatible with 10.3.1 ?:confused:
[OnePlus 6T  Questions & Answers] Striatum_bdr:
That has strictly nothing to do with twrp

Driver issue or try another USB port or try another cable
[OnePlus 6T  Questions & Answers] YousefHadder:
I've tried this before, but I don't think its a cable or port issue because before going into fastboot mode, it was detected by my laptop.
[OnePlus 6T  Questions & Answers] YousefHadder:
Thank you all, but it turned out to be a TWRP Issue, I found the solution on another post here at this forum with the latest unofficial stable TWRP version.

Now my device is rooted again and everything works fine :D
[Droid 2 General] :
If you are reading this it's because you are using an application.

This thread redirects to: https://xdaforums.com/google-nexus-...lease-read-t2500184/post46847787#post46847787
[Droid 2 Global General] :
If you are reading this it's because you are using an application.

This thread redirects to: https://xdaforums.com/nexus-5x/general/moderator-contact-list-t3207927/post62942301#post62942301
[Droid 2 Global General] :
If you are reading this it's because you are using an application.

This thread redirects to: https://xdaforums.com/google-nexus-...lease-read-t2500184/post46847787#post46847787
[Touch Diamond, MDA Compact IV ROM Development] rcha:
Anyone have RUU_Diamond_hTC_1.37.832.4 CHT Ship.exe
[Touch Diamond, MDA Compact IV ROM Development] HTC_GLOW:
err look at the other posts before making new thread!!:rolleyes:

http://xdaforums.com/showthread.php?t=404133
[Droid 2 Global Android Development] :
If you are reading this it's because you are using an application.

This thread redirects to: https://xdaforums.com/magic/development/read-development-rules-t3523894
[Motorola Droid 3] :
If you are reading this it's because you are using an application.

This thread redirects to: https://xdaforums.com/nexus-5x/general/moderator-contact-list-t3207927/post62942301#post62942301
[Android Q&A, Help & Troubleshooting] VickiCA:
I saw this icon pack / theme yesterday. I swear I bookmarked it, but I can't find it. (I was on two tablets, a laptop, and a cell phn doing a lo of installs, so I can't even be sue whee I saw it.)

The general theme is cats. The folder icon is the shape of a classic manilla folder, but has a cat face.

The overall color scheme is tans and browns and "woodsy" colors.

The art looks like it's been cut from paper.

I have searched and searched and I'm frustrated. Have you seen this icon pack/theme?

:confused: :(
[Motorola Droid 3] noppy22:
If you are reading this it's because you are using an application.

This thread redirects to: https://xdaforums.com/google-nexus-...lease-read-t2500184/post46847787#post46847787
[Motorola Droid 3] noppy22:
If you are reading this it's because you are using an application.

This thread redirects to: https://xdaforums.com/magic/development/read-development-rules-t3523894