Sometimes you may have some problems or discomfort with your iPhone 3G/3GS or 4 iOS 4.1 firmware and you may wish to downgrade yourDowngrade iPhone 4.1 device to iOS 4.0.2, 4.0.1, 4, 3.1.3 or lower. Here are the instructions to downgrade iPhone 4.1 to iOS 4/4.0.1/4.0.2 or 3.x.x firmware.

NOTE : This guide is only for those who have saved SHSH to the Cydia Server.

1. Download the firmware file to which you want to downgrade your iPhone to, that is, if you want to downgrade iPhone 4.1 to iOS 4, then download iOS 4 firmware.

2. The second step is to edit the Hosts file.
In Windows

• Open Notepad with administrator privileges. Right click in its icon and choose ” Open as Administrator “.

• Navigate to C:/Windows/System32/drivers/etc in Notepad and open the Hosts file.

• Add ” 74.208.10.249 gs.apple.com ” at the end of the file and save the file.
In Mac OS X

• Navigate to Go->Go to Folder and enter ” /etc “.

• Using TextEdit, open up the Hosts file.

• Add ” 74.208.10.249 gs.apple.com ” at the and of the document, choose Save As, uncheck ” If no extension is provide, use .txt ” and save the file on the desktop.

• Replace the original Hosts file with the new one.

3. Now connect your iPhone to the computer.

4. Select your device in iTunes.

5. Now enter into recovery mode by pressing the power and home buttons for 10 seconds and then release the power button but keep holding the home button until iTunes recognize your device in recovery mode.

6. Now hold the Shift Key in Windows or the Option Key in Mac OS X and click on the Restore button.

7. Browse to the required iOS 4 or 4.0.1 or 4.0.2 or 3.1.3 firmware file and select it to downgrade your iPhone to that.

8. Now exit recovery mode ( For this, you could use a software called ” Recboot ”) and reboot your iPhone.

That’s it! Now your iPhone 3G/3GS/4 will be downgraded to the required firmware.