Those who want to downgrade last iOS 4.0 final or GM (Gold Master) edition to iPhone OS 3.1.3 then follow our step-by-step guide below. Inorder to downgrade your iPhone 3GS and iPod Touch 3G to firmware 3.1.3, you must have saved your SHSH blobs on Saurik's server in order to do a successful downgrade. If you haven't saved your SHSH blobs on Saurik's server when you were on OS 3.1.3 then you are out of luck. All iPhone 3G users can directly follow the guide below to downgrade from iOS 4.0 to iPhone OS 3.1.3.
Steps Edit HOSTS File In Windows And Mac
For Windows Users:
*iPhone 3G and iPod Touch 2G (non-MC) users do not need to edit their Windows HOSTS file!
- Navigate to Start->All Programs->Accessories and then right click on the Notepad icon and choose Run as Administrator
- Now go to File menu in opened Notepad and choose Open or simply press Ctrl+O. Browse to C:\Windows\System32\drivers\etc and open HOSTS file.
- Once HOSTS file is opened, copy-paste the following line at the end of file as shown in the screenshot below
- Now again go to File menu and choose Save or press Ctrl+S.
74.208.105.171 gs.apple.com

For Mac Users:
*iPhone 3G and iPod Touch 2G (non-MC) users do not need to edit their Mac HOSTS file!
- Click Go->Go to Folder and then enter path /etc
- Now open HOSTS file with TextEdit and add the following line with at the end of the file as shown in the screenshot below.
- Now go to File and choose Save As, uncheck If no extension is provide, use .txt and save the HOSTS file on your desktop.
- Now replace the original HOSTS file with the one you just saved on your desktop. Incase you are prompted for the password, just enter it and click OK.
74.208.105.171 gs.apple.com

Steps To Downgrade iOS 4.0 To Firmware 3.1.3 on Mac
Look for download links at the end of post:
- Download iRecovery v1.3.zip and extract it on your desktop.
- Download and install LibUSB library.
- Turn of your iPhone completely and hold down home and power button for 10 seconds.
- After 10 seconds, release the power button but keep pressing the home button until your PC produces a beep sound or you see the following message on your computer screen
- Open iTunes and use ALT+Restore to manually load the iPhone 3.1.3 firmware.
- You may see a popup with error code 1015 during the restore process, just ignore it.
- Now click OK to close the popup. Also close the iTunes.
- Open terminal and type the following command at the terminal
- Wait a few seconds and then disconnect your iPhone from the cable
- Restart your phone by pressing Home + Power buttons simultaneously
- When Apple logo appears on your screen, connect the phone to Mac via cable and proceed normally with the activation process.
- The downgrade is complete, enjoy again 3.1.3


cd Desktop. /-s iRecovery setenv auto-boot true saveenv fsboot exit
Steps To Downgrade iOS 4.0 To Firmware 3.1.3 on Windows
Look for download links at the end of post:
- Download and extract iRecoveryWin32.zip on your desktop.
- Run "libusb-win32-filter-bin-0.1.12.1.exe" and keep the file on your desktop.
- Turn of your iPhone completely and hold down home and power button for 10 seconds.
- After 10 seconds, release the power button but keep pressing the home button until your PC produces a beep sound or you see the following message on your computer screen
- Click OK. Now hold Option Shift+Restore button in iTunes and browse for 3.1.2 firmware.
- You may see a popup with error code 1015 during the restore process, just ignore it.
- Now click OK to close the popup. Also close the iTunes.
- Open command prompt and type the following command at the console
- Wait a few seconds and then disconnect your iPhone from the cable.
- Restart your phone by pressing Home + Power buttons simultaneously.
- When Apple logo appears on your screen, connect the phone to PC via cable and proceed normally with the activation process.
- The downgrade is complete, enjoy again 3.1.3.


First navigate to your desktop where iRecovery.exe has been placed by using the following command.
cd Desktop
iRecovery.exe -s setenv auto-boot true saveenv fsboot exit
Update1: Downgrade iOS 4.1 to iOS 4.0 / 4.0.1 on Windows & Mac
Update2: Downgrade iOS 4.1 / 4.0 / 4.0.1 to iPhone OS 3.1.3 / 3.1.2 on Windows & Mac
Download Links
Download iTunes 9.2 for Windows & Mac
Download iPhone OS 3.1.3
Download iRecovery v1.3 for Mac | Mirror
Download LibUSB for Mac | Mirror
Download iRecovery libusb 1.3 + for Windows | Mirror
Download LibUSB fix for Windows 7 and Vista users | Mirror





