The iPhone Wiki is no longer updated. Visit this article on The Apple Wiki for current information. |
OTA Updates
OTA Updates (Over-the-Air Updates, also know as wireless updates) were introduced with iOS 5. This allows a user of a device to go into Settings > General > Software Update and download and install the latest iOS software on-device, without the need for iTunes. The device checks an XML-based PLIST file on mesu.apple.com for updates. The updates are delivered in plain unencrypted ZIP files.
OTA Update contents
We now know three versions of OTA updates. OTA update bundle contains an Info.plist file and two folders: META-INF and AssetData. META-INF has only one file com.apple.ZipMetadata.plist which describes bundle contents.
AssetData contains three Bill-Of-Materials files (they can be viewed with lsbom and created with mkbom). pre.bom states filesystem before update, post.bom - after and payload.bom describes the patches to be applied during update process. It also contains boot folder where bootchain-related files are stored (iBoot, kernelcache, etc.), payloadv2 or payload (depends on PackageVersion value of AssetData/Info.plist file) and Info.plist file which describes the update. Info.plist file from AssetData folder contains PackageVersion field which can be 1.0, 2.0 or 3.0.
Format 1.0
These updates do not contain payload.bom file and are deprecated. These updates do not contain any .bom files.
- archive.cpio.gz - the actual cpio patch archive (encrypted). Contains a list of BSDIFF40 patches and baseband firmware updates, if available, with the associated flashing tools (bbupdater/imeisv).
- Info.plist.signature - asymmetric signature of Info.plist validated against /System/Library/Lockdown/iPhoneSoftwareUpdate.pem.
- libupdate_brain.dylib - stage 2 update process library (encrypted).
Format 2.0
All updates with 2.0 package version have payload folder inside AssetData instead of archive.cpio.gz file from 1.0 updates. It contains only two folders: added folder with unencrypted files which are to be added during update process and patches folder. patches folder is used to store BSDIFF40 patches that are applied to files during update process. They can be easily applied manually with bsdiff utility. patches folder file hierarchy is similar to devices root file system (ex. patch for /sbin/launchctl will be found at AssetData/payload/patches/sbin/launchctl). AssetData also contains payload.bom.signature that replaces Info.plist.signature. payload.bom.signature is used to check payload.bom which contains CRC32 of all files inside AssetData folder.
Format 3.0
payloadv2 folder replaced payload folder in updates with package version 3.0. It has no added folder anymore, but instead contains links.txt file which describes symlinks that should be created during update, removed.txt which is actually a list of files to delete before (!) update, prepare_patches which might contain patches that are to be applied before update (update ramdisk patch), payload and prepare_payload files which might store new files (files that did not exist in previous iOS version), but files from prepare_payload are extracted before files from payload, and patches folder which has the same file hierarchy as in pre-8.1.2 updates, but contains patches in BXDIFF41 format (they can be extracted with bxpatch utility from there). I'll describe almost each file's structure.
- links.txt is just a list of strings. Strings that begin with '=' are symlink targets and following strings that begin with '+' are places where symlinks should be created.
- removed.txt contains a list of files that should be removed before update starts.
- payload and prepare_payload are files in some proprietary format. More details about them and a tool to extract them can be found here "Taking apart iOS OTA Updates: Peeking into Over-The-Air Update bundles in iOS" - by Jonathan Levin. A script built over that tool which will automatically retrieve a binary from a device and patch it with the OTA update can be found in the "followup article".
See Also
Issues With Jailbreaking
- OTA Updates are often known to cause issues when jailbreaking a device. This became evident with evasi0n7, because most devices that were updated OTA, had to be restored with iTunes first, since the jailbreak would often fail if it was not.
- You cannot update OTA, when jailbroken. If you try, it is likely that your device will either be stuck in a boot loop, or certain things will not work correctly. Newer jailbreaks such as evasi0n and evasi0n7 disable the OTA search daemon, which prevents the device from searching for an update (it will just stay indefinitely at "Checking for Update..."). This can also be done manually on any jailbreak, by deleting or moving /System/Library/LaunchDaemons/com.apple.mobile.softwareupdated.plist and /System/Library/LaunchDaemons/com.apple.softwareupdateservicesd.plist from your device. It can also be done with tools such as iCleaner Pro.
OTA updates list
Apple TV
Note that the Apple TV updates are organized by marketing version (the version displayed on the Apple TV), not the version of iOS it is based on.
- 1.x: 10.4.7
- 4.x: 4.0, 4.1, 4.1.1, 4.2, 4.2.1, 4.2.2, 4.3, 4.4, 4.4.1, 4.4.2, 4.4.3, 4.4.4
- 5.x: 5.0, 5.0.1, 5.0.2, 5.1, 5.1.1, 5.2, 5.2.1, 5.3
- 6.x: 6.0, 6.0.1, 6.0.2, 6.1, 6.1.1, 6.2, 6.2.1
- 7.x: 7.0, 7.0.1, 7.0.2, 7.0.3, 7.1, 7.2, 7.2.1, 7.2.2, 7.3, 7.3.1, 7.4, 7.5, 7.6, 7.6.1, 7.6.2, 7.7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1, 9.0.2, 9.1, 9.2, 9.2.1, 9.3, 9.3.1, 9.3.2, 9.3.3, 9.3.4, 9.3.5, 9.3.6
- 10.x: 10.0.1, 10.0.2, 10.1, 10.1.1, 10.2, 10.2.1, 10.3, 10.3.1, 10.3.2, 10.3.3
- 11.x: 11.0, 11.0.1, 11.0.2, 11.1, 11.1.1, 11.1.2, 11.2, 11.2.1, 11.2.2, 11.2.5, 11.2.6, 11.3, 11.3.1, 11.4, 11.4.1
- 12.x: 12.0, 12.0.1, 12.1, 12.1.1, 12.1.3, 12.1.4, 12.2, 12.3, 12.3.1, 12.4, 12.4.1, 12.4.2, 12.4.3, 12.4.4, 12.4.5, 12.4.6, 12.4.7, 12.4.8, 12.4.9, 12.5, 12.5.1, 12.5.2, 12.5.3, 12.5.4, 12.5.5, 12.5.6
- 13.x: 13.1, 13.1.1, 13.1.2, 13.1.3, 13.2, 13.2.2, 13.2.3, 13.3, 13.3.1, 13.4, 13.4.1, 13.5, 13.5.1, 13.6, 13.6.1, 13.7
- 14.x: 14.0, 14.0.1, 14.1, 14.2, 14.3, 14.4, 14.4.1, 14.4.2, 14.5, 14.5.1, 14.6, 14.7, 14.7.1, 14.8, 14.8.1
- 15.x: 15.0, 15.0.1, 15.0.2, 15.1, 15.2, 15.2.1, 15.3, 15.3.1, 15.4, 15.4.1, 15.5, 15.6, 15.6.1, 15.7
- 16.x: 16.1
iPhone
- 5.x: 5.0.1, 5.1, 5.1.1
- 6.x: 6.0, 6.0.1, 6.0.2, 6.1, 6.1.1, 6.1.2, 6.1.3, 6.1.4, 6.1.6
- 7.x: 7.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.0.5, 7.0.6, 7.1, 7.1.1, 7.1.2
- 8.x: 8.0, 8.0.1, 8.0.2, 8.1, 8.1.1, 8.1.2, 8.1.3, 8.2, 8.3, 8.4, 8.4.1
- 9.x: 9.0, 9.0.1, 9.0.2, 9.1, 9.2, 9.2.1, 9.3, 9.3.1, 9.3.2, 9.3.3, 9.3.4, 9.3.5, 9.3.6
- 10.x: 10.0.1, 10.0.2, 10.1, 10.1.1, 10.2, 10.2.1, 10.3, 10.3.1, 10.3.2, 10.3.3, 10.3.4
- 11.x: 11.0, 11.0.1, 11.0.2, 11.0.3, 11.1, 11.1.1, 11.1.2, 11.2, 11.2.1, 11.2.2, 11.2.5, 11.2.6, 11.3, 11.3.1, 11.4, 11.4.1
- 12.x: 12.0, 12.0.1, 12.1, 12.1.1, 12.1.2, 12.1.3, 12.1.4, 12.2, 12.3, 12.3.1, 12.3.2, 12.4, 12.4.1, 12.4.2, 12.4.3, 12.4.4, 12.4.5, 12.4.6, 12.4.7, 12.4.8, 12.4.9, 12.5, 12.5.1, 12.5.2, 12.5.3, 12.5.4, 12.5.5, 12.5.6
- 13.x: 13.0, 13.1, 13.1.1, 13.1.2, 13.1.3, 13.2, 13.2.2, 13.2.3, 13.3, 13.3.1, 13.4, 13.4.1, 13.5,13.5.1, 13.6, 13.6.1, 13.7
- 14.x: 14.0, 14.0.1, 14.1, 14.2, 14.2.1, 14.3, 14.4, 14.4.1, 14.4.2, 14.5, 14.5.1, 14.6, 14.7, 14.7.1, 14.8, 14.8.1
- 15.x: 15.0, 15.0.1, 15.0.2, 15.1, 15.1.1, 15.2, 15.2.1, 15.3, 15.3.1, 15.4, 15.4.1, 15.5, 15.6, 15.6.1, 15.7
- 16.x: 16.0, 16.0.1, 16.0.2, 16.0.3, 16.1
iPod touch
- 5.x: 5.0.1, 5.1, 5.1.1
- 6.x: 6.0, 6.0.1, 6.1, 6.1.2, 6.1.3, 6.1.5, 6.1.6
- 7.x: 7.0, 7.0.2, 7.0.3, 7.0.4, 7.0.6, 7.1, 7.1.1, 7.1.2
- 8.x: 8.0, 8.0.1, 8.0.2, 8.1, 8.1.1, 8.1.2, 8.1.3, 8.2, 8.3, 8.4, 8.4.1
- 9.x: 9.0, 9.0.1, 9.0.2, 9.1, 9.2, 9.2.1, 9.3, 9.3.1, 9.3.2, 9.3.3, 9.3.4, 9.3.5
- 10.x: 10.0.1, 10.0.2, 10.1, 10.1.1, 10.2, 10.2.1, 10.3, 10.3.1, 10.3.2, 10.3.3
- 11.x: 11.0, 11.0.1, 11.0.2, 11.1, 11.1.1, 11.1.2, 11.2, 11.2.1, 11.2.2, 11.2.5, 11.2.6, 11.3, 11.3.1, 11.4, 11.4.1
- 12.x: 12.0, 12.0.1, 12.1, 12.1.1, 12.1.3, 12.1.4, 12.2, 12.3, 12.3.1, 12.4, 12.4.1, 12.4.2, 12.4.3, 12.4.4, 12.4.5, 12.4.6, 12.4.7, 12.4.8, 12.4.9, 12.5, 12.5.1, 12.5.2, 12.5.3, 12.5.4, 12.5.5, 12.5.6
- 13.x: 13.1, 13.1.1, 13.1.2, 13.1.3, 13.2, 13.2.2, 13.2.3, 13.3, 13.3.1, 13.4, 13.4.1, 13.5, 13.5.1, 13.6, 13.6.1, 13.7
- 14.x: 14.0, 14.0.1, 14.1, 14.2, 14.3, 14.4, 14.4.1, 14.4.2, 14.5, 14.5.1, 14.6, 14.7, 14.7.1, 14.8, 14.8.1
- 15.x: 15.0, 15.0.1, 15.0.2, 15.1, 15.2, 15.2.1, 15.3, 15.3.1, 15.4, 15.4.1, 15.5, 15.6, 15.6.1, 15.7
External links
- Beta Software Update XMLs:
- iOS
- Developer Beta documentation
- Public Beta
- tvOS
- watchOS
- iOS
- Carrier Software Update XMLs:
- Public Software Update XMLs:
- iOS OTA Payload Extractor
Notes
- ^ Includes Apple TV 2G and Apple TV 3G.