FORUMS
Remove All Ads from XDA

[new release] Package Tool - (first part of the new Rom Kitchen)

1,115 posts
Thanks Meter: 64
 
By bepe, Retired Recognized Developer on 8th March 2007, 09:30 PM
Post Reply Email Thread
Package Tool is an extension to Mamaich's imgfs tools
- Main function of this tool is to build packages for a new Rom Kitchen I'm working on
- Using this tool you can also extract the following information after creating a dump folder using viewimgfs.exe:
  • Core OS
    Value: "Windows Mobile-based Pocket PC" or "Windows Mobile-based Smartphone"
  • Versions
    Shows the version of the packages
    • SYS
      This is the OS version
      The example shows Crossbow, CE 5.2 Build:15341 AKU 0
    • NET
      This is the .NET Compact Framework version
    • OEM
      This is the version of the OEM packages
      The example shows only one,
      but I've also seen ROMs with different versions for each OEM package.
      In that case there would be multiple OEM entries
  • Language
    The LANGID and the language of the ROM
  • DPI
    The DPI (dots per inch) of the resources
    this also depends on the resolution of the device
    Value: 96 or 128 or 131 or 192
  • Certificates
    List of all certificates used for the packages.
    The OS is signed my Microsoft and the OEM packages are using a certificate from the OEM
  • Missing Manifests
    This is a list of all packages that are missing inside the dump folder.
    It is normal that there are missing packages, because the packages from the boot section (XIP) are missing... don’t worry about them
  • Missing Files
    This lists all missing files.
    Someone edited the ROM or removed files from the dump folder!
Example:
Code:
[Selected Path]
  C:\dump

[Core OS]
  Windows Mobile-based Pocket PCs

[Versions]
  SYS: 5.2.15341.0
  OEM: 2.18.0.0
  NET: 2.0.6129.0

[Language]
  0409 - English (United States)

[DPI]
  96

[Certificates]
  CN=Microsoft Windows Mobile PCA, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
  CN=OEM Sign 2005

[Missing Manifests]
  d92a4f0a-378a-4482-8fd3-bd127a05e4de.dsm
  723fb954-d931-4348-b672-82a188e587b5.dsm
  13cb07c1-20b6-567f-dfcc-39d58b95e374.dsm
This tool is very useful for analyzing an unknown ROM, especially to extract the OS version and it will be much more useful after the release of the new ROM Kitchen.

It is also possible to execute the tool using the command line
  • Usage: PKGTool.exe <path to the dumped ROM>
    • This would just create packages, without any output
      Because of this usage, you can just drag & drop the dump folder onto the tool

About the package names
The names of the packages can be extracted from the dump folders for WM6, but WM5 contains GUIDs instead of names.
To provide the ease of WM6 "Package Names" for previous (i.e. WM5) ROMs, the tool collects all package names inside map.txt and replaces the GUIDs with the actual Package Names.
You must let the tool read a WM6 dump to collect the Package Names before it can replace WM5 GUIDs.
e.g.
- Building packages from a WM5 dump creates: 1bc57b2f-c0f3-46c6-8c2a-257952317eac
- Building packages from a WM6 dump creates: OEM_Lang_0409
- Building packages from a WM5 after it was used for a WM6 ROM also creates: OEM_Lang_0409

Extending the map.txt can be disabled by: Menu - Tools - Expand Map

Download: package_tool_v1.01.zip
Attached Thumbnails
Click image for larger version

Name:	bp.JPG
Views:	7803
Size:	43.0 KB
ID:	35187   Click image for larger version

Name:	do.JPG
Views:	6156
Size:	54.6 KB
ID:	35188  
 
 
8th March 2007, 09:31 PM |#2  
bepe's Avatar
OP Retired Recognized Developer
Flag Munich
Thanks Meter: 64
 
More
ROM dump converted to packages...
Attached Thumbnails
Click image for larger version

Name:	dump.JPG
Views:	3746
Size:	12.5 KB
ID:	35193   Click image for larger version

Name:	OEM.JPG
Views:	3796
Size:	21.2 KB
ID:	35194   Click image for larger version

Name:	SYS.JPG
Views:	3759
Size:	49.9 KB
ID:	35195  
8th March 2007, 10:20 PM |#3  
baniaczek's Avatar
Senior Member
Flag Warsaw
Thanks Meter: 2
 
More
:) It is exactly the tool I'm looking for.

But... doeas it require any additional dll's? VB runtime or whatever? I have had exactly the same problem with your XIPPort. There are two version published here. One works fine (exe file 2007-01-21), second one (published with sources) produces:
message translated from polish into english:
Application can not be executed, because configuration is not valid. Problem can be resolved reinstalling application.
I've got the same message running PKGTool.exe
8th March 2007, 10:35 PM |#4  
bepe's Avatar
OP Retired Recognized Developer
Flag Munich
Thanks Meter: 64
 
More
Sorry...yes, someone else told me the same...

I think it is cos I installed:
Microsoft Visual Studio 2005 Professional Edition - DEU Service Pack 1 (KB926606)

I will try to get that working... just give me some time
8th March 2007, 10:53 PM |#5  
baniaczek's Avatar
Senior Member
Flag Warsaw
Thanks Meter: 2
 
More
Quote:
Originally Posted by bepe

Sorry...yes, someone else told me the same...

I think it is cos I installed:
Microsoft Visual Studio 2005 Professional Edition - DEU Service Pack 1 (KB926606)

I have VS too.
Please wait - I'm downloading ENG SP1 now. I'll check if it is the reason.
Quote:

I will try to get that working... just give me some time

Sure :)))
8th March 2007, 10:56 PM |#6  
bepe's Avatar
OP Retired Recognized Developer
Flag Munich
Thanks Meter: 64
 
More
yes, it is the reason... see:
http://community.macrovision.com/sho...d.php?p=375127
8th March 2007, 11:08 PM |#7  
baniaczek's Avatar
Senior Member
Flag Warsaw
Thanks Meter: 2
 
More
Quote:
Originally Posted by bepe

yes, it is the reason... see:
http://community.macrovision.com/sho...d.php?p=375127

ok. you are right
9th March 2007, 12:08 AM |#8  
bepe's Avatar
OP Retired Recognized Developer
Flag Munich
Thanks Meter: 64
 
More
Ok, I completely removed visual studio and installed it without SP1...
After that I recreated the tool, it should be working now
9th March 2007, 12:14 AM |#9  
mestrini's Avatar
Senior Member
Flag Lisboa
Thanks Meter: 1
 
More
I've had no problem running the tool (then again i'm running win2k ) but what i'd like to know for now is how to get the OS version/build values

tx
9th March 2007, 12:22 AM |#10  
bepe's Avatar
OP Retired Recognized Developer
Flag Munich
Thanks Meter: 64
 
More
ok, sorry I forgot... the information about the OS might only exists in newer roms

did you have anything after
[Versions]
...
?
9th March 2007, 12:25 AM |#11  
mestrini's Avatar
Senior Member
Flag Lisboa
Thanks Meter: 1
 
More
Quote:
Originally Posted by bepe

ok, sorry I forgot... the information about the OS only exists in newer roms

did you have anything after
[Versions]
...
?

The program worked flawlessly m8; I'm asking this to know how to get it myself , that is if you don't mind sharing it
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes