Difference between revisions of "Talk:OTA Updates"

From The iPhone Wiki
Jump to: navigation, search
m
 
(73 intermediate revisions by 17 users not shown)
Line 1: Line 1:
  +
{{Talk Archive}}
 
== Encryption ==
 
== Encryption ==
 
Are the updates encrypted in any way ([[VFDecrypt]]?) --[[User:5urd|5urd]] 18:31, 30 August 2011 (MDT)
 
Are the updates encrypted in any way ([[VFDecrypt]]?) --[[User:5urd|5urd]] 18:31, 30 August 2011 (MDT)
 
:No. Just regular Zips. --[[User:M2m|M2m]] 22:36, 30 August 2011 (MDT)
 
:No. Just regular Zips. --[[User:M2m|M2m]] 22:36, 30 August 2011 (MDT)
 
:Only NOR payloads and RAM disks are encrypted, rest of the "asset" is unencrypted --pjakuszew 04:19, 31 August 2011 (MDT)
 
:Only NOR payloads and RAM disks are encrypted, rest of the "asset" is unencrypted --pjakuszew 04:19, 31 August 2011 (MDT)
  +
::The Kernel and bootloaders ARE encrypted, They are the exact same files as bundled with the .ipsw file --[[User:Itsme|Itsme]] ([[User talk:Itsme|talk]]) 16:04, 7 February 2013 (UTC)
::But if you need to update iTunes to 'decrypt' the newest firmware (as iTunes contains the 'password' to do so), then that means that the encrypted stuff has a 'password' that is somewhere on the file system. Maybe if we could access it, we could get them. (maybe disassembling iTunes could get us them also :D) --[[User:5urd|5urd]] 11:12, 31 August 2011 (MDT)
 
  +
:::Exactly as in same code, but different key/IV pair, or same code, and same key/IV pair? --[[User:5urd|5urd]] ([[User talk:5urd|talk]]) 16:15, 7 February 2013 (UTC)
:::iTunes doesn't contain any "passwords" 5urd. Everything is done on the device and usually uses the device's built in hardware AES crypt keys. -- [[User:iH8sn0w|iH8sn0w]] 13:32, 31 August 2011 (EST)
 
::::Dang, but then why do we need to update iTunes to update our device? --[[User:5urd|5urd]] 11:35, 31 August 2011 (MDT)
+
::::the same key/IV pair, the encrypted binaries are identical. --[[User:Itsme|Itsme]] ([[User talk:Itsme|talk]]) 21:49, 7 February 2013 (UTC)
  +
:::::Its purpose is to send out firmware files to the device, and only that. --pjakuszew 11:36, 31 August 2011 (MDT)
 
  +
:Most of the update consists of binary patchfiles, which can be processed using [http://www.daemonology.net/bsdiff/ bspatch] --[[User:Itsme|Itsme]] ([[User talk:Itsme|talk]]) 00:14, 9 February 2013 (UTC)
::::::I still don't get the point of updating iTunes (other than avoiding an error) --[[User:5urd|5urd]] 11:45, 31 August 2011 (MDT)
 
:::::::Updating is required because of incompatibilites with newer iOS versions. I think it's about Fairplay and encryption of iPod library database. Another example is support of new hardware; how would you update a 3GS with iTunes 7.5? --pjakuszew 11:56, 31 August 2011 (MDT)
 
::::::::Ok, that makes sense. Thanks! --[[User:5urd|5urd]] 12:14, 31 August 2011 (MDT)
 
   
 
== Tracker ==
 
== Tracker ==
 
Anyone into making a watchguard that tracks mesu.apple.com for changes (and records them)? --[[User:M2m|M2m]] 00:55, 12 November 2011 (MST)
 
Anyone into making a watchguard that tracks mesu.apple.com for changes (and records them)? --[[User:M2m|M2m]] 00:55, 12 November 2011 (MST)
  +
: Should do the trick to make a backup of OTA.xml's whenever there is a change
:I did a [http://cole.freehostingcloud.com/scripts/Apple%20OTA%20Update%20Checker.php crude one]. It works by comparing against a list of already done URLs in an array --[[User:5urd|5urd]] 13:16, 12 November 2011 (MST)
 
:::I would just curl --user-agent="softwareupdateservicesd (unknown version) CFNetwork/539 Darwin/11.0.0" http://mesu.apple.com/assets/com_apple_MobileAsset_SoftwareUpdate/com_apple_MobileAsset_SoftwareUpdate.xml -o OTA.xml and pipe it into shasum. In case shasum change, save as new version with date and time (and display)... --[[User:M2m|M2m]] 19:00, 12 November 2011 (MST)
 
::::One problem with that is that I can't test it on my computer here at my house as I am on windows. To test it with curl I would need to upload it to my website. What I did was open a connection with fsockopen(), sent some request headers, then read the response to a string. After that, I parsed the [[PLIST File Format|plist]] to an array. Unfortunately, the parser leaves some artifacts on the hash as it is a compressed hash. So I decided to use the file location instead. It still works pretty well. I had to remove the URL form area as it messed with the array in unwanted ways. I am working on moving it from an array to just line by line URLs preventing the failure as I just append the line to it. When I finish it, I will post the code on [http://cole.freehostinglcoud.com/cms/Scripts:PHP/Apple_OTA_Update_Checker my website]. --[[User:5urd|5urd]] 21:43, 12 November 2011 (MST)
 
::::: curl is avialable for windows[http://curl.haxx.se/download.html] --[[User:M2m|M2m]] 04:43, 13 November 2011 (MST)
 
:::::: doesn't matter, it already works and spits out a nice table. --[[User:5urd|5urd]] 16:05, 13 November 2011 (MST)
 
::::::: So is your tracker available online already ? --[[User:M2m|M2m]] 19:59, 26 November 2011 (MST)
 
:::::::: Yes. When you add a link to the wiki, you can add it to the textbox one per line and click submit and it wont show up again. --[[User:5urd|5urd]] 13:37, 27 November 2011 (MST)
 
:::::::: [http://pastie.org/2930838 Spammers]. It doesn't work because it works like this:
 
for (
 
$i = 0;
 
$i < sizeof(array_keys($plist['Assets']));
 
$i++)
 
{
 
if (
 
!in_array(
 
$plist['Assets'][$i]['__BaseURL'] . $plist['Assets'][$i]['__RelativePath'],
 
$usedurls)
 
)
 
{
 
// Output table
 
}
 
}
 
:::::::: --[[User:5urd|5urd]] 17:34, 27 November 2011 (MST)
 
::::::::: Should do the trick to make a backup of OTA.xml's whenever there is a change
 
 
#!/bin/bash
 
#!/bin/bash
 
SHA_OLD=1
 
SHA_OLD=1
Line 54: Line 30:
 
sleep 600
 
sleep 600
 
done
 
done
:::::::::--[[User:M2m|M2m]] 08:33, 24 March 2012 (MDT)
+
:--[[User:M2m|M2m]] 08:33, 24 March 2012 (MDT)
 
== Carrier Beta ==
 
What is a carrier beta? --[[User:5urd|5urd]] 18:33, 9 January 2012 (MST)
 
:Most likely a beta for carrier provisions. --[[User:Rdqronos|rdqronos]] 16:19, 26 March 2012 (MDT)
 
:: <code>-_-</code> --[[User:5urd|5urd]] 14:33, 21 July 2012 (MDT)
 
   
 
== Applying .patch files from OTA updates ==
 
== Applying .patch files from OTA updates ==
Line 73: Line 44:
 
:::Fancy wanna iMessage me and we can brain storm what good can come out of this. Maybe a jailbreak technique ;) --[[User:Dylan Laws|Haifisch]] 10:21, 6 July 2012 (MDT)
 
:::Fancy wanna iMessage me and we can brain storm what good can come out of this. Maybe a jailbreak technique ;) --[[User:Dylan Laws|Haifisch]] 10:21, 6 July 2012 (MDT)
 
::::Quick note: all OTA updates are signed with a private key owned by Apple. Unless you get into that department of Apple, you can't sign them without brute force. --[[User:5urd|5urd]] 12:09, 6 July 2012 (MDT)
 
::::Quick note: all OTA updates are signed with a private key owned by Apple. Unless you get into that department of Apple, you can't sign them without brute force. --[[User:5urd|5urd]] 12:09, 6 July 2012 (MDT)
  +
Do BOM files contain any hash sums?
   
 
== File Names ==
 
== File Names ==
Line 85: Line 57:
 
== Documentation ==
 
== Documentation ==
 
Someone should make a page with the documentation links, here's the XML: http://mesu.apple.com/assets/com_apple_MobileAsset_SoftwareUpdateDocumentation/com_apple_MobileAsset_SoftwareUpdateDocumentation.xml --[[User:Srb21103|Srb21103]] 20:16, 20 November 2012 (MST)
 
Someone should make a page with the documentation links, here's the XML: http://mesu.apple.com/assets/com_apple_MobileAsset_SoftwareUpdateDocumentation/com_apple_MobileAsset_SoftwareUpdateDocumentation.xml --[[User:Srb21103|Srb21103]] 20:16, 20 November 2012 (MST)
  +
:I was wondering where the documentation was retrieved from… I don't think it needs a new page, but I think it can be easily added onto this page as a new column. --[[User:Dialexio|<span style="color:#C20; font-weight:normal;">Dialexio</span>]] 20:04, 24 November 2012 (MST)
  +
  +
== Exploits ==
  +
I'm interested in this stuff also. I have a sense there's an exploit here somewhere, but I haven't had time to look into it --[[User:Posixninja|posixninja]] 17:18, 22 November 2012 (MST)
  +
:Their would definitely be an exploit, but it'd be fairly easily patched by Apple. You're best looking for a bootrom exploit. --[[User:Srb21103|Srb21103]] 19:48, 22 November 2012 (MST)
  +
::Removing the signing checks would be a big achievement because we could have jail broken OTA Updates by patching out the kernel and some files in the package. --[[User:5urd|5urd]] 20:32, 22 November 2012 (MST)
  +
:I've been examining the Settings app, kernel, and appropriate frameworks, but I haven't found anything. It is however obvious that the package contents are signed. --[[User:5urd|5urd]] 20:32, 22 November 2012 (MST)
  +
:I set up a fake mesu.apple.com server for testing, but it seems that even the plist is somehow signed. After changing a single letter in the plist, iOS says something about having a connection problem when trying to fetch it. --[[User:Tobi|Tobi]] 11:00, 26 November 2012 (CEST)
  +
::The Plist contains a certificate and a signature section at the bottom - so obviously this takes care that a plist can not be modified by just anyone.--[[User:M2m|M2m]] 05:27, 26 November 2012 (MST)
  +
:::LOL, stupid me for not actually looking at the file. Although I found the source of the thing that [http://www.opensource.apple.com/source/Security/Security-55163.44/sec/Security/SecPolicyPriv.h signs the files]. Look for the function called SecPolicyCreateMobileAsset --[[User:Tobi|Tobi]] 16:04, 26 November 2012 (CEST)
  +
::::A header file isn't going to do us much good. Maybe something along the lines of the [http://www.opensource.apple.com/source/Security/Security-55179.1/sec/Security/SecPolicy.c actual source itself] (search for <code>SecPolicyCreate</code>)? --[[User:5urd|5urd]] 18:19, 26 November 2012 (MST)
  +
Anyone noticed that Apple's iOS Updater seems can modify files under "/" [http://appldnld.apple.com/iOS6/041-8518.20121029.CCrt9/iOSUpdater.ipa IPA File] ? --[[User:KhaosT|khaost]] 15:59, 13 December 2012 (CST)
  +
:Yes, please look here: [[Trampoline]] --[[User:Srb21103|Srb21103]] 15:24, 13 December 2012 (MST)
  +
  +
== Apple TV ==
  +
I don't really know how to add these to the wiki. [http://appldnld.apple.com/AppleTV/041-7282.20121128.Hfam1/com_apple_MobileAsset_SoftwareUpdate/2fed502c1d4b10b75997f0be421546195f60d3c5.zip 2G] [http://appldnld.apple.com/AppleTV/041-7280.20121128.QwPi9/com_apple_MobileAsset_SoftwareUpdate/f25fe546fe5356dce272420621f278b7ed15b0fb.zip 3G] They're mentioned in the mesu.apple.com XML, but are a bit different from the other OTA updates. (Notably, considering the file size, it looks like it contains an image to restore an Apple TV.) Any ideas?
  +
  +
Speaking of the Apple TV, it seems like Apple wants to keep the version numbers confusing. I think that we should add a new column for the "marketing version" for this page as well. --[[User:Dialexio|<span style="color:#C20; font-weight:normal;">Dialexio</span>]] 18:57, 2 December 2012 (MST)
  +
:I agree that we should list the internal version too. --[[User:IAdam1n|iAdam1n]] ([[User talk:IAdam1n|talk]]) 22:43, 27 June 2013 (UTC)
  +
  +
== ios8 ==
  +
I just noticed that around 19:30 ( CET ) the appldnld.apple.com domain was removed, but the webserver at ipaddress 17.253.2.226 is still serving
  +
the OTA updates. So if you add the appldnld domain in your /etc/hosts file, you can still download.
  +
I guess apple did this because of the ios8 update. So they can test if everything is allright before opening everything up to the public.
  +
[[User:Itsme|Itsme]] ([[User talk:Itsme|talk]]) 17:44, 17 September 2014 (UTC)
  +
  +
== There are inferno logs in one of the OTA updates. ==
  +
  +
Download 5.0b5 for the iPod touch 4G [http://appldnld.apple.com/iPhone4/041-2068.20110806.Axpyt/com_apple_MobileAsset_SoftwareUpdate/d143312070ccc3d4b3758fa1d0b4732ecb20721b.zip here]. Then, unzip it, go to AssetData -> payload -> added -> private -> var -> logs -> Inferno -> Plists -> N81. Weird, right? I wonder if most OTA beta updates are like that. --[[User:Awesomebing1|Awesomebing1]] ([[User talk:Awesomebing1|talk]]) 13:52, 11 December 2014 (UTC)
  +
: Ok, looked at another OTA. They even went as far to patch those files. Weird. Don't they want to keep this type of stuff secret? --[[User:Awesomebing1|Awesomebing1]] ([[User talk:Awesomebing1|talk]]) 13:57, 11 December 2014 (UTC)
  +
:: There's been a few cases in which Apple did not strip all internal data off of both OTA packages and IPSWs, this is a little interesting cause it's all of Inferno's test plists. --[[User:Haifisch|Haifisch]] ([[User talk:Haifisch|talk]]) 18:50, 13 December 2014 (UTC)
  +
  +
== Page Partitioning ==
  +
  +
This page has a pretty big problem— about 1 MB, to be more precise. The wiki markup makes this page a monster to edit— to the point where my computer chokes whenever I try to make edits. (This computer's admittedly a six year old relic, but the specs should be more than capable of editing a web page, of all things— heck, I have less trouble with editing 4+ MB images.) As such, I would like to propose partitioning the page in a fashion similar to (but not exactly like) how [[Firmware]] used to be. Keeping in mind the editing limit, dividing the page based on device type (Apple TV, iPad, iPad mini, etc.) should be more than suitable for this. --[[User:Dialexio|Dialexio]] ([[User talk:Dialexio|talk]]) 23:29, 12 April 2015 (UTC)
  +
:This is a great idea. My MacBook Pro also lags badly when editing that page and maxes out my RAM due to the page being huge. --[[User:IAdam1n|iAdam1n]] ([[User talk:IAdam1n|talk]]) 08:25, 13 April 2015 (UTC)
  +
::This has now been completed. --[[User:IAdam1n|iAdam1n]] ([[User talk:IAdam1n|talk]]) 11:34, 17 April 2015 (UTC)
  +
  +
This is sort of becoming an issue again because it takes ages to edit. I've been thinking we should break it down even further. The ideas I have are:
  +
1) Break the pages down from [[OTA Updates/iPhone]] to [[OTA Updates/iPhone/8.x]], [[OTA Updates/iPhone/9.x]] etc.
  +
2) Keep [[OTA Updates/iPhone]] etc and have a table for each major iOS (we could have either a major iOS heading then the devices, followed by next major iOS heading etc or device headings then each major iOS as a table).
  +
  +
Personally I think idea 1 is the best because then the pages could be linked on [[OTA Updates/iPhone]] etc that the user would click for the iOS they want without the page taking ages to load. Idea 2 would fix editing being annoyingly slow but not loading each page since it would still have as much content on it. I'd like to think what other people think and if anyone has any other ideas. --[[User:IAdam1n|iAdam1n]] ([[User talk:IAdam1n|talk]]) 17:03, 16 January 2016 (UTC)
  +
:This has now been completed. --[[User:IAdam1n|iAdam1n]] ([[User talk:IAdam1n|talk]]) 09:24, 21 January 2016 (UTC)
  +
  +
== Format 1.0 ==
  +
  +
Is anyone able to provide more information about this? (e.g. What updates does it appear in?) All of the updates that I've seen are either in the IPSW format, format 2.0, or format 3.0, and the OTA IPSWs don't quite match the description of format 1.0. --[[User:Dialexio|Dialexio]] ([[User talk:Dialexio|talk]]) 02:02, 18 February 2016 (UTC)
  +
  +
== Splitting by individual firmware ==
  +
  +
I threw an idea out on Twitter a few days ago on a whim, asking how people would feel about listings being split by individual firmware. To my surprise, the majority of votes were in favor of it. (The idea actually came about after noticing how homebrew wikis for video game systems listed their firmware updates, but I digress.) A few days later, Apple pushed iOS 11.2.1, and while adding the iPhone updates I noticed we have a big problem with the way OTA updates are currently listed. For the iOS 11 updates specifically, it's about 788 KB big. (Literally.) 788 KB for just the page text is a lot for the server to parse into HTML. That bloat is only going to get larger, since Apple's just getting started with iOS 11, and iOS 12 will probably get worse.
  +
  +
I would like to propose cutting up the OTA updates pages based on firmware version. For instance, you would be able to find all of the OTA updates for 10.1.1 at [[OTA Updates/iPhone/10.1.1]]. (Builds 14B100 and 14B150 would be listed under different headings.) Updates for a beta could be listed at [[OTA Updates/iPhone/10.2 beta 2]]. In addition to addressing the size problem, it also has the benefit of making it easier for users to focus on the firmware version they're looking into. Of course, this rollout will take an excruciating amount of time and effort, and I don't anticipate this being finished until we're well into 2018; if anyone wants to lend a hand, it might be easier to just run older XMLs (I can supply them) through the parser I wrote. --[[User:Dialexio|Dialexio]] ([[User talk:Dialexio|talk]]) 21:36, 13 December 2017 (UTC)
  +
:I think this is an utterly stupid idea, it increases workload and it increases the hideousness or page names. 778 KB is nothing for the wiki to deal with. I'd be far more concerned about fixing the idiotic session error we keep getting on every single page edit. — '''[[User:Spydar007|<span style="color:black;">Spydar007</span>]] [[User talk:Spydar007|<span style="color:gray;">(Talk)</span>]]''' 21:40, 13 December 2017 (UTC)
  +
::The workload will be increased until the change is made, but after that it will be trivial. 778 KB isn't that big, but keep in mind that a significant amount it is tags and markup that need to be converted into HTML, and it will continue to blow up— Apple just got started with 11.x releases. Compare [[OTA Updates/iPhone/11.x]] with a smaller page like [[Keynote]], and you'll see a pretty noticeable difference in load times. If you really don't think this is an issue still, I invite you to try adding iPhone OTA updates for the 11.2.5 beta— thanks to both the time it takes to process the markup and the stupid session error problem, you'll likely go through a few session errors before it succeeds. (That happened to me when I added 11.2.1 earlier.) --[[User:Dialexio|Dialexio]] ([[User talk:Dialexio|talk]]) 21:59, 13 December 2017 (UTC)
  +
:::Whilst I take your point, I still don't think it is necessary to change this. However, I value consistency on this wiki, and, having considered this, I think there is something we could do.
  +
:::We split [[Firmware]] and [[Beta Firmware]] up, why do we not do the same with OTA Updates? Is there any reason we can't? If we were going to split OTA Updates by each individual firmware, it would probably be confusing if we didn't do the same with the Firmware pages too. Separating OTA Updates and OTA Beta Updates would decrease page size, and would keep consistency with the Firmware pages. Any thoughts of this? — '''[[User:Spydar007|<span style="color:black;">Spydar007</span>]] [[User talk:Spydar007|<span style="color:gray;">(Talk)</span>]]''' 22:38, 13 December 2017 (UTC)
  +
::::I actually like [[User:Spydar007|Spydar007's]] idea. Another idea that I had was we could have used something like [[OTA Updates/iPhone/11.0.x]], [[OTA Updates/iPhone/11.1.x]], etc and include both beta and public released but I do think Spydar007's idea is better. --[[User:IAdam1n|iAdam1n]] ([[User talk:IAdam1n|talk]]) 22:41, 13 December 2017 (UTC)
  +
:::::I had also thought this, but then I am not sure where you would place "11.1" in that. Would that go on the 11.1.x page? That would make it "11.1.0" which is never what it is referred to as. How would betas fit in, unless you were to split public and beta **and** then split by each firmware (which I think looks horrible from a UX perspective). — '''[[User:Spydar007|<span style="color:black;">Spydar007</span>]] [[User talk:Spydar007|<span style="color:gray;">(Talk)</span>]]''' 08:35, 14 December 2017 (UTC)
  +
::::::11.1 would go on 11.1.x. Beta's could either be on their own page or the same page. --[[User:IAdam1n|iAdam1n]] ([[User talk:IAdam1n|talk]]) 09:21, 14 December 2017 (UTC)
  +
::::I think the beta and public release OTA updates were never split up because they were initially delivered on the same XML. Apple only started using a different XML for betas around iOS 10 (...maybe a 9.x firmware?). Splitting off the beta updates would be good for consistency, but I don't think it'll address the page size issue by much; Apple typically pushes two OTA packages at most per beta release (one "universal" release, and one delta for the previous beta). This also brings up a rather minor question: should we go with this, how would we treat carrier and internal builds? Would those be clumped together with the beta OTA updates, or would they have their own page (e.g. "Carrier OTA Updates")? --[[User:Dialexio|Dialexio]] ([[User talk:Dialexio|talk]]) 22:52, 13 December 2017 (UTC)
  +
:::::I still think it'd be worth a shot. If we really needed to, we could break it down to use my idea but keep beta's on the beta one and public on public if we get to a point where it's still too big with public only. As for carrier OTA's, I think they should have their own page. --[[User:IAdam1n|iAdam1n]] ([[User talk:IAdam1n|talk]]) 00:35, 14 December 2017 (UTC)
  +
:::::I fail to see how splitting the page in half with beta and public wouldn't help decrease the page size? — '''[[User:Spydar007|<span style="color:black;">Spydar007</span>]] [[User talk:Spydar007|<span style="color:gray;">(Talk)</span>]]''' 08:35, 14 December 2017 (UTC)
  +
::::::I never said it won't reduce the page size; I said it won't do so ''by much''. I created a rough edit of the current revision of [[OTA Updates/iPhone/11.x]] to remove the beta entries, and doing so only saved approximately 211 KB (and the page still had poor loading performance). A public release of iOS increases the page size by 70+ KB, so that would approximately equate three public iOS releases. That's just not enough; one release of iOS 11.x is already undergoing testing, so that means we'd have two more updates to fill that gap— which are all but certain to happen between now and June, when iOS 12 is inevitably revealed. --[[User:Dialexio|Dialexio]] ([[User talk:Dialexio|talk]]) 18:14, 14 December 2017 (UTC)
  +
----
  +
Just to confirm the current plans before changes start being made (I'd like to target this weekend— the wiki probably won't be busy for Christmas weekend)... As we have not been able to find a viable alternative to solving the size issue, we are going to split the OTA updates by both release type and firmware version. Publicly released OTA updates will be found at URLs such as [[OTA Updates/iPhone/7.0.3]] and [[OTA Updates/iPhone/11.2.1]]. Beta OTA updates will be found in URLs such as [[Beta OTA Updates/iPhone/10.0]], which would contain all betas for that firmware. Carrier and Internal OTA updates will follow a similar naming scheme appropriately (e.g. [[Carrier OTA Updates/iPhone/6.0]]). Indices such as [[OTA Updates/iPhone]] will be updated to list each individual firmware, instead of specifying the firmware range.
  +
  +
As for the current range pages ([[OTA Updates/iPhone/10.x]], etc.), they may be either updated to reflect an index similar to [[OTA Updates/iPhone]], or straight up deleted. (Maybe include [[OTA Updates/iPhone/10.x]] on [[OTA Updates/iPhone]], similar to how [[OTA Updates/iPhone]] is included on [[OTA Updates]]?) If nobody comments, I will convert the pages to indices so old links on external sites will be handled, but I'm fine with either option. --[[User:Dialexio|Dialexio]] ([[User talk:Dialexio|talk]]) 01:27, 20 December 2017 (UTC)
  +
:Uh, excuse me? We're not going ahead with this idea without further discussion. Splitting by **both** firmware and type is silly, and this breaks consistency with Firmware, Beta Firmware, and Firmware Keys. To save time, effort, and annoyance, if you really want to do this, could we not use X.x pages? 11.1.x would include 11.1, 11.1.1, 11.1.2. Is it really necessary to have so many pages for each version? — '''[[User:Spydar007|<span style="color:black;">Spydar007</span>]] [[User talk:Spydar007|<span style="color:gray;">(Talk)</span>]]''' 07:39, 20 December 2017 (UTC)
  +
::I previewed edits for 11.0.x, 11.1.x, and 11.2.x, and the previews had better, but still poor performance. The 11.0.x edit took approximately 10.76 seconds to load after clicking "Show preview." For comparison purposes, [[OTA Updates/iPhone/11.x]] (prior to iOS 11.2.5 beta 2's release, but that release didn't add a lot of heft) took approximately 30.59 seconds to load after clicking "Show preview," and the completely unrelated [[Models]] page takes around 2 seconds to load a preview. --[[User:Dialexio|Dialexio]] ([[User talk:Dialexio|talk]]) 21:02, 20 December 2017 (UTC)
  +
  +
== Need new watchOS Software Update Catalogs. ==
  +
  +
with watchOS 6, apple introduced the ability for the watches to update on their own without an iPhone.
  +
and i think that's why they now have different catalogs for updates.
  +
  +
Can somebody help us hunt down the XML files that the watches contact to get updates from?
  +
i've been trying for two months with no luck, and it's interfering with collecting OTA links and baseband versions.
  +
  +
--[[User:DanTheMann15|DanTheMann15]] ([[User talk:DanTheMann15|talk]]) 01:58, 31 December 2019 (UTC)

Latest revision as of 01:58, 31 December 2019

Archives
 • 2012 • 2013 •

Encryption

Are the updates encrypted in any way (VFDecrypt?) --5urd 18:31, 30 August 2011 (MDT)

No. Just regular Zips. --M2m 22:36, 30 August 2011 (MDT)
Only NOR payloads and RAM disks are encrypted, rest of the "asset" is unencrypted --pjakuszew 04:19, 31 August 2011 (MDT)
The Kernel and bootloaders ARE encrypted, They are the exact same files as bundled with the .ipsw file --Itsme (talk) 16:04, 7 February 2013 (UTC)
Exactly as in same code, but different key/IV pair, or same code, and same key/IV pair? --5urd (talk) 16:15, 7 February 2013 (UTC)
the same key/IV pair, the encrypted binaries are identical. --Itsme (talk) 21:49, 7 February 2013 (UTC)
Most of the update consists of binary patchfiles, which can be processed using bspatch --Itsme (talk) 00:14, 9 February 2013 (UTC)

Tracker

Anyone into making a watchguard that tracks mesu.apple.com for changes (and records them)? --M2m 00:55, 12 November 2011 (MST)

Should do the trick to make a backup of OTA.xml's whenever there is a change
#!/bin/bash
SHA_OLD=1
while true; do
SHA_CUR=$(curl --user-agent 'softwareupdateservicesd (unknown version) CFNetwork/539 Darwin/11.0.0' http://mesu.apple.com/assets/com_apple_MobileAsset_SoftwareUpdate/com_apple_MobileAsset_SoftwareUpdate.xml | shasum)

if [ "$SHA_OLD" = "$SHA_CUR" ]; then
	echo nothing to do
else
	NOW=$(date +"%F")
	NOWT=$(date +"%T")
echo download
	curl --user-agent 'softwareupdateservicesd (unknown version) CFNetwork/539 Darwin/11.0.0' http://mesu.apple.com/assets/com_apple_MobileAsset_SoftwareUpdate/com_apple_MobileAsset_SoftwareUpdate.xml -o OTA_$NOW-$NOWT.xml

	SHA_OLD=$(curl --user-agent 'softwareupdateservicesd (unknown version) CFNetwork/539 Darwin/11.0.0' http://mesu.apple.com/assets/com_apple_MobileAsset_SoftwareUpdate/com_apple_MobileAsset_SoftwareUpdate.xml | shasum)
fi
sleep 600
done
--M2m 08:33, 24 March 2012 (MDT)

Applying .patch files from OTA updates

Hey guys, has anyone successfully "patched" a file with a .patch file from the "patches" folder of an OTA update? I am trying to do this and can't get it to work. I have tried on OS X, iOS, and Linux, with multiple different patches, and always get the same error:

patch: **** Only garbage was found in the patch input.

With --verbose option:

Hmm... I can't seem to find a patch in there anywhere.

I understand from some research that common .patch files have a certain syntax to them, bu I have looked inside these .patch files (using a text editor) and they never contain any readable text (even a .txt.patch file). This leads me to believe that iOS uses a specific and exclusively designed version of Patch. If so, how would I make use of that?
Ideally I would patch the files on-device via SSH, as I am developing something yet-to-be-announced which would need to do so automatically. If needed, it could alternatively be done using Mac OS X or Linux.
I would greatly appreciate any help, --ValleyForge 23:12, 28 June 2012 (MDT)

I'd like to help, but I need to learn :P --Haifisch 21:49, 5 July 2012 (MDT)
I actually figured it out, you have to use the bspatch command which is available on iOS, Mac OS X, Linux, and Windows :) --ValleyForge 22:59, 5 July 2012 (MDT)
Fancy wanna iMessage me and we can brain storm what good can come out of this. Maybe a jailbreak technique ;) --Haifisch 10:21, 6 July 2012 (MDT)
Quick note: all OTA updates are signed with a private key owned by Apple. Unless you get into that department of Apple, you can't sign them without brute force. --5urd 12:09, 6 July 2012 (MDT)

Do BOM files contain any hash sums?

File Names

Does anyone have the slightest on how Apple names their files? It looks like a hash that is 20 bytes long (40 hex chars/160 bits). From this list, there are a few like that, but none that I have heard of. --5urd 14:32, 21 July 2012 (MDT)

Should be the SHA-1 of the file.--M2m 21:14, 21 July 2012 (MDT)

Resequence? and deleting files?

  1. In most updates there are "added", "patches", and "replace" folders in the payload folder. In the iOS 6.0 updates, there is a folder among those named "resequence". What does this do? Currently the only file contained in the resequence folder is the dyld cache.
  2. How do OTA updates control which/whether files are deleted? Where is it specified which files are deleted, or do they delete files at all?

--ValleyForge 23:55, 29 September 2012 (MDT)

Documentation

Someone should make a page with the documentation links, here's the XML: http://mesu.apple.com/assets/com_apple_MobileAsset_SoftwareUpdateDocumentation/com_apple_MobileAsset_SoftwareUpdateDocumentation.xml --Srb21103 20:16, 20 November 2012 (MST)

I was wondering where the documentation was retrieved from… I don't think it needs a new page, but I think it can be easily added onto this page as a new column. --Dialexio 20:04, 24 November 2012 (MST)

Exploits

I'm interested in this stuff also. I have a sense there's an exploit here somewhere, but I haven't had time to look into it --posixninja 17:18, 22 November 2012 (MST)

Their would definitely be an exploit, but it'd be fairly easily patched by Apple. You're best looking for a bootrom exploit. --Srb21103 19:48, 22 November 2012 (MST)
Removing the signing checks would be a big achievement because we could have jail broken OTA Updates by patching out the kernel and some files in the package. --5urd 20:32, 22 November 2012 (MST)
I've been examining the Settings app, kernel, and appropriate frameworks, but I haven't found anything. It is however obvious that the package contents are signed. --5urd 20:32, 22 November 2012 (MST)
I set up a fake mesu.apple.com server for testing, but it seems that even the plist is somehow signed. After changing a single letter in the plist, iOS says something about having a connection problem when trying to fetch it. --Tobi 11:00, 26 November 2012 (CEST)
The Plist contains a certificate and a signature section at the bottom - so obviously this takes care that a plist can not be modified by just anyone.--M2m 05:27, 26 November 2012 (MST)
LOL, stupid me for not actually looking at the file. Although I found the source of the thing that signs the files. Look for the function called SecPolicyCreateMobileAsset --Tobi 16:04, 26 November 2012 (CEST)
A header file isn't going to do us much good. Maybe something along the lines of the actual source itself (search for SecPolicyCreate)? --5urd 18:19, 26 November 2012 (MST)

Anyone noticed that Apple's iOS Updater seems can modify files under "/" IPA File ? --khaost 15:59, 13 December 2012 (CST)

Yes, please look here: Trampoline --Srb21103 15:24, 13 December 2012 (MST)

Apple TV

I don't really know how to add these to the wiki. 2G 3G They're mentioned in the mesu.apple.com XML, but are a bit different from the other OTA updates. (Notably, considering the file size, it looks like it contains an image to restore an Apple TV.) Any ideas?

Speaking of the Apple TV, it seems like Apple wants to keep the version numbers confusing. I think that we should add a new column for the "marketing version" for this page as well. --Dialexio 18:57, 2 December 2012 (MST)

I agree that we should list the internal version too. --iAdam1n (talk) 22:43, 27 June 2013 (UTC)

ios8

I just noticed that around 19:30 ( CET ) the appldnld.apple.com domain was removed, but the webserver at ipaddress 17.253.2.226 is still serving the OTA updates. So if you add the appldnld domain in your /etc/hosts file, you can still download. I guess apple did this because of the ios8 update. So they can test if everything is allright before opening everything up to the public. Itsme (talk) 17:44, 17 September 2014 (UTC)

There are inferno logs in one of the OTA updates.

Download 5.0b5 for the iPod touch 4G here. Then, unzip it, go to AssetData -> payload -> added -> private -> var -> logs -> Inferno -> Plists -> N81. Weird, right? I wonder if most OTA beta updates are like that. --Awesomebing1 (talk) 13:52, 11 December 2014 (UTC)

Ok, looked at another OTA. They even went as far to patch those files. Weird. Don't they want to keep this type of stuff secret? --Awesomebing1 (talk) 13:57, 11 December 2014 (UTC)
There's been a few cases in which Apple did not strip all internal data off of both OTA packages and IPSWs, this is a little interesting cause it's all of Inferno's test plists. --Haifisch (talk) 18:50, 13 December 2014 (UTC)

Page Partitioning

This page has a pretty big problem— about 1 MB, to be more precise. The wiki markup makes this page a monster to edit— to the point where my computer chokes whenever I try to make edits. (This computer's admittedly a six year old relic, but the specs should be more than capable of editing a web page, of all things— heck, I have less trouble with editing 4+ MB images.) As such, I would like to propose partitioning the page in a fashion similar to (but not exactly like) how Firmware used to be. Keeping in mind the editing limit, dividing the page based on device type (Apple TV, iPad, iPad mini, etc.) should be more than suitable for this. --Dialexio (talk) 23:29, 12 April 2015 (UTC)

This is a great idea. My MacBook Pro also lags badly when editing that page and maxes out my RAM due to the page being huge. --iAdam1n (talk) 08:25, 13 April 2015 (UTC)
This has now been completed. --iAdam1n (talk) 11:34, 17 April 2015 (UTC)

This is sort of becoming an issue again because it takes ages to edit. I've been thinking we should break it down even further. The ideas I have are: 1) Break the pages down from OTA Updates/iPhone to OTA Updates/iPhone/8.x, OTA Updates/iPhone/9.x etc. 2) Keep OTA Updates/iPhone etc and have a table for each major iOS (we could have either a major iOS heading then the devices, followed by next major iOS heading etc or device headings then each major iOS as a table).

Personally I think idea 1 is the best because then the pages could be linked on OTA Updates/iPhone etc that the user would click for the iOS they want without the page taking ages to load. Idea 2 would fix editing being annoyingly slow but not loading each page since it would still have as much content on it. I'd like to think what other people think and if anyone has any other ideas. --iAdam1n (talk) 17:03, 16 January 2016 (UTC)

This has now been completed. --iAdam1n (talk) 09:24, 21 January 2016 (UTC)

Format 1.0

Is anyone able to provide more information about this? (e.g. What updates does it appear in?) All of the updates that I've seen are either in the IPSW format, format 2.0, or format 3.0, and the OTA IPSWs don't quite match the description of format 1.0. --Dialexio (talk) 02:02, 18 February 2016 (UTC)

Splitting by individual firmware

I threw an idea out on Twitter a few days ago on a whim, asking how people would feel about listings being split by individual firmware. To my surprise, the majority of votes were in favor of it. (The idea actually came about after noticing how homebrew wikis for video game systems listed their firmware updates, but I digress.) A few days later, Apple pushed iOS 11.2.1, and while adding the iPhone updates I noticed we have a big problem with the way OTA updates are currently listed. For the iOS 11 updates specifically, it's about 788 KB big. (Literally.) 788 KB for just the page text is a lot for the server to parse into HTML. That bloat is only going to get larger, since Apple's just getting started with iOS 11, and iOS 12 will probably get worse.

I would like to propose cutting up the OTA updates pages based on firmware version. For instance, you would be able to find all of the OTA updates for 10.1.1 at OTA Updates/iPhone/10.1.1. (Builds 14B100 and 14B150 would be listed under different headings.) Updates for a beta could be listed at OTA Updates/iPhone/10.2 beta 2. In addition to addressing the size problem, it also has the benefit of making it easier for users to focus on the firmware version they're looking into. Of course, this rollout will take an excruciating amount of time and effort, and I don't anticipate this being finished until we're well into 2018; if anyone wants to lend a hand, it might be easier to just run older XMLs (I can supply them) through the parser I wrote. --Dialexio (talk) 21:36, 13 December 2017 (UTC)

I think this is an utterly stupid idea, it increases workload and it increases the hideousness or page names. 778 KB is nothing for the wiki to deal with. I'd be far more concerned about fixing the idiotic session error we keep getting on every single page edit. — Spydar007 (Talk) 21:40, 13 December 2017 (UTC)
The workload will be increased until the change is made, but after that it will be trivial. 778 KB isn't that big, but keep in mind that a significant amount it is tags and markup that need to be converted into HTML, and it will continue to blow up— Apple just got started with 11.x releases. Compare OTA Updates/iPhone/11.x with a smaller page like Keynote, and you'll see a pretty noticeable difference in load times. If you really don't think this is an issue still, I invite you to try adding iPhone OTA updates for the 11.2.5 beta— thanks to both the time it takes to process the markup and the stupid session error problem, you'll likely go through a few session errors before it succeeds. (That happened to me when I added 11.2.1 earlier.) --Dialexio (talk) 21:59, 13 December 2017 (UTC)
Whilst I take your point, I still don't think it is necessary to change this. However, I value consistency on this wiki, and, having considered this, I think there is something we could do.
We split Firmware and Beta Firmware up, why do we not do the same with OTA Updates? Is there any reason we can't? If we were going to split OTA Updates by each individual firmware, it would probably be confusing if we didn't do the same with the Firmware pages too. Separating OTA Updates and OTA Beta Updates would decrease page size, and would keep consistency with the Firmware pages. Any thoughts of this? — Spydar007 (Talk) 22:38, 13 December 2017 (UTC)
I actually like Spydar007's idea. Another idea that I had was we could have used something like OTA Updates/iPhone/11.0.x, OTA Updates/iPhone/11.1.x, etc and include both beta and public released but I do think Spydar007's idea is better. --iAdam1n (talk) 22:41, 13 December 2017 (UTC)
I had also thought this, but then I am not sure where you would place "11.1" in that. Would that go on the 11.1.x page? That would make it "11.1.0" which is never what it is referred to as. How would betas fit in, unless you were to split public and beta **and** then split by each firmware (which I think looks horrible from a UX perspective). — Spydar007 (Talk) 08:35, 14 December 2017 (UTC)
11.1 would go on 11.1.x. Beta's could either be on their own page or the same page. --iAdam1n (talk) 09:21, 14 December 2017 (UTC)
I think the beta and public release OTA updates were never split up because they were initially delivered on the same XML. Apple only started using a different XML for betas around iOS 10 (...maybe a 9.x firmware?). Splitting off the beta updates would be good for consistency, but I don't think it'll address the page size issue by much; Apple typically pushes two OTA packages at most per beta release (one "universal" release, and one delta for the previous beta). This also brings up a rather minor question: should we go with this, how would we treat carrier and internal builds? Would those be clumped together with the beta OTA updates, or would they have their own page (e.g. "Carrier OTA Updates")? --Dialexio (talk) 22:52, 13 December 2017 (UTC)
I still think it'd be worth a shot. If we really needed to, we could break it down to use my idea but keep beta's on the beta one and public on public if we get to a point where it's still too big with public only. As for carrier OTA's, I think they should have their own page. --iAdam1n (talk) 00:35, 14 December 2017 (UTC)
I fail to see how splitting the page in half with beta and public wouldn't help decrease the page size? — Spydar007 (Talk) 08:35, 14 December 2017 (UTC)
I never said it won't reduce the page size; I said it won't do so by much. I created a rough edit of the current revision of OTA Updates/iPhone/11.x to remove the beta entries, and doing so only saved approximately 211 KB (and the page still had poor loading performance). A public release of iOS increases the page size by 70+ KB, so that would approximately equate three public iOS releases. That's just not enough; one release of iOS 11.x is already undergoing testing, so that means we'd have two more updates to fill that gap— which are all but certain to happen between now and June, when iOS 12 is inevitably revealed. --Dialexio (talk) 18:14, 14 December 2017 (UTC)

Just to confirm the current plans before changes start being made (I'd like to target this weekend— the wiki probably won't be busy for Christmas weekend)... As we have not been able to find a viable alternative to solving the size issue, we are going to split the OTA updates by both release type and firmware version. Publicly released OTA updates will be found at URLs such as OTA Updates/iPhone/7.0.3 and OTA Updates/iPhone/11.2.1. Beta OTA updates will be found in URLs such as Beta OTA Updates/iPhone/10.0, which would contain all betas for that firmware. Carrier and Internal OTA updates will follow a similar naming scheme appropriately (e.g. Carrier OTA Updates/iPhone/6.0). Indices such as OTA Updates/iPhone will be updated to list each individual firmware, instead of specifying the firmware range.

As for the current range pages (OTA Updates/iPhone/10.x, etc.), they may be either updated to reflect an index similar to OTA Updates/iPhone, or straight up deleted. (Maybe include OTA Updates/iPhone/10.x on OTA Updates/iPhone, similar to how OTA Updates/iPhone is included on OTA Updates?) If nobody comments, I will convert the pages to indices so old links on external sites will be handled, but I'm fine with either option. --Dialexio (talk) 01:27, 20 December 2017 (UTC)

Uh, excuse me? We're not going ahead with this idea without further discussion. Splitting by **both** firmware and type is silly, and this breaks consistency with Firmware, Beta Firmware, and Firmware Keys. To save time, effort, and annoyance, if you really want to do this, could we not use X.x pages? 11.1.x would include 11.1, 11.1.1, 11.1.2. Is it really necessary to have so many pages for each version? — Spydar007 (Talk) 07:39, 20 December 2017 (UTC)
I previewed edits for 11.0.x, 11.1.x, and 11.2.x, and the previews had better, but still poor performance. The 11.0.x edit took approximately 10.76 seconds to load after clicking "Show preview." For comparison purposes, OTA Updates/iPhone/11.x (prior to iOS 11.2.5 beta 2's release, but that release didn't add a lot of heft) took approximately 30.59 seconds to load after clicking "Show preview," and the completely unrelated Models page takes around 2 seconds to load a preview. --Dialexio (talk) 21:02, 20 December 2017 (UTC)

Need new watchOS Software Update Catalogs.

with watchOS 6, apple introduced the ability for the watches to update on their own without an iPhone. and i think that's why they now have different catalogs for updates.

Can somebody help us hunt down the XML files that the watches contact to get updates from? i've been trying for two months with no luck, and it's interfering with collecting OTA links and baseband versions.

--DanTheMann15 (talk) 01:58, 31 December 2019 (UTC)