It’s iOS 4.0 day today as I’m typing this blog. If you’re on an official iPhone OS 3.1.3 firmware, all you need to do to get iOS 4.0 loaded is to just wait for iTunes to prompt for the a new iPhone software update and just update it. If you can’t wait for the auto-checking, just click the Check for update button on iTunes over the next few hours.

But what if you’re currently have a jailbroken iPhone 3GS. Specifically, an iPhone 3GS on iPhone OS 3.1.3 that was jailbroken using the Spirit jailbreak. So what now? Ok. Jailbreaking isn’t just about installing ‘modified’ apps. There are legit reasons for jailbreaking the iPhone too as I’ve blogged here in this post.

If you’re anything like me, you’d also be eager to get the latest iOS 4.0 firmware installed, jailbroken or not. But, should you also wait for the upgrade to come through iTunes? What would happen then? Or should you restore instead before the upgrade? That was the exact same questions I had.

Here’s what you need to do to upgrade from a Spirit jailbroken iPhone OS 3.1.3 to the latest iOS 4.0.

Firstly, you need to get your hands on the latest firmware file. Just run a Google search for iOS 4 GM and you should be able to find those firmware files to download. OK. Here’s the link where you’ll find the downloads. The 3GS ipsw file should be named iPhone2,1_4.0_8A293_Restore.ipsw.

Next, update iTunes to version 9.2, either by using the Apple’s software update or by downloading and installing the latest version Apple’s website. Once installed. plug the iPhone to your machine using the USB cable and perform a backup of your phone. Very important step if you want your latest settings and data to be available again on your iOS 4.0 iPhone. :)

To do so, just right-click on the iPhone listed under Devices in iTunes and select Back Up.

Once the backup is done, next is to restore your phone to the ipsw file you’ve just downloaded.

In case you’re also wondering how you’re going to do just that, head over to the summary tab of your iPhone on iTunes. Then hold the Shift key if you’re on Windows or Option key if you’re on a Mac and click “restore” at the same time. Then, a file selector dialog box will pop-up. Just browse to where you’ve saved the ipsw file and select it.

You should see your iPhone going through the Restore mode, so just sit tight and let iTunes and your iPhone do it’s job of restoring itself “back” to iOS 4.0.

Just make sure your machine does not sleep right in the middle of the update, so make sure you’ve set the power settings to ensure it don’t sleep after a period of inactivity, especially so if you’re using default power settings on a notebook or MacBook.

So once it completes restoring the OS to iOS 4.0, iTunes should immediately ask you if you want to setup the iPhone as a new device OR to restore a previous backup. I’d recommend you to restore your latest backup if you want to retain all your previous settings and data into your new iOS 4.0 iPhone.

And voila, that’s pretty much it!

And remember, your iPhone is no longer jailbroken. So if you do have any of the ‘modified’ apps remains in your iTunes to sync, I’d suggest you to remove them from iTunes as it would not transfer over anymore.

That’s it.

And my verdict of the iOS 4.0? HIGHLY RECOMMENDED! It’s so responsive, it’s worth the trouble to get it restored back on the official iOS 4.0 firmware and live without all those cool Cydia apps, for now. :)

Once you’re on the legit firmwares, you can go ahead to just update the firmware directly off iTunes whenever a new version of iOS is released. But if the iOS downloads is slow for whatever reason on iTunes, here’s a tip on how you can manually download the firmware and avoid using the restore method to get the new iOS into your iPhone. Read what that all about here!

Please Google +1 my article if you think it was useful. Thanks!