yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] lennysh:
Ok, I've been waiting for a few more improvements before I released, but if I get the chance today, I'll release a RC1 of this. It works, don't get me wrong, it just still uses XIPPort to do the dumping/building therefore when it pops up, you have to press the right buttons, then close it to continue the process. I'll try to add prompts to it to let you know what to do during the process, then I'll do an RC1 release today.
[Windows Mobile Software Development] cruzzmz:
cool mate

bring it on mate bring it on :D
[Windows Mobile Software Development] itje:
Im looking forward to see this release.

Ill donate as soon as I have tested it and if I can get it to work for me :)

cheers
[Windows Mobile Software Development] chuti98:
Cool man, finally we have a chance to use the greateast tool... Thanks for your hardwork
[Windows Mobile Software Development] sheennick123456:
i think most of those who are going to use this tool (nearly all) will be good enough to press correct buttons

so dont worry just release it!!!!!!

acc. to me its gonna be the best release in a few months other than TF 3d and manila 2d
[Windows Mobile Software Development] Da_G:
Patiently waiting for this awesome looking tool as well :) But manually doing things is so fun! :P
[Windows Mobile Software Development] boggsie:
+ 5d

:(

Best regards,

-boggsie
[Windows Mobile Software Development] lennysh:
Well, I've not had much time lately to do much debugging on it, but I've attached a alphabeta (lol) to the first post of this thread. I hope to get some nice bug reports on this, so I can try and fix them all. Enjoy!
[Windows Mobile Software Development] l3v5y:
Yay!

I'll try it out now, and see what breaks! :)
[Windows Mobile Software Development] sheennick123456:
hey thanx a lot!!!!!!!!!!!!!!!!!!

just downloaded it now i will test and post issues if any..

thanx again for sharing........
[Windows Mobile Software Development] lennysh:
Thanks, ! I'm looking forward to the feedback!
[Windows Mobile Software Development] sheennick123456:
1st try

the app is very simple and worked fine for me!!!!!

i m using vista ultimate 32 bit

it made no mistake in generating the xip_out.bin

ill cook that xip in new ROM and check it later

but i dont think there will be any problem

so bottom line is its a very clean and easy to use tool
[Windows Mobile Software Development] l3v5y:
First try didn't work!

Which is odd as I was porting an already ported XIP to see if there were any issues with that.

The new XIP has far fewer files than the old one, and yet is the same size as a XIP.bin file.
[Windows Mobile Software Development] lennysh:
You have to make sure you pick two xip bin files, and you can uncheck the removal of diff files. Some of them are already checked to be removed in the resulting XIP to help give the XIP more space. If they are already checked, then they are def not needed at all. BTW, this app requires .NET.

I've made many XIPs with this tool, for many diff devices, and had 0 issues with any of them unless the xip didn't have enough free space in it. Hince the reason there are other options of file removals on the list that do not get auto checked.
[Windows Mobile Software Development] l3v5y:
Everything worked fine, and the new XIP was generated quickly and easily, but it didn't boot!
[Windows Mobile Software Development] lennysh:
Did you check the map.txt? Are there any overlaps in there? If there are, then one of the tools failed for one reason or another.
[Windows Mobile Software Development] boggsie:
kudos for working on this and then for sharing

Best regards,

-boggsie
[Windows Mobile Software Development] Ather:
YESS!! FInally Released!

gonna give it a whirl
[Windows Mobile Software Development] :
For the new chefs

These are the files should be checked(to be removed).

1- osaxt0.dll + osaxst0.dll.imageinfo.txt

2- hd.dll + hd.dll.imageinfo.txt

3- bmui.nb0 + bmui.nb0.imageinfo.txt

These are removed to keep the new XIP within the original size.
[Windows Mobile Software Development] lennysh:
There are more, but like I mentioned, only are shown if the files exist.
[Windows Mobile Software Development] Steven855:
Lenny, did you test this on an axim XIP?
[Windows Mobile Software Development] {SBR}_L3GION:
i am getting an error sayig msvcr71.dll was not found
[Windows Mobile Software Development] KMFM$:
[msvcr71.dll] Is part of the Microsoft Visual C Runtime.
[Windows Mobile Software Development] sheennick123456:
hey earlier i reported that this tool worked perfectly to generate the XIP

tday I flashed the XIP on the device and it does work!!!!!!!!!!!

thanx a lot it was damn easy!!!!!!!!

BTW i am using artemis
[Windows Mobile Software Development] {SBR}_L3GION:
So what am I supposed to do about that.
[Windows Mobile Software Development] mrvanx:
Download the visual C runtime files from MS. Here a starter for 10. ;)
[Windows Mobile Software Development] pawaj:
Great Tool :) I've successed port Hermes's XIP to Artemis's XIP
[Windows Mobile Software Development] {SBR}_L3GION:
Great Tool According to the map.txt everything ported correctly havent had the chance to test it yet.
[Windows Mobile Software Development] lennysh:
BTW, you can also drag/drop bin files onto the buttons. That way you can start it quick and easy if the bin isn't in the default folder, and you want have to go looking for it.
[Windows Mobile Software Development] evalu8t0r:
Could this be of any use?

AutoExecAndClick.exe /launch "xipport.exe" /clickbutton "realloc P" /clickbutton "write maps" /clickbutton "build xip_out.bin" /kill

Might not work 100% with more than one /clickbutton, but I think it proves the concept...

Let me know if you want the source (vb.net 3.5)

EDIT: version 1.1 with hidden launch
[Windows Mobile Software Development] ervius:
try also my tool:

xipporterex!

http://xdaforums.com/showpost.php?p=2813417&postcount=9
[Windows Mobile Software Development] lennysh:
Yes, please give me source. I'll implement it, and re-release. Thanks!
[Windows Mobile Software Development] evalu8t0r:
Would be alot easier if XIPPort.exe took commandline parameters...

Imports System.Windows.Forms

Module Module1
Declare Auto Function GetWindow Lib "user32" (ByVal hwnd As IntPtr, ByVal wCmd As Integer) As IntPtr
Private Declare Auto Function SendMessage Lib "user32.dll" (ByVal hWnd As IntPtr, ByVal Msg As Integer, ByVal wParam As IntPtr, ByRef lParam As IntPtr) As IntPtr
Private Declare Auto Function SendMessage Lib "user32.dll" (ByVal hWnd As IntPtr, ByVal Msg As Integer, ByVal wParam As Integer, ByRef lParam As IntPtr) As Integer
Private Declare Auto Function SendMessage Lib "user32.dll" (ByVal hwnd As IntPtr, ByVal wMsg As Integer, ByVal wparam As Integer, ByVal lparam As System.Text.StringBuilder) As IntPtr
Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Const GW_CHILD As Long = 5
Const GW_HWNDNEXT As Long = 2
Const BM_CLICK As Long = &HF5&
Const WM_GETTEXT As Long = &HD
Const WM_GETTEXTLENGTH As Long = &HE
Const WM_KEYDOWN = &H100
Const WM_KEYUP = &H101
Const VK_SHIFT = &H10
Const VK_CONTROL = &H11
Const WM_SYSKEYDOWN = &H104
Const WM_SYSKEYUP = &H105

Sub Main(ByVal Args() As String)
Dim p As Process = Nothing
Dim PInfo As ProcessStartInfo
Dim ptrChildWindows() As IntPtr
Dim AppHandle As IntPtr
For X = LBound(Args) To UBound(Args)
If LCase(Args(X)) = "/launch" And UBound(Args) >= (X + 1) Then
PInfo = New ProcessStartInfo(Args(X + 1))
p = System.Diagnostics.Process.Start(PInfo)
System.Threading.Thread.Sleep(1000) 'WaitForInputIdle is not enough to the app to have a window... must be a bug...
p.WaitForInputIdle()
AppHandle = p.MainWindowHandle
End If
If LCase(Args(X)) = "/clickbutton" And UBound(Args) >= (X + 1) Then
ptrChildWindows = GetWindows(AppHandle)
For iCounter As Integer = 0 To ptrChildWindows.Length - 1
Dim ptrCurrent As IntPtr = ptrChildWindows(iCounter)
Dim sText As String = GetWindowText(ptrCurrent)
If sText = Args(X + 1).ToString Then
ClickButton(ptrCurrent)
End If
Next
End If
If LCase(Args(X)) = "/kill" Then
p.Kill()
End If
Next
End Sub

Sub ClickButton(ByVal WindowHandle As IntPtr)
SendMessage(WindowHandle, BM_CLICK, 0, IntPtr.Zero)
End Sub

Public Function GetWindows(ByVal ParentWindowHandle As IntPtr) As IntPtr()
Dim ptrChild As IntPtr
Dim ptrRet() As IntPtr
Dim iCounter As Integer
ptrChild = GetWindow(ParentWindowHandle, GW_CHILD)
Do Until ptrChild.Equals(IntPtr.Zero)
ReDim Preserve ptrRet(iCounter)
ptrRet(iCounter) = ptrChild
ptrChild = GetWindow(ptrChild, GW_HWNDNEXT)
iCounter += 1
Loop
Return ptrRet
End Function

Public Function GetWindowText(ByVal WindowHandle As IntPtr) As String
Dim ptrRet As IntPtr
Dim ptrLength As IntPtr
ptrLength = SendMessage(WindowHandle, WM_GETTEXTLENGTH, IntPtr.Zero, IntPtr.Zero)
Dim sbText As New System.Text.StringBuilder(ptrLength.ToInt32 + 1)
ptrRet = SendMessage(WindowHandle, WM_GETTEXT, ptrLength.ToInt32 + 1, sbText)
Return sbText.ToString
End Function
End Module
[Windows Mobile Software Development] lennysh:
Beta2 has been posted!

Beta1 had 346 views!! Thanks for all the testing!

Beta2 has been added to the first post! Please download and test away!

Major thanks to evalu8t0r for helping out with some "Auto Click" source code!!! Please make sure you donate to him here if you can!

New Process:

1. Open XIPKitchen.exe

2. Pick your device xip, wait for XIPPort to do it's thing, and then disappear.

3. Pick your new xip, wait for XIPPort to do it's thing, and then disappear.

4. Go thru the checkboxs for files you want to remove or not. If the files are not in the XIPs, then the checkboxs will not even show. So if it shows, it's there.

5. Press build xip, wait for several apps, including XIPPort, to do their thing, and then all disappear.

5a. If you see this message, then just press the OK button until it goes away.

6. New XIP will be moved to a folder.

7. Temp folder will be the new XIP OUT folder. If you need to do any more tweaking to it.
[Windows Mobile Software Development] lennysh:
I've found some source code that lets me hide XIPPort.exe after I launch it using the same AppHandle from the source above, and I can kill it with it hidden, but I can't get it to push a button while its hidden. I mean, it'll find the button to push, but the button's effect never occurs.
[Windows Mobile Software Development] ervius:
seems that you are building an app like mine:

"xipporterex", here:

http://xdaforums.com/showpost.php?p=2813417&postcount=11

don't spend time, if there is yet an applicationd that does all that you want to do on......

bye!
[Windows Mobile Software Development] lennysh:
I've tried your app. It's nice. but, seems to be a lil confusing for newbies. And, does it work with bin files directly? or only folders after they are dumped? Mine werks with bin files.
[Windows Mobile Software Development] ervius:
it works with:

payload and "new xip" that must be ported, only theese you need, then it make all automatically,PORT NEW XIP for your device, patch pagepool for diamond and raphael (and others) to be able to change pagepool then, patch automatically the cert-check to be able to rewrite all system files (stored into \windows folder by rom flashing), reduces unused spaces between uldr, xip and IMGFS parts, to save space into device, around 3/5 Mb of free space more after flash new "reduced" rom with reduced payload.

only need your preferred ".payload" and new "xip.bin", nothing else!

bye!
[Windows Mobile Software Development] joshkoss:
Either way men, xip porting is a b$tch, and both tools are greatly appreciated, especially for a newb like me, it's easier than easyport oven, which teaches you nothing, thats what i've been using honestly. Time for me to learn a little more and you guys rock~!
[Windows Mobile Software Development] ervius:
well, I'm happy to see that someone wants "learn" more, and more and more, (I want learn more too, ever! :) ), I wait your final tool then ;)

good luck!!!!

P.S.: if you, with "windows API" help, show xipport.exe window, only to press button, or write strings into textboxes, and then re-hide its window, it works well, try ;)

bye!!!
[Windows Mobile Software Development] lennysh:
So, explain this "reduced payload". I know it removes the imgfs from it so that the file is smaller for kitchens, but what does it do inside the payload besides remove the imgfs?
[Windows Mobile Software Development] evalu8t0r:
That look like another great app!

...only thing missing is commandline support :o)
[Windows Mobile Software Development] ervius:
I think not need commandline, becouse you have to choice a lot of, inside, and when you used it one time, you can build all roms you want with your reduced,and multipatched , new xipported, payload; you'll need it again only to port new xips, but I think not everydays ;)

bye!!!
[Windows Mobile Software Development] evalu8t0r:
There's nothing like waking up in the morning and port a XIP :o)

I think your underestimating the value of commandline support, but maybe it's just me being silly?

Thanks a bunch for the app anyhow :o) (not wanting to sound like I'm ungreatfull)

Sorry for being off topic lennysh
[Windows Mobile Software Development] swampy395:
xipporting tool

Hi Lennysh

Thanks for your hard work I can confirme that this tool works for Himalaya, Blue Angel, and Touch Diamond sometimes get the o32 error's but the xip's genarated work fine ported 6.5 to diamond first time Thanks again,

I'v built a automatic porting tool that uses your kitchen, It extracts an xip ports it saves to folders etc, But I'm haveing trouble finding a tool that will insert the new xip into the rom from a bat file Rommaster will do this i think but you have to calc the size of you xip? IE: the start 0x000???? and end 0x000??? If i use xipport manualy for Blue Angel say i have to enter 001C0080 in the bottom box and change nk.nb to nk.nba then press the button just above write xip_out.bit to:

Do you know of a tool i can use to do this from a command line *.bat file please

P.S. if you'd like a cpoy of what i'v got so fare It's your just say

thanks

best regards

swampy395
[Windows Mobile Software Development] rling:
.vm .ROM

Newbie to porting.

Used this today to port 21032 XIP to Nike.

Just wondering about the .rom and .vm in the tools folder. Are these device specific, or can I just ignore it?
[Windows Mobile Software Development] lennysh:
All you need to mess with are the BIN files. Rest is for the App only.
[Windows Mobile Software Development] tonio94:
Hi,

Thanks for this nice tool.

I just have a small issue, the porting process seems to work well and I get the new xip.bin but when I try to insert it in my os.nb.payload with insert.exe (insert.exe -i xip_out.bin -o OS.nb.payload -d 0x00320000 -s 0x004C0000), nothing happens, the OS.nb.payload's modification date didn't move at all.

Any idea or any better solution than insert.exe for inserting the xip ?
[Windows Mobile Software Development] Slv:
Used this nice program to port 21189 xip to Toshiba G900, all finished fine, map.txt is ok, with but ported xip there is no sd card and activesync.

Where can be a problem?

Answer myself: The problem is giisr.dll had before absolute adresses, but after port it has relative.
[Windows Mobile Software Development] iago_00:
wonderful tool. really user-friendly.

well done. looking forward to a user-friendly SYS port tool :)
[Windows Mobile Software Development] lennysh:
Fixed in Beta6 that I just released. Thanks!!!
[Windows Mobile Software Development] imblfmstr:
Port gene to VIVA

Can this tool be used to port XIP from Gene to Touch VIVA

Please help...manual porting not able to do...

Thanks
[Windows Mobile Software Development] lennysh:
If you have the xip.bins files from both, it should yes.
[Windows Mobile Software Development] lennysh:
If you have the xip.bin files from both, it should yes.
[Windows Mobile Software Development] swampy395:
xipkitchen

Hi lennysh

Thanks again for your tool it's so easy to use

I'v had a look at your beta 6 when I load a device xip.bin 2 check boxes appear "Cert Patch XIP" and "WM5-> WM6" Could you update first or second post of this thread with some guide for how and when to use these new tools please,

i'v tryed with and without cert patch on hima xip device_21232 to donor_23001 and both have same prob, device takes up to 10 mins to boot to welcomhead,png then if soft reset will not boot again without hard reset? I don't think it's your tool that's at fault, but can you shed any light on my problem??

beta2

note i ported BlueAngel device_21725 donor_23001 and that's perfect

Doe's "WM5-> WM6" mean that a WM5 xip.bin can be ported to 6.5 or WM6.0

best regards

swampy395
[Windows Mobile Software Development] lennysh:
Using XIPPORT, dump the working hima xip, and make a map.txt, then dump the new xip you made with my tool, and post the map.txt from it as well. Attach them to your next post so I can see if it is indeed my tool or not.

Yes. It uses cmonex's tool to modify the nk.exe to look like a WM6+ Kernel.
[Windows Mobile Software Development] mettercomputers:
ERROR

I get this message what does it mean?

ERROR! Unknown o32 region flags: d0000040
[Windows Mobile Software Development] SOHKis:
just ignore that error metter - step 5a
[Windows Mobile Software Development] WoZZeR999:
Hey, I have an omnia (I know, it's not HTC, but I'm going to ask anyway), and when I get use XIP Kitchen, my DLL list is blank.

This is from XIP Kitchen:

This is from a manually ported (working) XIP:

Is this normal? I can't get it to boot from a XIP Kitchen ported XIP. Is there something I'm missing that I'm supposed to do?

Edit: I re-ran it, and got:

But it's still not booting.
[Windows Mobile Software Development] blazingwolf:
Remove lsomaclient.dll and the lsomaclient.dll.txt. You can do this by the following directions:

First choose device xip

after it finishes

open temp folder

open OEM folder

open module folder

delete lsomaclient.dll module

and lsomaclient.dll.txt file

then choose donor xip
[Windows Mobile Software Development] WoZZeR999:
Didn't work, any other ideas?
[Windows Mobile Software Development] swampy395:
EDIT 17/07/2009

Hi lennysh

Sorry mate but I'v found the problem is in the SYS not found just were:confused: .

but if i port only XIP in the working kitchen then the ROM's boot as normal but when i port the sys only to a working kitchen then Slow boot happens,

the himalaya is an old device so I'm gona have to patch some files in the sys If you have any idear were to start please let me know cos i'v no idear:confused: will just swap out some folders till something happens

thanks

P.S. please help the people with less knolage;) and add a discription for the new options with beta6 tool:D

best regards

swampy395
[Windows Mobile Software Development] rishi2504:
Hi

Well, I got another variant of the problem reported above....

If I port only 23004 SYS on a working ROM >> ROM Works with no issues.

If I port 23004 SYS followed by 23004 XIP >> Slow boot issue, as reported above....

Experts, Any clues... ? I can share if any files are needed.

Cheers,

rishi2504
[Windows Mobile Software Development] tomxie007:
thanks!!!!
[Windows Mobile Software Development] tomxie007:
hi hihihijjjjjjjjjj
[Windows Mobile Software Development] WoZZeR999:
Finally got everything working correctly. Any chance of making this command line friendly?
[Windows Mobile Software Development] afeng11:
module giisr.dll can't process
[Windows Mobile Software Development] pak1to:
support,

hope in new version will take count this module?!:rolleyes:
[Windows Mobile Software Development] lennysh:
As I stated in this post here, that file is now ignored from my tool so that my tool never relocates it at all. That file is no longer a problem with Beta6.
[Windows Mobile Software Development] RyanMogul:
Awesome tool

Wow, did this make my life so much easier. Thank you so much. Porting has never been so easy. Great work!
[Windows Mobile Software Development] bgcngm:
Thank you very much for that program. I can now use XIPPort through command line. Really nice to integrate this into my kitchen. :)

EDIT: It does not work 100% when more than one /clickbutton is used, as you said... but the workaround is to use several commands. Not much problem.

EDIT2: I don't know if it's my computer or not, but sometimes AutoExecAndClick doesn't work properly. I mean, even with only one /clickbutton, it seems that nothing is done...

I can "force it" to work using something like this:

:1
AutoExecAndClick.exe /launch "XIPPort.exe" /clickbutton "dump xip.bin" /kill
if exist .\out (goto 2)
goto 1
:2
AutoExecAndClick.exe /launch "XIPPort.exe" /clickbutton "realloc P" /clickbutton "write maps" /kill
if exist .\out\map.txt (goto 3)
goto 2
exit
:3
AutoExecAndClick.exe /launch "XIPPort.exe" /clickbutton "build xip_out.bin" /kill
if exist .\xip_out.bin (exit)
goto 3

Do you know why it doesn't work sometimes?

EDIT3: Well, in my home laptop (Win7) it does work 100%, even with more than one /clickbutton. I was trying in my office laptop (WinXP) and it wasn't working properly. You really made my day! :-) For some people's surprise I still have to use XIPPort because buildxip or PRB don't support my nk.exe (PRB crashes with it and buildxip creates a non working XIP).
[Windows Mobile Software Development] vphuoc:
Do anyone know how to replace wince.nls file ? I tried to remove wince.nls file and copy it to IMGFS, but it didn't work.

My phone is DIAMOND.

Any help is appreciated.
[Windows Mobile Software Development] Steven855:
WM6.1 or WM6.5?
[Windows Mobile Software Development] vphuoc:
It's WM6.5
[Windows Mobile Software Development] hasbrone:
XIPPort BenQ P51...

Hello...

THANKS for the XIPKitchen is a Great Tool.

Porting the XIP for the WM Emulator very easy...

But, I don't Porting the XIP for my BenQ P51, because the XIPKitchen

delete a Module (relfsd.dll) from OEMXIPKERNEL...

Somebody can me Help.

THANK YOU.
[Windows Mobile Software Development] hh93220:
It is really a great program to help Romer, thanks!!
[Windows Mobile Software Development] hasbrone:
THANK YOU...

Find XIPKitchen Beta2, and I XIPPort for BenQ P51 ...

For this Beta if Realloc Module relfsd.dll.

I get that benefit, using ROM and VM from my BenQ P51, or use ROM and VM from XIPKitchen Beta2...
[Windows Mobile Software Development] genyel:
i got this error:

unknown o32 region flag: d0000040

what's mean?

while i port xip.bin

ok , i saw the first post, it doesn't a problem right?
[Windows Mobile Software Development] SOHKis:
nope, you are right.

it is not a problem
[Windows Mobile Software Development] nickleby:
Please, i'm getting this error:

How can i solve that??
[Windows Mobile Software Development] SOHKis:
try freeing up more space..? lol

but seriously, is there not enough space on the disk where you are running it..? what does it say if you click on the details button there..?