Packages (.PKG): Difference between revisions

From Vita Developer wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
[[Category:Software]]<noinclude>[[Category:Main]]</noinclude>
[http://www.psdevwiki.com/ps3/PKG_files PS3 PKG] / [http://www.psdevwiki.com/ps4/PKG_files 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 "[http://www.vitadevwiki.com/index.php?title=Tools PS VITA .pkg xTractor]"
=== Structure ===
=== Structure ===


Line 23: Line 5:


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]]
== Firmware Packages ==
PSVita Firmware Package files (.pkg) are inside [[Playstation_Update_Package_(PUP)|Playstation Update Package (.PUP)]].
Those packages can not be decrypted, yet.
=== Structure ===
Bytes are in '''Little Endian'''.
<pre>
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;
</pre>

Revision as of 00:18, 25 December 2019

Structure

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

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