How To Downgrade iOS 4.1 To iOS 4.0.x iPhone 4, 3GS, 3G
Have you fallen prey to iTunes’ innocent looking update message and unknowingly upgraded to iOS 4.1 ? Don’t worry, as there is a way to downgrade toiOS 4.0.1 (which you can jailbreak using JailbreakMe 2.0), oriOS 4.0.2 (redsn0w 0.9.5b5-5 can jailbreak iPhone 3G, PwnageTool for iPhone 3GS), or the iOS 4 final version. But wait… have you saved your SHSH blobs earlier?
Yes, you can only downgrade iOS 4.1 if you have already saved your SHSH blobs (ECID SHSH) either locally (using TinyUmbrella) or on Cydia’s servers. If you haven’t yet updated your firmware and are just looking for more information, then follow this guide to save your SHSH blobs and also preserve unlock baseband before you upgrade to iOS 4.1.
For the rest of you who have already updated your firmware here is how you can downgrade it to iOS 4.0.1 or any other earlier version (iOS 4.0.2, iOS 4, iOS 3.1.3/3.1.2) provided you have SHSH blobs saved for that firmware on your iPhone 4, iPhone 3GS, or 3G.
1. Download iOS 4.0.x firmware IPSW file to your Computer.
2. Edit and save your system’s hosts file, adding the following line:
74.208.10.249 gs.apple.com
Here is how you can
Edit And Save Hosts File In Windows
Edit And Save Hosts File In Mac OSX
What you are in fact doing by changing the hosts file is to trick iTunes into believing that it is communicating with Apple’s servers, while it’s actually talking to Saurik’s server, where your SHSH blobs are saved.
3. Now restore your device to the older firmware you downloaded in step 1. For doing this, open iTunes, and click SHIFT (ALT for OSX) + Restore.
4. Browse and select the IPSW file when prompted by iTunes. Let iTunes restore your iPhone to the selected iOS 4.0.x firmware.
5. After installation, you may come across errors 1015, 1013, or 1011 unable to get out of recovery errors.
6. Here is how you can exit recovery mode using RecBoot. Or you could also use TinyUmbrella’s Kick Device Out Of Recovery’.
That’s it. When your iPhone restarts, you will find it on an older firmware. You can now go ahead and jailbreak it, even unlock it with Ultrasn0w 1.1-1 if you have already preserved baseband 1.59.00.
Download Links
Download iOS
Download iOS 4.0.2
Download iOS 4
Download iTunes 10
Download RecBoot
Download TinyUmbrella
Update 1 – Jailbreak iOS 4.1 iPhone 3G
You can now jailbreak iPhone 3G on iOS 4.1 using Redsn0w 0.9.6 Beta or use PwnageTool (unofficial).
Update 2 – Jailbreak iOS 4.1 iPhone 4, iPhone 3GS
With the release of GreenPois0n and Limera1n jailbreak tools you can jailbreak iPhone 4/3GS on ioS 4.1.
Jailbreak iPhone 4, 3GS on iOS 4.1 using GreenPois0n
Jailbreak iPhone 4, 3GS iOS 4.1 using Limera1n

SBSettings Alternative for iPhone 4S/iPad 2, No Jailbreak Required
How to Unlock iPhone 4S on AT&T without Jailbreaking
Save SHSH Blobs of iOS 5.0.1 for iPhone 4S with TinyUmbrella
Gmail App for iPhone, iPad, iPod Touch Available for Download
Enable FaceTime over 3G in iOS 5 [Jailbreak Tweak]
iTunes 10.5.1 for Windows, Mac OS X [Direct Download Links]
Jailbreak iOS 5.0.1 with Redsn0w 0.9.9b8