Filed under: Apple
TUAW How To: Downgrading your 3.1.3 iPhone to 3.1.2
Last week I downloaded (but did not install) the iPhone OS 3.1.3 firmware for my 3GS. I wanted to have a copy of the firmware on hand, but didn't want to upgrade right away. I checked "Do not ask me again" and clicked Download Only. I thought that was the end of the matter.Unfortunately, this Sunday, I plugged in my iPhone and left the room to grab some tea. When I returned, the iPhone was 50% of the way through the 3.1.3 firmware upgrade procedure. It did something I had no idea that it would do: it upgraded me without asking.
How frustrating! What's more, I didn't have a copy of 3.1.2 on-hand to downgrade to because iTunes automatically deleted the old firmware files and I was using default Time Machine settings; Time Machine does not normally back up ~/Library, the folder that contains the iTunes ipsw files.
Fortunately, I had several resources. First, because I had jailbroken my phone and registered my device signature with Jay Freeman's caching service, I knew I could downgrade my phone. As Jay and I discussed in this LiveChat from a few months back, Apple no longer allows you to freely downgrade your iPhone software. All firmware installations must be verified with Apple's signature servers.
By jailbreaking your phone and registering your device signature with Jay's system, you'll be able to bypass Apple's verification system and return to the firmware you prefer -- or at least to the earliest firmware whose signature you have stored on the caching site. To make this happen, you must both register your device and update your /etc/hosts file. Jay's site has complete instructions on how to comply.
Second, I could grab a copy of old firmware from sites like Felix Bruns' http://www.felixbruns.de/iPod/firmware/ and iClarified's http://www.iclarified.com/entry/index.php?enid=750. These sites provide Apple download links for old firmware releases. I downloaded a fresh copy of the 3.1.2 ipsw (iPhone software archive) and installed it onto my system. Using a standard option-restore trick, I was able to put that firmware onto my iPhone. iTunes verified the upgrade with Jay's server and installed it onto the device.
Note: If you receive the "The iPhone could not be restored. An unknown error occurred (3004)." error, make sure to quit iTunes and flush caches at the command line:
sudo dscacheutil -flushcache.If your device updates properly, you will receive a 1015 error and your unit will now enter a semi-permanent recovery mode, the mode in which your device shows an iTunes logo and will not boot further. To proceed, you'll need to use iRecovery. Download a copy from this site. (It requires libusb, so read the entire post before running.) Run iRecovery from the command line and supply the -s flag. Wait for the "]" prompt, and do not type anything until you see that prompt appear.
Enter the following commands:
] setenv auto-boot true
] saveenv
] /exitAfter, you will return to the command line. Reboot your phone by pressing the home and sleep buttons for 10 seconds, per the instructions on the site, and your iPhone should boot back to standard 3.1.2.
Note: Be aware that this method does not downgrade your baseband. It remains at the 3.1.3 setting.
Thanks Jay Freeman, Sjoerd (aka WiFone), and Paul "PhoenixDev" Griffin


![TUAW [Cafepress]](http://www.blogsmithmedia.com/www.tuaw.com/media/tuaw-cafepress-promo.png)


Reader Comments (Page 1 of 3)
Chase said 4:54PM on 2-09-2010
I upgraded to 3.1.3 and jailbroke using Pwnage Tools 3.1.5, only to be greeted with No Service.
If anyone else runs into this problem on a 3G iPhone. Use Redsn0w to jailbreak. I don't know about an unlock, but it jailbroke and allowed me service with Redsn0w 0.9.4.
Reply
James said 2:12AM on 2-10-2010
Hey Chase,
I ran into the same problem where I "accidently" updated my iphone to 3.1.3 where my baseband remained at 05.12.01 and I cannot downgrade that. I was only able to downgrade the version. I guess that no more unlock until the dev team comes out with the tool to unlock this. That sucks.
Ry said 4:21PM on 2-09-2010
How frustrating... >:
Reply
Dale said 4:22PM on 2-09-2010
So... why didn't you want 3.1.3?
Reply
kbotc said 4:26PM on 2-09-2010
Maybe she wanted to use some jailbreak software on her phone?
There's legitimate reasons to jailbreak.
kentawilson said 4:28PM on 2-09-2010
I believe it's because she's jailbroken.
Dale said 4:35PM on 2-09-2010
But I thought 3.1.3 had been pwned already? Jailbreaking seems a little odd to me. The last thing I want to do to a $300 gadget is brick it, even if it means missing out on emulators and homebrew.
brian said 11:33PM on 2-09-2010
MY question is why the @#$&* isn't TM backing up ~/Library/? Ignore ~/Library/Caches/, sure, but everything in ~/Library is CRUCIAL! Bookmarks, Stickies, Mail, settings for every single app you run...
Jeff said 9:24AM on 2-10-2010
You can't permanently brick an iphone.
April said 1:18PM on 3-01-2010
Jailbreak... Does anyone know of a jailbreak u can use with 3.1.3?????
Please E-mail ME!
shalom said 4:30PM on 2-09-2010
Rather then using iRecovery which can be very difficult, you can simply perform the procedure a second time, you will receive the 1015 error again. Now use RedSn0w to jailbreak after which your phone will boot successfully. http://www.iClarified.com/7557
Reply
Jay said 4:35PM on 2-09-2010
What about the people like me who get the "Not eligible" message?
I got an iPod Touch 3G as a replacement to my broken Touch and it came with 3.1.1, now I'm stuck.
Reply
Brian said 4:39PM on 2-09-2010
I haven't jailbroken my iPhone, but I'm thinking I want to downgrade to 3.1.2 as well - because my screen has frozen several times while scrolling, and searching the Apple Support forums hasn't produced an answer that has worked for me. Anyone have any other suggestions?
Thanks in advance!
Reply
Skip said 9:35PM on 3-02-2010
Hi,
Saw your posting that you have not Jailbroken your 3GS but would like to downgrade your iphone to 3.1.2. Any luck in finding out how? I lost the Tethering function and I really want it back....
Thanks,
Brian said 9:42PM on 3-02-2010
@Skip - no, I never did. The issue I was having w/ the screen freezing isn't as frequent as initially, but still occurs once in awhile.
Good luck on your search
SIP said 4:43PM on 2-09-2010
@Erica "Unfortunately, this Sunday, I plugged in my iPhone and left the room to grab some tea. When I returned, the iPhone was 50% of the way through the 3.1.3 firmware upgrade procedure. It did something I had no idea that it would do: it upgraded me without asking."
I cannot understand how your iTunes/iPhone started updating the firmware on its own. Are you using a Mac or WinPC
Reply
macserv said 10:42PM on 2-09-2010
I'm asking myself the same question. I've gone through the software trying to find a means to do so *on purpose*, and I can't, with either a jailbroken or normal iPhone. I'm real close to calling shenanigans... can anyone offer an explanation?
Joachim Bean said 11:56PM on 2-09-2010
We're all wondering how the iPhone updated by itself, but it *did* happen. :)
Joshua Ochs said 6:28PM on 2-11-2010
I place bets on someone walking by and "helpfully" clicking OK to a waiting dialog box. Otherwise, I agree with shenanigans.
Still happily on 3.1.2, waiting on GeoHot.
kol_2004 said 5:37AM on 3-08-2010
Ive had this happen. I honestly believe its an Apple conspiracy theory.
;) No but really it does and can happen. Im not sure how. Im running XP and it happened to two different phones.