Editing Patch data.pkg
Jump to navigation
Jump to search
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: | ||
It seems follow same .spkg_hdr.1 file scheme: [[Spkg_hdr.tar|Spkg_hdr.tar, Signed Firmware Package headers]] | |||
It seems | |||
==== Info ==== | |||
<pre> | <pre> | ||
[*] Warning: Could not decrypt header. | |||
[*] SCE Header: | |||
Magic 0x53434500 [OK] | |||
Version 0x00000002 | |||
Key Revision 0x0000 | |||
Header Type [PKG] | |||
Metadata Offset 0x00000000 | |||
Header Length 0x0000000000000280 | |||
Data Length 0x000000000000D524 | |||
</pre> | </pre> | ||
We can't decrypt/unpkg this one, but as reference UPL.xml.pkg yes, and data after SCE Header is info0 + info1, from 0x300 should be content | |||
{| class="wikitable" | |||
|- | |||
! patch_data.pkg | |||
|- | |||
| <pre> | |||
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F | |||
00000000 53 43 45 00 00 00 00 02 00 00 00 03 00 00 00 00 |SCE.............| | |||
00000010 00 00 00 00 00 00 02 80 00 00 00 00 00 00 d5 24 |...............$| | |||
00000020 - 0000027F Signed Header data | |||
00000280 00 00 00 03 00 00 00 03 00 00 00 00 00 00 00 00 |................| data as extracted as info0 from UPL.xml.pkg | |||
00000290 20 14 06 19 01 16 08 00 00 00 00 00 00 00 d4 a4 | ...............| build date 2014_0619, release was 2014_0624 | |||
000002a0 00 00 00 00 00 00 1a 5a 00 00 00 00 00 00 00 00 |.......Z........| | |||
000002b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |||
000002c0 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 40 |...............@| data as extracted as info1 from UPL.xml.pkg | |||
000002d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d4 a4 |................| | |||
000002e0 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 01 |................| | |||
000002f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| | |||
00000300 d7 58 49 9b 39 3f 11 47 6a 26 1e eb 1f 01 dd 92 |.XI.9?.Gj&......| data restart | |||
</pre> | </pre> | ||
|- | |||
|} | |||
==== structure ==== | |||
{ | {|class="wikitable" | ||
|- | |||
! Address !! Length !! Value !! Description | |||
|- | |||
| 0x0 || 0x4 || 0x53434500 / ASCII:SCE. || Magic Header | |||
|- | |||
| 0x4 || 0x4 || 0x2 || Version | |||
|- | |||
| 0x8 || 0x2 || 0x0 || SDK type? | |||
|- | |||
| 0x8 || 0x4 || 0x3 || SCE header type; pkg | |||
|- | |||
| 0xC || 0x4 || 0x0 || Meta offset | |||
|- | |||
| 0x10 || 0x8 || 0x280 || Size of sce_shdr + sizeof meta_shdr | |||
|- | |||
| 0x18 || 0x8 || 0x1E0110 || content_size_real | |||
|- | |||
|} |