Difference between revisions of "IMG4 File Format"

From The iPhone Wiki
Jump to: navigation, search
Line 1: Line 1:
There is an '''img4''' file (sep-firmware.img4) found in /user/standalone/firmware on [[iOS]] 7.0.4 for the [[iPhone 5s]]. The IPSWFILE/Firmware/all_flash/all_flash.DEVICEIDENTIFIER.production for any [[A7]] (64 bit) device containts an IM4P version of the same file. It has a IMG40 header, but also refers to [[IM4P File Format]].
+
There is an '''img4''' file (sep-firmware.img4) found in /user/standalone/firmware on [[iOS]] 7.0.4 for the [[iPhone 5s]]. The IPSWFILE/Firmware/all_flash/all_flash.DEVICEIDENTIFIER.production for any [[A7]] (64 bit) device containts an IM4P version of the same file. It has a IMG4 header, but also refers to [[IM4P File Format]].
   
  +
==Header==
The IMG40 structure is as follows:
 
   
 
<pre>
 
<pre>
  +
uint8_t ??; //0x30
sequence [
 
  +
uint8_t lengthOfSize; //0x83 = 3byte, 0x84 = 4byte
0: string "IMG40"
 
  +
3,4 byte sizeFromHere; //Size of Image
1: string encryption type - IM4P
 
  +
uint32_t delimiter; //0x1604
2: string type - sepi (Secure Enclave Processor Image), ...
 
  +
uint32_t magic; //IMG4
3: ...
 
]
 
 
</pre>
 
</pre>
   

Revision as of 02:12, 27 December 2013

There is an img4 file (sep-firmware.img4) found in /user/standalone/firmware on iOS 7.0.4 for the iPhone 5s. The IPSWFILE/Firmware/all_flash/all_flash.DEVICEIDENTIFIER.production for any A7 (64 bit) device containts an IM4P version of the same file. It has a IMG4 header, but also refers to IM4P File Format.

Header

uint8_t ??;            //0x30
uint8_t lengthOfSize;  //0x83 = 3byte, 0x84 = 4byte
3,4 byte sizeFromHere; //Size of Image 
uint32_t delimiter;    //0x1604
uint32_t magic;        //IMG4


Tango Media-cdrom.png This software article is a "stub", an incomplete page. Please add more content to this article and remove this tag.