Editing Packages (.PKG)

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
#REDIRECT [https://www.psdevwiki.com/ps3/PKG_files]
[[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 ===
 
A picture showing the unpacked game .pkg structure:
[[File:PKGdirstruct.png]]
 
See also: [[System_File_Object_(SFO)_(PSF)]], [[Keys]] and [[Template:PKG_Types|PKG type]]
 
== System Packages ==
 
PSVita Firmware Package files (.pkg) are inside PS VITA Update Files (.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>
Please note that all contributions to Vita Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see Vita Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)