Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
jmdearras
Old
#81  
Senior Member
Thanks Meter 14
Posts: 371
Join Date: Aug 2008
Location: RIchmond, Virginia
Quote:
Originally Posted by pof View Post
Use any tool available to create NBHs, for example HTC Rom Tool. To flash your custom NBH file you'll need USPL or HardSPL installed on your device. Also for Excalibur specific instructions look here, because you'll need to add the smartphone signature manually.
Where can I get the devices file for this, since the domain is gone?
 
SpottierPython
Old
#82  
SpottierPython's Avatar
Senior Member
Thanks Meter 5
Posts: 135
Join Date: May 2009
Location: Islamabad
Quote:
Originally Posted by Sookels View Post
I am also trying to get something simular done, but I am looking for the application to make the .nbh file. I did get a copy of htcrt.exe but it doesnt have the LEO inside, when I try to update it says I have an internet connection issue (I dont, I am posting now then

I only got my HD2 2 days ago and this is all new to me. I have managed to flash custom radio's and ROMS's but now I want to make my own boot screen and flash that.

Please help.
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.
SpottierPython
Device: HTC Sensation XE with Beats Audio Z715e
Android Version: 4.0.3
Sense Version: 3.6
Kernel: 3.0.16-gda3fdfc
Baseband Version: 11.69.3504.00U_11.22.3504.07_M
Build# 3.32.401.105
Software# 6.6.2 XE by mike1986
The Following User Says Thank You to SpottierPython For This Useful Post: [ Click to Expand ]
 
romracer
Old
#83  
romracer's Avatar
Recognized Developer
Thanks Meter 1031
Posts: 462
Join Date: Apr 2010
Location: Kansas City

 
DONATE TO ME
Default 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
Attached Files
File Type: zip nbimg.zip - [Click for QR Code] (4.9 KB, 363 views)
The Following User Says Thank You to romracer For This Useful Post: [ Click to Expand ]
 
Casbah
Old
#84  
Casbah's Avatar
Senior Member
Thanks Meter 3
Posts: 162
Join Date: Aug 2010
Location: Washington DC
Quote:
Originally Posted by romracer View Post
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
Great! Thanks for this.
WE THE PEOPLES OF THE UNITED NATIONS DETERMINED
  • to reaffirm faith in fundamental human rights,
    in the dignity and worth of the human person,
    in the equal rights of men and women
    and of nations large and small
Guess it was just a dream.
 
melethron
Old
#85  
Senior Member
Thanks Meter 189
Posts: 854
Join Date: Sep 2010
Got three warnings when i compiled it:

Code:
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 ....
 
pipomolo42
Old
#86  
Junior Member
Thanks Meter 0
Posts: 29
Join Date: Mar 2010
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:
Code:
            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.
 
Ricky Liang
Old
#87  
Junior Member
Thanks Meter 0
Posts: 5
Join Date: Mar 2008
Lightbulb 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?
-Ricky
 
Sneakyghost
Old
(Last edited by Sneakyghost; 8th January 2011 at 07:59 AM.) Reason: added new Guide with correct information
#88  
Sneakyghost's Avatar
Senior Member
Thanks Meter 2300
Posts: 3,317
Join Date: Jul 2008
Location: InMyHead

 
DONATE TO ME
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...

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)
 
pipomolo42
Old
#89  
Junior Member
Thanks Meter 0
Posts: 29
Join Date: Mar 2010
Quote:
Originally Posted by Sneakyghost View Post
[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...
Well, there is only a problem if you compile it from sources as a 64bit executable.
 
Sneakyghost
Old
(Last edited by Sneakyghost; 6th January 2011 at 10:55 PM.) Reason: Removed guide with wrong information -will update soon
#90  
Sneakyghost's Avatar
Senior Member
Thanks Meter 2300
Posts: 3,317
Join Date: Jul 2008
Location: InMyHead

 
DONATE TO ME
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:

Code:
[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”

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...