From Jailbreak to Jailbreak

imageA few days ago I decided to update my iPhone which was still running iOS 4.3.1 to iOS 5.0.1. I delayed this update for a while because I had Jailbreaked my iPhone. Unfortunately an update is much more work when you have Jailbreaked because you also have to restore Cydia settings such as the repositories and Cydia installed Apps.

This blog post is not a guide on how to Jailbreak but more a collections of tips to go from a Jailbreak iOS 4.x to iOS 5.01.

If you notice any extra steps while doing your update please send them to me so I can add them to this post.

Backup
Before starting it would be probably be a good idea to create a backup of your device in iTunes. I would also advise to backup your SHSH signatures which you can do using TinyUmbrella. There are lots of guides on how to do this so I will not repeat that here.

Without saving your SHSH signatures you cannot restore to an older iOS version if anything goes wrong!

You may also want to have the IPSW for your current iOS version (preferably the IPSW that you used to do the Jailbreak last time, else you also need the Jailbreak tool for that iOS version).

I used xBackup to create a backup of my Cydia settings, including repositories and Apps that were installed through Cydia. xBackup costs $1.50 (about €1,20) which I found a very reasonable price.

I enabled the Cloud option which stores the backup on a remote server and also opted for backup of App Settings and Icon Layout: IMG_0463
Press Backup… IMG_0464
When it’s finished, the backup is uploaded to “the Cloud” IMG_0465
Optionally pick up the local backup if you want to be extra sure (or create another iTunes Backup) IMG_0466

Update to IOS 5.01
Next step is the actual update to iOS 5.01, note that we do not need to hack the IPSW and restore it, so there’s no need to download the IPSW. Just use iTunes to update to iOS 5.01.

image

You may get a warning indicating there are purchased items on your device that have not yet been transferred to iTunes yet:

image

To resolve this go to your device, right click and select Transfer Purchases:

image

Wait until the Transferring Purchases has finished:

image

iTunes will warn you that the update to iOS 5.0.1 will delete all Apps, don’t worry they should be in your iTunes backup…

image

If you get a backup error, like the screenshot below, you probably have an entry in your hosts file (that was put there by TinyUmbrella) such as “127.0.0.1 gs.apple.com”:

image

The update may take a while…

Jailbreak
After the update has been finished, restore your iTunes backup after which you are ready to Jailbreak again. I did this using Redsn0w for Windows v0.9.10b3. This Jailbreak is Untethered, based on geohot’s limera1n exploit and was created by @pod2g.

Please do consider a donation to pod2g…

The Jailbreak is very easy, just launch Redsn0w, boot into DFU mode and follow the on screen instructions. I will not describe the actual Jailbreak process here.

Restore

When the Jailbreak has finished, open Cydia, then install and launch xBackup.

Go to the Restore Tab and click Download & Restore: IMG_0467
xBackup will first restore the reposiories… IMG_0468
And then re-install your packages: IMG_0469

SNAGHTML14220deThe only application that was not reinstalled by xBackup (by design??) was Installous and it’s components. If you were using Installous previously you will need to reinstall this one manually.

Synchronize Apps with iTunes
Final step is to synchronize your Apps with iTunes to get all your Applications back. If you installed Installous in the previous step then you already have AppSync which is required to synchronize non signed applications with iTunes. If not then first install AppSync for iOS 5.0+.

Good luck!