Talk:PKG files: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
(Added all found header sizes for header type 1 and 2)
Line 1: Line 1:
== Exemples ==
== Examples ==


==== PS3 ====
==== PS3 ====
Line 238: Line 238:


'''_DEL_'''YYYYMMDDHHMMSSSSSSSSSS/USRDIR/JITGenerated (empty folder tree structure created after a error when trying to erase a content from "game data"). The folder "JITGenerated" was the responsible of the problem, not posible to erase from XMB (with triangle over the "corrupted data icon" replying with an "not possible to access HDD") neither from FTP (replying with an error "not posible to display folder contents")... after several "restore filesystem" and "rebuild database" the corrupted icon was moved out of "game data" and his timestamp changed (the YYYYMMDDHHMMSSSSSSSSSS in the main folder name was updated to an actual timestamp so it was "regenerated"). The only way to erase it is with a filemanager running in PS3 (is not possible to erase the "corrupted data" icon in an official firmware until you format the HDD)
'''_DEL_'''YYYYMMDDHHMMSSSSSSSSSS/USRDIR/JITGenerated (empty folder tree structure created after a error when trying to erase a content from "game data"). The folder "JITGenerated" was the responsible of the problem, not posible to erase from XMB (with triangle over the "corrupted data icon" replying with an "not possible to access HDD") neither from FTP (replying with an error "not posible to display folder contents")... after several "restore filesystem" and "rebuild database" the corrupted icon was moved out of "game data" and his timestamp changed (the YYYYMMDDHHMMSSSSSSSSSS in the main folder name was updated to an actual timestamp so it was "regenerated"). The only way to erase it is with a filemanager running in PS3 (is not possible to erase the "corrupted data" icon in an official firmware until you format the HDD)
==Header Types==
===Header Type 1===
Primarily for PS3 packages.
Found with different header sizes:
* 0x80:  121x
* 0xa0:  847x
* 0xc0: 5920x
* 0xd0:  62x
* 0xe0:    7x
* 0xf0:  70x
===Header Type 2===
Found with different header sizes:
* 0xa0: 348x
* 0xe0: 2600x
* 0xc0: 258x
* 0xf0: 176x
* 0x110: 576x
* 0x120: 5x
* 0x160: 683x
* 0x1d0: 6570x
* 0x1e0: 14x
* 0x210: 4177x
* 0x220: 569x
* 0x250: 12x

Revision as of 21:09, 2 January 2019

Examples

PS3

PS2 HDD Utility (Retail):

Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000  7F 50 4B 47 80 00 00 01 00 00 00 C0 00 00 00 05  .PKG€......À....
00000010  00 00 00 80 00 00 00 05 00 00 00 00 00 67 AE 80  ...€.........g®€
00000020  00 00 00 00 00 00 01 40 00 00 00 00 00 67 AC E0  [email protected]¬à
00000030  49 50 39 31 30 30 2D 4E 50 49 41 30 30 30 30 31  IP9100-NPIA00001
00000040  5F 30 30 2D 50 53 32 48 44 44 53 59 53 44 41 54  _00-PS2HDDSYSDAT
00000050  30 30 30 31 00 00 00 00 00 00 00 00 00 00 00 00  0001............

Life With Playstation (Retail):

Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000  7F 50 4B 47 80 00 00 01 00 00 00 C0 00 00 00 07  .PKG€......À....
00000010  00 00 00 A0 00 00 02 7F 00 00 00 00 07 CE D7 C0  ... .........Î×À
00000020  00 00 00 00 00 00 01 60 00 00 00 00 07 CE D6 00  .......`.....ÎÖ.
00000030  49 50 39 31 30 30 2D 4E 50 49 41 30 30 30 30 32  IP9100-NPIA00002
00000040  5F 30 30 2D 30 30 30 30 31 31 31 31 32 32 32 32  _00-000011112222
00000050  33 33 33 33 00 00 00 00 00 00 00 00 00 00 00 00  3333............

PSP

Locoroco -Midnight Carnival- Demo (Retail):

Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000  7F 50 4B 47 80 00 00 02 00 00 02 80 00 00 00 09  .PKG€......€....
00000010  00 00 00 E0 00 00 00 0A 00 00 00 00 0A 72 6B F0  ...à.........rkð
00000020  00 00 00 00 00 00 04 E0 00 00 00 00 0A 72 65 30  .......à.....re0
00000030  4A 50 39 30 30 30 2D 4E 50 4A 47 30 30 30 33 34  JP9000-NPJG00034
00000040  5F 30 30 2D 4C 4F 43 4F 52 4F 43 4F 4D 43 47 41  _00-LOCOROCOMCGA
00000050  4D 45 30 31 00 00 00 00 00 00 00 00 00 00 00 00  ME01............

PSVita

Ridgeracers (Retail):

Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000  7F 50 4B 47 80 00 00 02 00 00 02 80 00 00 00 0D  .PKG€......€....
00000010  00 00 02 10 00 00 00 10 00 00 00 00 04 BA 76 70  .............ºvp
00000020  00 00 00 00 00 00 10 D0 00 00 00 00 04 BA 63 C0  .......Ð.....ºcÀ
00000030  4A 50 30 37 30 30 2D 50 43 53 47 30 30 30 30 31  JP0700-PCSG00001
00000040  5F 30 30 2D 52 49 44 47 45 52 41 43 45 52 50 53  _00-RIDGERACERPS
00000050  56 49 54 41 00 00 00 00 00 00 00 00 00 00 00 00  VITA............

More infos

link with PDB

See also Project_Database_(PDB)

Deroad tutorial

Mega-Thread HACKING a PS3 - Tutorials and Explanations by Deroad : on ps3hax, on psx-scene or on nextgenupdate

make_package_npdrm reverse engineering

Make Package infos by DrEB (alias jerem73).

- Main Packages Type :

  • Update (seams to be a revision of Disc Game Patch Package)
    • Warning: needs a custom argument: ```./make_package_npdrm --patch-for-discgame <path>```
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = Update
PackageVersion = 01.00
  • Game Data
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameData
PackageVersion = 01.00


  • Disc Game Patch
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameData
PackageType = DiscGamePatch
PackageVersion = 01.00


  • Disc Game Patch without EBOOT.BIN
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameData
PackageType = DiscGamePatch
PackageType = NoEBOOTBIN
PackageVersion = 01.00


  • HDD Game
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameExec
PackageVersion = 01.00


  • HDD Game Patch
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameExec
PackageType = HDDGamePatch
PackageVersion = 01.00


  • License
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Local
ContentType = License
PackageVersion = 01.00


ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Local
ContentType = Theme
PackageVersion = 01.00


ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = VSHModule
PackageVersion = 01.00


  • PS1 Game
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Local
ContentType = PS1Game
TitleID = XXXXYYYYY
PackageVersion = 00.00


  • Minis
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Local
ContentType = minis
TitleID = XXXXYYYYY
PackageVersion = 01.00


- Advanced Packages Items :


  • Demo along with Key
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameExec
PackageType = Demo
PackageVersion = 01.00
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameExec
PackageType = Key
PackageVersion = 01.00


  • Date limitations
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Local
ContentType = GameExec
LimitedTimeStart = YYYY-MM-DDThh:mmTZD
LimitedTimeEnd = YYYY-MM-DDThh:mmTZD
PackageVersion = 01.00


- Specials Packages Items : ! Be carefull !


  • ForcedInstallTo
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameExec
ForcedInstallTo =
PackageVersion = 01.00
    • Allows installing packages to any hdd directory (and flash if it's writable).


  • InstallDirectory
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameExec
InstallDirectory =
PackageVersion = 01.00


  • PackageFlag
ContentID = XXYYYY-XXXXYYYYY_00-XXXXXXXXXXXXXXXX
Klicensee = 0x00000000000000000000000000000000
DRMType = Free
ContentType = GameExec
PackageFlag =
PackageVersion = 01.00

Misc:

  • Serial number folder type name (on UTC) on /dev_hdd0/game/ :

_INST_YYYYMMDDHHMMSSSSSSSSSS (failure can also create regular folder id)

_GDATA_YYYYMMDDHHMMSSSSSSSSSS

_DEL_YYYYMMDDHHMMSSSSSSSSSS/USRDIR/JITGenerated (empty folder tree structure created after a error when trying to erase a content from "game data"). The folder "JITGenerated" was the responsible of the problem, not posible to erase from XMB (with triangle over the "corrupted data icon" replying with an "not possible to access HDD") neither from FTP (replying with an error "not posible to display folder contents")... after several "restore filesystem" and "rebuild database" the corrupted icon was moved out of "game data" and his timestamp changed (the YYYYMMDDHHMMSSSSSSSSSS in the main folder name was updated to an actual timestamp so it was "regenerated"). The only way to erase it is with a filemanager running in PS3 (is not possible to erase the "corrupted data" icon in an official firmware until you format the HDD)

Header Types

Header Type 1

Primarily for PS3 packages. Found with different header sizes:

  • 0x80: 121x
  • 0xa0: 847x
  • 0xc0: 5920x
  • 0xd0: 62x
  • 0xe0: 7x
  • 0xf0: 70x

Header Type 2

Found with different header sizes:

  • 0xa0: 348x
  • 0xe0: 2600x
  • 0xc0: 258x
  • 0xf0: 176x
  • 0x110: 576x
  • 0x120: 5x
  • 0x160: 683x
  • 0x1d0: 6570x
  • 0x1e0: 14x
  • 0x210: 4177x
  • 0x220: 569x
  • 0x250: 12x