Extracting Omnia Rom - Windows Mobile Development and Hacking General

Hi there,
i would like to try to make a hybrid rom with an omnia rom.
Can anyone explain how to extract the exe file.
I downloaded the rom from kaiser rom dev section.
Its the normal update file from Samsung
Thanks in advance

C'mon guys, no one around here knows how to get the rom out of that file?

JeckyllHavok said:
C'mon guys, no one around here knows how to get the rom out of that file?
Click to expand...
Click to collapse
Get winrar or something, right click on the exe and click extract here?

veyka said:
Get winrar or something, right click on the exe and click extract here?
Click to expand...
Click to collapse
thats not the way for Omnia's ROM
the procedure is as follows:
1. check out this post.
2. after step 5, download this and use viewbin.exe to find out the start offset and length of imgfs.
3. use cvrtbin -r -a (start offset, don't use '0x' prefix) -l (length of imgfs, don't use '0x' prefix) -w 32 xxx.bin
4. after this u will get an nb0 file. use nbsplit with -kaiser switch on the nb0 to get xx.nb0.payload
5. use prepare_imgfs.exe xxx.nb0.payload -nosplit
6. use view_imgfs.exe or imgfstodump.exe to get the 'dump' folder.

thats not the way for Omnia's ROM
Click to expand...
Click to collapse
Yes, you can't open the file with winrar or zip.
Its not just a self extractin file.
It doesn't create temp files, too.

JeckyllHavok said:
Yes, you can't open the file with winrar or zip.
Its not just a self extractin file.
It doesn't create temp files, too.
Click to expand...
Click to collapse
check out my post above for the procedure
PS: i didn't learn this procedure myself, so i don't take the credit.

Hey man,
thanks for your answer, but i can't find B000F in the file.
I use WinHex

JeckyllHavok said:
Hey man,
thanks for your answer, but i can't find B000F in the file.
I use WinHex
Click to expand...
Click to collapse
B000FF is in ASCII (text). search again, it must be there 3 times

OK now i found it but i don't understand part 3 of the manual.
The string 0x060000EA3B is in Hex 30 78 30 36 30 30 30 30 45 41 33 42, right?
But i can't find it.

htctouchp said:
thats not the way for Omnia's ROM
the procedure is as follows:
1. check out this post.
2. after step 5, download this and use viewbin.exe to find out the start offset and length of imgfs.
3. use cvrtbin -r -a (start offset, don't use '0x' prefix) -l (length of imgfs, don't use '0x' prefix) -w 32 xxx.bin
4. after this u will get an nb0 file. use nbsplit with -kaiser switch on the nb0 to get xx.nb0.payload
5. use prepare_imgfs.exe xxx.nb0.payload -nosplit
6. use view_imgfs.exe or imgfstodump.exe to get the 'dump' folder.
Click to expand...
Click to collapse
Great! it works for me. In my case I had an img file (I presume that some one extracted from exe). If you run GrandPrix flahs utility and load this .img file you get a _xip0.nb0 that can be used as xxx.bin as stated above.
btw, how can we extract xip? Failed to extract with dumprom/rommaster the payload file generated in step 5...

hey guys,
no luck with the above procedure.
i Made a bin file starting at B000FF and finish after the 12 "00" before
060000EA3B .
But cvrtbin gives the error "Could not allocate memory for raw data"
Please Help

g77 said:
Great! it works for me. In my case I had an img file (I presume that some one extracted from exe). If you run GrandPrix flahs utility and load this .img file you get a _xip0.nb0 that can be used as xxx.bin as stated above.
btw, how can we extract xip? Failed to extract with dumprom/rommaster the payload file generated in step 5...
Click to expand...
Click to collapse
sorry, i didn't work on extrating xip.bin from the 'exe', didn't get time to.

JeckyllHavok said:
hey guys,
no luck with the above procedure.
i Made a bin file starting at B000FF and finish after the 12 "00" before
060000EA3B .
But cvrtbin gives the error "Could not allocate memory for raw data"
Please Help
Click to expand...
Click to collapse
thats the only procedure which should work for u. just follow/read everything carefully and also make sure u downloaded the cvrtbin.exe from the link that i gave (msvcr80.dll should also be there).

Thanks for your answer, i made the mistake that i just cut the unneeded lines and save it as an other filename. When i copy the lines in a new file it workes

JeckyllHavok said:
Thanks for your answer, i made the mistake that i just cut the unneeded lines and save it as an other filename. When i copy the lines in a new file it workes
Click to expand...
Click to collapse
could you zip that .bin up and upload it please?
i'm having a ton of trouble with this

anybody?
sorry to be a nag

There's a thread in modaco.com where they are extracting the ROM with a P535 kitchen. You can join in the funs there

Related

Cooking rom from a .bin RomFile

Hello my friends !
I search how cooking rom from a bin file of 32M !
I know how do it from a nbh file or nb file, but i don't knwo how to do from a bin file !
Which tool using ?
Great Thanks !!!!
you need imgfstools2 to extract the bin / recreate a nbh
Thanks for you fast answer !
So i will re-tets with imgfs2rc2, but i think that i don't function
I re-test !!!
from the readme
ReadMe said:
On a high level, this is the chain of actions needed to unpack OS.nb:
RUU-signed.nbh ---(*NBHExtract)---> OS.nb ---(NBSplit)---> OS.nb.payload -->
--(ImgfsFromNb)---> imgfs.bin ---(ImgfsToDump)---> 'dump' directory
Here you'll edit the 'dump' directory. I recommend using bepe's excellent *Package Tool for this.
The reverse process is:
'dump' directory ---(ImgfsFromDump)---> imgfs-new.bin ---(ImgfsToNb)--->
OS-new.nb.payload ---(NBMerge)---> OS-new.nb ---(*NBHGen)--->
RUU-signed-new.nbh
(The tools marked with '*' are not part of the ImgfsTools, but are also available for free from xda-developers.com. There is also one additional tool, NBInfo, in this package.)
Click to expand...
Click to collapse
With imgfs 2.1 RC, I use :
imgfstodump winceimg.bin
And i result :
"Cannot map file winceimg"
Nixeus said:
With imgfs 2.1 RC, I use :
imgfstodump winceimg.bin
And i result :
"Cannot map file winceimg"
Click to expand...
Click to collapse
sorry i just knew what tools to use - im sure someone else can help you further though.
I will continue to investigate !!!
thanks'' !!

Carrier Config file (TMO UK) to CAB

Hi,
Does anyone know how to turn the attached T-Mobile provxml (rename the txt to provxml) Config file into a cab that will make all the required changes in the registry?
Thanks
DL makecab.exe
http://support.microsoft.com/kb/310618
rename provxml file to _setup.xml
put both files in same folder
Use makecab.exe to create a cab from command line like this:
makecab _setup.xml mycab.cab
aw what the heck.....I did it for you...
BTW this thread should have been started in "NETWORKING"
joemanb said:
DL makecab.exe
http://support.microsoft.com/kb/310618
rename provxml file to _setup.xml
put both files in same folder
Use makecab.exe to create a cab from command line like this:
makecab _setup.xml mycab.cab
aw what the heck.....I did it for you...
BTW this thread should have been started in "NETWORKING"
Click to expand...
Click to collapse
Hey,
Thanks for that, ive made my own following your instructions and used your CAB for comparison with mine, just need to test it, i need to learn this stuff, just when i think ive cracked something... it dont work.... LOL
Thanks again.

How to backup an original ROM

Hello FHM and the rest of the board members,
Could you please help me to backup my original ROM? It is a Swisscom version of S740. Maybe I need it later again... or others are interested in.
Regards
Semmelknoedel
Hey,
I have the HTC Rose from Swisscom too, please tell me if you manage to backup the rom and flash the 6.5 rom.
Thanks in advance!!!
Sadly I can't help you with your question as I'm interested in doing it too... sorry...
Dumping ROM From phone .
here is a thread on dumping rom's from a phone http://forum.xda-developers.com/showthread.php?t=616995
and some more (Dumping a rom) http://forum.xda-developers.com/showthread.php?t=334680
good read (the tools you nead) http://www.xs4all.nl/~itsme/projects/xda/tools.html
and to reconstructed the dumped rom http://forum.xda-developers.com/showthread.php?t=337066
please read the thread's , it should work on the rose to .
need a little more help
Hi ceesheim,
Posting the necessary links was very helpful for me. I was able to dump the ROM from my SwissCom S740. Now I have got the 4 RAW files.
I'm following the instruction written by dj13241. Now i faced a problem on step: "rebuild a flashable ROM from a dump" at topic 3 (Insert XIP (Part01.raw) into new-os.nb.payload). As I executed the command for the first time cmd was asking for admin-rights. OK. I have opened cmd as admin. Now I have inserted the command: implantxip Part01.raw new-os.nb.payload
An Error was shown in cmd "xip file not specified". What did I wrong? Please see also the attached snapshot.
Thanks in advance.
Semmelknoedel
First rename part01.raw to xip.bin.
Then the correct command is:
insertxip -xip xip.bin -payload new-os.nb.paylod
Thanks FHM for answering. But it doesn't work. I'm using a insertxip.bat copied from "new_visualkitchen_v_1_8_1_only_exe_+_Tools_folder".
Content of this bat-file:
@echo off
rem echo Processing "%1"
implantxip -xip XIP_new_ported\xip.bin -payload ..\ROM\%1\OS.nb.payload
after execution of the command you mentiond in thread before, I get this error message:
Implantxip & Payload Resizer v. 1.1 by ervius!!!
PAYLOAD: ..\ROM\-xip\OS.nb.payload not found!
XIP not Inserted!
Based on the bat-file I have inserted the folder "XIP_new_ported" and "ROM->-xip".
Where is the mistake I made?
Hi Weezphili,
here are the addresses you need:
Swisscom ROM for the Rose:
3.12M (0x31f000) Part00
3.25M (0x340000) Part01
80.38M (0x5060000) Part02
122.50M (0x7a80000) Part03
Semmelknoedel said:
Thanks FHM for answering. But it doesn't work. I'm using a insertxip.bat copied from "new_visualkitchen_v_1_8_1_only_exe_+_Tools_folder".
Content of this bat-file:
@echo off
rem echo Processing "%1"
implantxip -xip XIP_new_ported\xip.bin -payload ..\ROM\%1\OS.nb.payload
after execution of the command you mentiond in thread before, I get this error message:
Implantxip & Payload Resizer v. 1.1 by ervius!!!
PAYLOAD: ..\ROM\-xip\OS.nb.payload not found!
XIP not Inserted!
Based on the bat-file I have inserted the folder "XIP_new_ported" and "ROM->-xip".
Where is the mistake I made?
Click to expand...
Click to collapse
did you do this ?
"Extract XIP (Part00 and Part01 ... You will need bepe's dumpxip.exe from ervius visual kitchen):
1) Make sure there is not an XIP folder (if so, rename it) and run dumpxip Part00.raw
2) Rename XIP folder to XIP_00 (ren XIP XIP_00)
3) Make sure there is not an XIP folder (if so, rename it) and run dumpxip Part01.raw
4) Rename XIP folder to XIP_01 (ren XIP XIP_01)"
You don't need to dump the part01.raw. It's the XIP, all you need to is to rename it to xip.bin!
Put the xip.bin and the os.nb.payload (or whatever the name is you have) in the same folder as implantxip.exe!
Open an elevated CMD (Windows key + R then type in cmd) switch to the folder with the exe, bin and payload file with:
cd C:\yourfolder
then type in what I wrote above! Done
frauhottelmann said:
You don't need to dump the part01.raw. It's the XIP, all you need to is to rename it to xip.bin!
Put the xip.bin and the os.nb.payload (or whatever the name is you have) in the same folder as implantxip.exe!
Open an elevated CMD (Windows key + R then type in cmd) switch to the folder with the exe, bin and payload file with:
cd C:\yourfolder
then type in what I wrote above! Done
Click to expand...
Click to collapse
This is done, but another question: you command is "insertxip -xip xip.bin -payload new-os.nb.paylod" but there are xip.bin and the os.nb.payload and implantxip.exe and insertxip.bat in that folder. After execution of your command the same error like before:
Implantxip & Payload Resizer v. 1.1 by ervius!!!
XIP: XIP_new_ported\xip.bin not found!
XIP not Inserted!
E:\Test>
mmh... strange!
Don't use the bat any more. Just use my command, it's the same thing, it just works
Otherwise upload the the files (raws) and I'll do it for you!
frauhottelmann said:
Don't use the bat any more. Just use my command, it's the same thing, it just works
Otherwise upload the the files (raws) and I'll do it for you!
Click to expand...
Click to collapse
You are right, the problem is the bat-file. But I couldn't find a insertxip.exe
Do you have one for me?
Uuuuups did I wrote insertxip?? My bad. I meant implantxip
Sorry
frauhottelmann said:
Uuuuups did I wrote insertxip?? My bad. I meant implantxip
Sorry
Click to expand...
Click to collapse
And also at the end of the command insertxip -xip xip.bin -payload new-os.nb.paylod -> the "a" is missing
Now it works with this command:
implantxip -xip xip.bin -payload os.nb.payload
Thanks for your help. I'm going to go the next steps...
Problems with final steps
As described in dj13241's thread the final steps are:
- Merge os-new.nb.payload into os-new.nb (nbmerge -kaiser os-new.nb)
- Create os-new.nbh nbhutil, Select "Touch_Pro2" under "Target Device", change RHOD*** to RHOD500, click the ... box next to OS, and select new-os.nb, click Build NBH and select where to save NBH file.
... I don't want build a ROM for Touch Pro 2 What do I have to select in the dropdown list or shall I use FHM's Vox Rose Kitchen 2.0?
Thanks for you help.
Yes, lol my fault again. That happens when I use my laptop keyboard, I mistype a lot...
Get the TOOLs part of my kitchen then in the tools folder open the HTC ROM Tool (htcrt.exe) choose the Diamond and change DIAM***** to ROSE1000 under OS select your os-new.nb and click on build to make a nbh that you can flash.
EDIT: nbmerge -kaiser os-new.nb is the right step
frauhottelmann said:
Get the TOOLs part of my kitchen then in the tools folder open the HTC ROM Tool (htcrt.exe) choose the Diamond and change DIAM***** to ROSE1000 under OS select your os-new.nb and click on build to make a nbh that you can flash.
EDIT: nbmerge -kaiser os-new.nb is the right step
Click to expand...
Click to collapse
But there is no os-new.nb. If you read the dj13241's thread and you are looking for os-new.nb you only find it at the end of his instruction. So I guess that it is the os.nb i have extracted with command nbhextract RUU_Signed.nbh
By the way: the RUU_Signed.nbh I use is from Blackstone.. is this ok or not?
HTC ROM Tool (htcrt.exe)
FHM, what can you tell me about the SPL, Splash and Radio contents? Will this not be part of my original ROM I try to build? I think a Radio is necessary, do I also have to dump it from Rose?
...a lot of work. Thank god it's holiday...
you made only the rom ( no spl , radio , splash ) .
if you flash your new build rom you keep your old splash and your old radio (they are still on the phone ).
no need to dump them .
only when you flash a new radio or splash you could dump the old first .

[FYI] How to convert .hv to .txt

I am trying to convert default.hv from a dumped ROM to a .txt/.reg file. I have found rgucomp and only get errors using Windows 7. The error says something about not being able to create the file (maybe UAC problem, though I run cmd prompt as admin...). I used the following commands
Code:
SET _FLATRELEASEDIR=.
RGUCOMP -o default.hv -nologo > boot.txt
Is there another tool that will allow conversion of *.hv to .txt easily with Windows 7? Thanks.
Mod edit: Solved
Have you tried this?
http://forum.xda-developers.com/showthread.php?t=504286&page=2
Use this, all included .
http://www.przeklej.pl/plik/hv-7z-0018pl2jobq4
seems to be nice answers so.... lets solve this as it is
+ Que PPC said:
seems to be nice answers so.... lets solve this as it is
Click to expand...
Click to collapse
Yep, thanks for the links guys.

[PROBLEM] How to convert an extracted OS.nb to an original ROM with nb0 extention

My Device is: I-teq X-bond equal to (Gigabyte gsmart-i64)
Its original OS is WM5 2.3 with original NB0 extention and Here is the official ROM link:
http://www.gigabytecm.com/eng/Downlo...=17&tabIndex=3
I can extract OS.NB from original file but the problem is that I do not know how to Repack and convert new OS.NB to a proper .NB0 file.
So I need your help
My Thread seems to be dead but still I did not find the answer
I google searched about the problem and I found a tool in Modaco, o2util.exe but I do not know that is a proper tool for my goal or not
Nobody here can help me?!!!
At least try to post a working link, as I can't find gsmart-i64 on gigabytecm.com or it's just gsmart-i?
Spiaatie said:
At least try to post a working link, as I can't find gsmart-i64 on gigabytecm.com or it's just gsmart-i?
Click to expand...
Click to collapse
OK Thank you very much for your reply, you are right gsmart-i is equal to gsmart-i64, so you can go ahead with it.
I already did that, but to download a ROM file I must to sign-up and IMEI is required, so I can't download ROM.
Can you upload it somewhere, like 4shared.com or Megaupload.com?
Spiaatie said:
I already did that, but to download a ROM file I must to sign-up and IMEI is required, so I can't download ROM.
Can you upload it somewhere, like 4shared.com or Megaupload.com?
Click to expand...
Click to collapse
I've sent my IMEI no. to you by private message. if u need it to upload let me know.
mechhadi said:
I've sent my IMEI no. to you by private message. if u need it to upload let me know.
Click to expand...
Click to collapse
Received your PM, downloding file now.
So step by step:
Take shippend ROM and prepare it for kitchen:
Code:
osnbtool -sp ROM.nb0
you will get two files ROM.nb0.PRE and ROM.nb0.OS.NB
ROM.nb0.OS.NB is OS.nb file you need to use on your kitchen.
After you have done ROM building with kitchen you should get OS.nb file.
Now use osnbtool to insert extra data:
Code:
osnbtool -extra OS.nb
You will get file OS.nb.EXA and now you need to make ROM.nb0 file:
Code:
copy /B ROM.nb0.PRE+OS.nb.EXA NEW_ROM.nb0
I hope this works
Thank you very much for your complete info, These days I'm on vacation.
As soon as possible I'll check the process, but I should say that the very first step for me is to convert back generated OS.nb by osnbtool to newrom.nb0 and check the file with original ROM. however I will let u know my progress and thank u again for your time and help.
Spiaatie said:
So step by step:
Take shippend ROM and prepare it for kitchen:
Code:
osnbtool -sp ROM.nb0
you will get two files ROM.nb0.PRE and ROM.nb0.OS.NB
ROM.nb0.OS.NB is OS.nb file you need to use on your kitchen.
After you have done ROM building with kitchen you should get OS.nb file.
Now use osnbtool to insert extra data:
Code:
osnbtool -extra OS.nb
You will get file OS.nb.EXA and now you need to make ROM.nb0 file:
Code:
copy /B ROM.nb0.PRE+OS.nb.EXA NEW_ROM.nb0
I hope this works
Click to expand...
Click to collapse
Thank u for your detail described process. I followed instruction and generated NEW_ROM.nb0 with generated OS.NB from the first step, but the volume of NEW_ROM.nb0 is different from original ROM.nb0, would u please tell me this is normal or I did something wrong or the generated NEW_ROM.nb0 is usable.
My problem is still persist and I can not reconvert extracted OS.nb to original ROM with nb0 extention
The most famous forum for WM is here, but still my problem has not solved.
Please somebody help!!!!!!!!!!!!
I used osnbtool to extract os.nb from original rom with nb0 extention. but the problem is I can not use osnbtool to use os.nb and generate rom with nb0 extention.
My request here is that is there any other tools that I can figure out my problem or because creator of osnbtool.exe is a chinese guy-WEISUN-, need someone chinese to ask my problem from Weisun.
thank u for your consideration and help
Still no progress?????!!!!!!!!!!!!!!!!!!!!!!!!!
Here are many chefs but no one can help.
As I know XDA forum is the best forum for WM but it seems that they do not consider any other devices except HTCs.

Categories

Resources