Packages (.PKG): Difference between revisions

From Vita Developer wiki
Jump to navigation Jump to search
Line 24: Line 24:
See also: [[System_File_Object_(SFO)_(PSF)]], [[Keys]] and [[Template:PKG_Types|PKG type]]
See also: [[System_File_Object_(SFO)_(PSF)]], [[Keys]] and [[Template:PKG_Types|PKG type]]


== System Packages ==
== Firmware Packages ==


PSVita Firmware Package files (.pkg) are inside PS VITA Update Files (.pup).  
PSVita Firmware Package files (.pkg) are inside [[Playstation_Update_Package_(PUP)|Playstation Update Package (.PUP)]].  


Those packages can not be decrypted, yet.
Those packages can not be decrypted, yet.

Revision as of 19:36, 3 May 2018


PS3 PKG / PS4 PKG

There are two kinds of PS VITA package files (.pkg):

1. PS VITA Content Packages (.pkg)

2. PS VITA System Packages (.pkg)

Content Packages

Content PKG Keys

See Keys#Content_PKG_Keys.

Debug and Retail v1.0 (not the actual ones) PS VITA Game Package files (.pkg) can be decrypted & extracted using the "PS VITA .pkg xTractor"

Structure

A picture showing the unpacked game .pkg structure: PKGdirstruct.png

See also: System_File_Object_(SFO)_(PSF), Keys and PKG type

Firmware Packages

PSVita Firmware Package files (.pkg) are inside Playstation Update Package (.PUP).

Those packages can not be decrypted, yet.

Structure

Bytes are in Little Endian.

typedef struct {
    unint32_t type;          /*type of pkg. must be 0x3 (Offset 0x04)*/
    unint64_t unknown;       /*unknown but static       (Offset 0x08)*/
    unint64_t hdr_size;      /*header size              (Offset 0x10)*/
    unint64_t content_size;  /*package content size     (Offset 0x18)*/
    unint64_t size;          /*package size             (Offset 0x20)*/
} s_pkg;