Quantcast

Cory Bohon

 

Think you’ve made a mistake by upgrading your iPhone or iPod touch to the latest and greatest iPhone OS beta? iPhone OS 4.0 can be a little buggy and may not even work nicely with some applications, but that didn’t stop some from making the leap. Apple intended for this beta version of the iPhone OS to be strictly for developers and it shows. We're going to show you how to return your device back to OS 3.1.3 far away from those beta bugs.

We suggest reading this how-to in its entirety before proceeding with this process. We successfully downgraded our device from 4.0 to 3.1.2 on multiple iPhone 3GS models, but haven’t tried this process on an iPhone 3G or iPod touch.

 

Disclaimer: Your mileage may vary, so proceed at your own risk. Mac|Life takes no responsibility if you brick your device.

Difficulty Level: Medium

What You Need:
- An iPhone Running OS 4.0
- A Mac
- iRecovery v. 1.3 for Mac
- Libusb Library


Step 1 - Download iRecovery and Libusb
You’ll need two pieces of software in order to downgrade your device from OS 4.0 back to OS 3.1.3. You can download iRecovery by clicking here (direct-download link). You can download Libusb by clicking here (direct-download link).

You can install Libusb by unzipping and running the installer. Unzip and place the iRecovery script on your Desktop.


Step 2 - Sync Your iPhone
The first part of any OS restore should be to backup and sync your iPhone data. Connect your device to iTunes and click the lovely Sync button. Depending on how many changes you have, this could take a while so get a snack and watch the status bar climb to the finish line.

iPhone OS 4.0 doesn’t allow you to backup your device, so anything that’s not synced over to iTunes will be lost.


Step 3 - Start The Restore
Press alt/option and click the Restore button in iTunes. This will bring up a dialog that will allow you to manually select your iPhone OS firmware. Navigate to User/Library/iTunes/iPhone Software Updates/ and select “iPhone2,1_3.1.3_7E18_Restore.ipsw”. Click Choose and the OS restore process will begin.


If you don’t have this version of the iPhone OS software, then you’ll need to download it by clicking your version below. Then repeat this process by navigating to the download location and selecting it. Click Choose and the OS restore process will begin.

Download iPhone OS 3.1.3 for iPhone 3G

Download iPhone OS 3.1.3 for iPhone 3GS

Your device will most likely show the error "1015" when it is restoring the firmware. Ignore this error as we will take care of it in the next step.


Step 4 - Use iRecovery to complete restore
Now we’re going to use iRecovery to complete the restore process and get around the firmware upgrade problem that we encountered in the previous step.

To do this, launch Terminal (Applications/Utilities) and type in the following commands:

cd Desktop

./iRecovery -s

setenv auto-boot true

saveenv

fsboot

exit


After a few seconds, you can disconnect your iPhone and power it off manually by pressing the power and home buttons simultaneously. Now when you power up your iPhone, you should see the standard connect to iTunes image.

You can now safely connect your iPhone to iTunes.


Step 5 - Restore Your iPhone from a Backup
When you connect your iPhone back to iTunes, you’ll have two options: Set up as a new iPhone or Restore from the backup of. If you’re restoring from a previous backup, select it from the drop down menu and click Continue. If not, select Set up as a new iPhone and continue the on-screen instructions. 


Your device restore will take a few minutes to complete, so you may want to grab a snack and watch the status bar for entertainment (or not, your choice).

Step 6 - Relax You’re Back to 3.1.3
You can now breathe a sigh of relief and pat yourself on the back. Your iPhone has now been safely restored back to its previous OS version (3.1.3). If you’re into jailbreaking, you can now re-jailbreak your device following the same process you followed before.

Process via Gadgets DNA

 

COMMENTS
avatar

THANK YOU

All I have to say is THANK YOU for publishing this. I was uncertain of the solutions i found elsewhere on the web, thankfully MacLife came through. Worked like a champ!I will happily wait for the public release of 4.0.

Login or register to post comments
avatar

Nice!!

Great tutorial!!!! Thanks a lot!!!!! Worked nicely!!!

Login or register to post comments
avatar

Worked on my 3G

Back to 3.1.3 and a usable iPhone w/o a problem.

Login or register to post comments
avatar

Permission denied....

Get to the step
./iRecovery -s

and get a Permission denied error.

What am I missing?

Login or register to post comments
avatar

Thank you very much. Iphone

Thank you very much. Iphone 1.13 firmware was good, its usable without problem. กล่องไปรษณีย์ . Princo . Verbatim . Bluray . กระดาษ Glossy . DVD . CD-R

Login or register to post comments
avatar

Thanks, you saved my life: iPhone 4.0 promising but too buggy

Restoration to OS 3.1.3 in progress and looking like its working. Although the features have great potential, this first beta was just too buggy. Even the built-in apps like mail had screen refresh issues going into landscape and leaving the menu stuck there even if try to rotate back. Also, didn't like that so many apps ceased to function and all my data in every app was gone. This was not an issue with the 3.0 beta releases...that upgrade did not wipe out all database files.

Another major flaw was the so-called multitasking designed to save power. I am guessing this won't really work until apps are designed to conform. From what I could see, the way it handled multitasking was to keep absolutely every program open in the background. Double-clicking the home button then tap-holding any background apps just kept making other background apps appear. May explain why OS 4.0 drained more than 20% battery power per hour even with minimal use.

Anyway, thanks again to MacLife for posting a way to get back my iPhone 3.1.3.

Login or register to post comments
avatar

Does it work

On OS 3.1.2? Can I downgrade from 4 to 3.1.2 so I can do a Backra1n JB?

Login or register to post comments
avatar

worked Iphone 3G

Thank you thank you thank you!!!!

Login or register to post comments
avatar

Downgrade from 4.0 beta 2 works!

Just wanted to let you know that this method still works even if you've upgraded to the new beta 2 of 4.0.

Login or register to post comments
avatar

Awesome

I got the OS 4 Beta 2 and wow does it stink. A few cool features, but nothing to make me want it on my iPhone.

My screen capture stopped working, device was slow, various programs crashed, really hard to believe that Apple would allow this to go out.

Your how to to downgrade to OS 3.1.3 was very good and I am thankful. I have an app review website and without screen captures I felt restricted.

thank you for your expertise.

Mike

Login or register to post comments
avatar

Error message when using Terminal

I get this message when I try to put the command ./iRecovery -s-bash: ./iRecovery: No such file or directoryWhat am I doing wrong??? Pat

Login or register to post comments
avatar

make sure you

put the irecovery script that u downloaded on the desktop dont leave in downloaded folder

Login or register to post comments
avatar

OS 4.0 Beta 2 downgrade worked for me too!

Thank you, thank you, thank you!I'm in the process of restoring the backup from 3.1.3 right before upgrading to 4.0 b1. I won't make the usual comments and rants about the quality of the releases. Simply put, I'm involved in iPhone development to make money and the two beta releases have cost me quite a bit in time.Anyway, I've downloaded two different IPSW files for 3.1.3 and the MD5 hashes match. In case you were wondering about the validity of the file you downloaded (I couldn't locate my 3.1.3 firmware and it's no longer available via Apple's dev site), here's the hash: MD5 (iPhone1,2_3.1.3_7E18_Restore.ipsw) = 82e93e4e51b0e4503a8165507b8a3df2. Happy restoring - it was quick and painless and my phone is working perfectly on 3.1.3.iDev

Login or register to post comments
avatar

Great Tutorial. Thanks.Only

Great Tutorial. Thanks.Only ran into a couple of hitches that are worth mentioning.1/ In Step 3 - Start The Restore I have an iPhone 3G so when restoring it wasn't “iPhone2,1_3.1.3_7E18_Restore.ipsw” rather it was: "iPhone1,2_3.1.3_7E18_Restore.ipsw"2/ In Step 5 - Restore Your iPhone from a BackupI'm a legit Dev so I've been using 4.0 since launch of Beta 1.When I went to restore from my latest Sync "My Name's iPhone" It wouldn't allow it.I wish I'd recorded the error but it was along the lines of it couldn't restore with that version of the iPhone's software.I then selected an older Back Up from just after I installed 4.0 beta 1 and it worked.Thankfully I didn't lose much but any suggestions for a fix? 

Login or register to post comments
avatar

Great How-To

Worked as indicated for me.  As another commenter noted, I had to restore to a backup made PRIOR to upgrading my phone to OS4 beta.  OS4 Beta shows promise, but as my development phone is also my personal phone it was a bit too unstable for my liking.

Login or register to post comments
avatar

restore

The new software is cool but it is sill to buggy for us to use rite now. We decided to wait for the final version. For now we will use xcode to help us with our software.Thank you for helping us.

Login or register to post comments
avatar

Too easy?

Idk what I did right, but I didn't even have to use iRestore or that libusb tool to downgrade my iPod Touch 3rd Gen.  I just selected the restore and down it went back to 3.1.3.  

Login or register to post comments
avatar

GREAT tutorial - you saved my bacon!

Thanks a million for this. I searched high and low for how to do this and thank goodness I found your article. I had gotten to the error 1015 on my own, but iRecovery and LibUsb were unknowns to me. TOTALLY fixed my iPhone back to its v 3.1.3 goodness!

Login or register to post comments
avatar

Restore didn't work

I must be doing something wrong.  I never see the message saying 'Restoring Software' in step 3.  It says items such as 'preparing software for restore', but I then get an 'unknown error has occurred (Error 6)'.  If i then press ok - I get the standard "Connect to Itunes' image.  Once I am there - it just says it must be restored and I am still on 4.0.What am I missing?

Login or register to post comments
avatar

I stand corrected

So - I went through the loop I was getting about 3 times (Error 6)... iTunes saying my iPhone was in restore mode and needed to be restored... then restore it. Try this over again... On the 4th Try - it didn't give me the same error - I received the wonderful 1015 error. Continued the instructions above and it worked flawlessly. Not sure what caused by Error 6 loops - but I am restored to 3.1.3. thank you!

Login or register to post comments
avatar

VERY HELPFUL

Thanks very much this tutorial worked exactly as described saved my butt much appreciated!!

Login or register to post comments
avatar

IT WORKED!

it worked great thanks amazing truly

Login or register to post comments
avatar

Worked on iPhone OS 4.0 beta 3 /iPhone 3G.

Worked on iPhone OS 4.0 beta 3 /iPhone 3G.Thanks a lot!

Login or register to post comments
avatar

Awsome Tutorial

Thank you soo much for these steps you helped out alot. keep up the good work.

Login or register to post comments
avatar

Thanks!

This was awesome! Thank you for helping me unbrick my iphone. Worked as written.

Login or register to post comments
avatar

THANK YOU SO MUCH!!!

You just saved me an embarrassing trip to the Apple Store. This worked like a charm on my 3GS. Thanks again!!

Login or register to post comments
avatar

Lifesaver!!

this was so awesome thanks! Thats so stupid that Apple doesn't have this as a support article! Thanks so much Mac Life! You have a new reader for life! Keep on Keeping on!!

Login or register to post comments
avatar

Error

I'm getting this error after I run iRecovery in terminal:

iRecovery - Recovery Utility for 0x1281 and WTF. by wEsTbAeR-- and Tom3q

Got USB
Error -9 when setting configuration

So when I type the following commands

setenv auto-boot true
saveenv
fsboot
exit

I get nothing. Any ideas?

Login or register to post comments
avatar

I just downgraded my iPhone

I just downgraded my iPhone from 4.0 beta 4 to 3.1.3 but iTunes will not let me restore from the backup of my information when I was running the 4.0 beta 4. Is there any way to work around this?

Thanks

Login or register to post comments
avatar

jubiiiiiiiiiii maclife just

jubiiiiiiiiiii maclife just saved my day. Thanks a million for this guide.

Login or register to post comments
avatar

jubiiiiiiiiiii maclife just

jubiiiiiiiiiii maclife just saved my day. Thanks a million for this guide.

Login or register to post comments
avatar

One slight change to instructions

The version of iRecovery I downloaded had a space 2 added to the end. Which of course caused the instructions to fail. I renamed it to just iRecovery and worked flawless.

Login or register to post comments
avatar

Back to 3.1.3 from iOS4

Because my iPhone 3G became sluggish after upgrading to OS4 i wanted to downgrade again. Of course I did not find the 3.1.3 in my Mac, read your item, FOUND THE LINK TO 3.1.3 for 3G, downloaded it, and now the iPhone 3G is working great again with 3.1.3 in it. Fantastic article even for a layman.... THANKS

Login or register to post comments
avatar

Doesn't seem to work...

I followed the instructions to a T to take my 3G from 4.0 to 3.1.3, and all seemed to go smoothly until the reboot. An inspection also shows that my baseband didn't downgrade (it's still at 5.13.04 from the iOS4 upgrade attempt). Any ideas?

Login or register to post comments
avatar

Will these instructions work

Will these instructions work on a pc; noticed on the front end you say a Mac is required.

Login or register to post comments
avatar

No iPhone/iPod found

Last login: Sat Jun 26 19:55:10 on ttys001
gordon-stewarts-iMac:~ gcs181074$ cd desktop
gordon-stewarts-iMac:desktop gcs181074$ ./iRecovery -s
iRecovery - Recovery Utility for 0x1281 and WTF.
by wEsTbAeR-- and Tom3q

Got USB
No iPhone/iPod found.
gordon-stewarts-iMac:desktop gcs181074$

HELP WHAT AM I DOING WRONG

Login or register to post comments
avatar

CANT GET PAST THE ./IRecovery -s Command

It keeps telling me:

Got USB
No Iphone/Ipod Found.

I saw a command earlier that u need the iRecovery script on the desktop, I think I have that already on the desktop. Could anyone be more specific on what that is exactly so that I can verify if I have it right.

Thanks

Login or register to post comments
avatar

cant get past first base!

After i have clicked the restore tab and started the restore it takes a while then comes back with "This device is not eligible for the requested build"

Any ideas as not having internet other than through wifi is a nightmare and has only happened since i upgraded.

Many thanks

Login or register to post comments
avatar

Got USB - No iPhone/iPod Found

after the command ./iRecovery -s

it tells me

Got USB
No iPhone/iPod found

Any ideas?

Login or register to post comments
avatar

downgrade..

Hey there.. I tried to do the restore, but connects and tells me that I'm ineligible to downgrade.. Then I get the no iphone/usb error as well..

Eek! Help!

Login or register to post comments
avatar

Works on 3G!

Thank you sooo much for this tutorial. The only difference was step 3 where I had to find the restore software elsewhere on my computer. Other than that it was a breeze to fix!

Login or register to post comments
avatar

Baseband downgrade from 5.13.04 to 5.12.01

Is there a way to downgrade the modem firmware from OS4 5.13.04 on my 3G?
Thanks

Login or register to post comments
avatar

error when running script

Getting the following error when runniong script

MacPro2:~ acutshall$ cd Desktop
MacPro2:Desktop acutshall$ ./iRecovery -s
dyld: Library not loaded: /usr/local/lib/libusb-0.1.4.dylib
Referenced from: /Users/acutshall/Desktop/./iRecovery
Reason: image not found
Trace/BPT trap
MacPro2:Desktop acutshall$ setenv auto-boot true
-bash: setenv: command not found
MacPro2:Desktop acutshall$

Thx

Login or register to post comments
avatar

Had to restore to Feb 2009

I just finished doing this w/ my iPhone 3G. Everything went as described except it would not let me restore from the backup I made tonight or recently. I sync and backup every day. It kept saying that it was "too old" and I had to drop the drop-down box to another backup of the same name and I thought it said "Feb 2010" but now that I'm done everything on my phone is as it was in *Feb 2009*. Not sure what to do next... hmm.

Login or register to post comments
avatar

"This device is not eligible for the requested build"

After choosing the old firmware version I get an error message:
"This device is not eligible for the requested build"
What can I do???

Login or register to post comments
avatar

iPhone 3G

I used this method to downgrade my 3G from the final release 4.0 to 3.1.3. Worked like a charm. I placed all files on the desktop beforehand, and did not restore from a backup. I made sure the iPhone was 'seen' by itunes before I began the process. The text of the terminal instructions is small, and I missed the 'i' before Recovery, so that was my only problem.

My reason for downgrading was a large drop in battery life, loss of Bluetooth, and the iPhone went from a snappy performer to a sluggard. The 3G does not seem to have the processing power to handle 4.0. Anyway, what does a 3G user get besides folders with 4.0? The new mailbox setup is nicer, but......It is not worth the trade-offs and problems listed above.

Login or register to post comments
avatar

Downgrade software can be done in Window Vista PC?

Hi,

Can I do all the downgrading steps in Window Vista? I can't even install the software. Is there any other way to do in Window vista.

Thanks!

Login or register to post comments
avatar

Libusb Library won't install

Says I need 10.6 ... I only have 10.5.8 ... any help? OS4 is killing my 3G.

Thanks all.

Login or register to post comments
avatar

Multiple replies

To the multiple PC / Windoze questions, you might have luck googling as I saw references of Windows for the tools in question. You may also need to install cygwin to get unix. There may be better alternatives though.

Elvis Cole, You might have success if you can find a version of libusb that supports OS 10.5 but I don't think I'd trust my expensive iOS device to it.

acutshall, it's complaining that libusb isn't installed. The rest of the commands are useless without it.

jd24dragon, is it plugged into the Mac directly or via hub? The latter may not work.

That's about all the suggestions i have. Meanwhile, for safety, I'd remove libusb and reboot once completed as that's a security risk.

Login or register to post comments
avatar

My question: Use it to Upgrade to 3.1.3???

I'm still at 3.0. I don't want to go to v4.0 as I've heard it's slower even after fixes are applied. (4.0 doesn't really offer much to a 3G anyway.) Anyone know if these steps could be used to upgrade from 3.0 to 3.1.3? It would seem yes.

(I never upgraded past 3.0 because I wanted the option to tether)

Login or register to post comments