Jailbreak iPhone 3GS on iOS 4.0.2 with PwnageTool [How to Guide]

The unofficial release of PwnageTool for jailbreaking iOS 4.0.2 is now out in the wild. It can jailbreak iPhone 3GS (with old bootrom only) using iOS 4.0.2 custom firmware. There is of course no need to update to iOS 4.0.2 if you have iOS 4.0.1 (jailbroken using JailbreakMe) and PDF Patch installed from Cydia. But in case you have updated to iOS 4.0.2 accidently on your iPhone 3GS (with old bootrom), you can jailbreak it again using this version of PwnageTool for Mac.

iOS 4.0.2 Jailbreak

Oh and if you have saved your SHSH blobs, you may want to check out the guide posted here instead to downgrade your iPhone or iPod touch from iOS 4.0.2 back to iOS 4.0.1 / 4.0 so that you can jailbreak it again with JailbreakMe.

Follow the instructions below to jailbreak iPhone 3GS (old bootrom) on iOS 4.0.2 with PwnageTool.

Step 1: Download and install the latest version of iTunes.

Step 2: Now start iTunes and sync your iPhone with your PC or Mac so that it backs-up all your important data including settings, apps, music, contacts and photos.

Step 3: Download PwnageTool (http://www.megaupload.com/?d=63NSJXYL) and the original iOS 4.0.2 for your version of iPhone (download link given below). Move all these files to your desktop.

Step 4: Start PwnageTool and select your device:

PwnageTool 4

Step 5: PwnageTool will now automatically detect the correct firmware for your device as shown in the screenshot below:

PwnageTool 4.0.2

Step 6: Click on "No" when PwnageTool asks you “Do you have an iPhone contract that would activate normally through iTunes?”:

PwnageTool 3.1.5 Jailbreak (1)

Clicking on “Yes” will update your baseband to the latest version. Click on “Yes” only if you are on an officially supported carrier like AT&T.

Step 7: PwnageTool will now create the custom .ipsw file for your iPhone which will be jailbroken.

PwnageTool 3.1.5 Jailbreak

The following ihaz Success” screen will confirm that the requested .ipsw file has been created successfully.

PwnageTool 3.1.5 Jailbreak

Step 8: Once the .ipsw file has been created, you will now have to extract this .ipsw file to add kernelcache.release.n88 file which is included with the PwnageTool download that you downloaded in Step 3 above.

  • To extract .ipsw file, first rename the extension to .zip from .ipsw and extract this .zip file, as shown in the screenshot below.

iOS 4.0.2 Jailbreak (2)

  • You should now have a new folder named “iPhone2,1_4.0.2_8A400_Custom_Restore”
  • Open this folder and replace kernelcache.release.n88 file in the folder with the one you downloaded in Step 3 above.

iOS 4.0.2 Jailbreak (1)

  • Now you will have to convert this folder back to .zip file again. To do this, select all the files in “iPhone2,1_4.0.2_8A400_Custom_Restore”, right click on one of the file and click on “Compress 6 items” as shown below.

iOS 4.0.2 Jailbreak (3)

  • You should now have a “Archive.zip” file in “iPhone2,1_4.0.2_8A400_Custom_Restore” folder. Simply rename this file to “Archive.ipsw” and you are done!

iOS 4.0.2 Jailbreak (4)

Step 9: You will now have to restore your iPhone to this custom firmware 4.0.2 (Archive.ipsw) file. Start iTunes, click on your phone icon from the sidebar in iTunes. Now press and hold left “alt” button (“Shift” button on Windows) on the keyboard and then click on “Restore” (Not “Update” or “Check for Update”) button in the iTunes and then release the “Shift” button.

This will make iTunes prompt you to select the location for your custom firmware 4.0.2 file. Select the required custom .ipsw file and click on “Open”.

Step 10: Now sit back and enjoy as iTunes does the rest for you. This will involve a series of automated steps. Be patient at this stage and don’t do anything silly. Just wait while iTunes installs the new firmware 4.0.2 on your iPhone. Your iPhone screen at this point will be showing a progress bar indicating installation progress. After the installation is done, iPhone will restart automatically and you should now have a fully jailbroken iPhone running on iOS 4.0.2.

NOTE: If iTunes throws 1004 or 1015 error at you. This is normal, just ignore this error as the firmware has already been successfully installed on the device. But your iPhone at this point will be stuck in Recovery Mode, showing that “Connect to iTunes” screen.

iPhone 4 (2)

To exit your device from Recovery Mode, download this program called TinyUmbrella (Windows / Mac). Run it and the click on “Kick Device Out of Recovery” button. Your device will now restart normally.

iPhone 4 (3)

In case the Cydia icon on the homescreen is in white with no repositories added, simply add http://apt.saurik.com/cydia-3.7 repo in Cydia to get going!

How to: Unlock iOS 4.x (Any Baseband):
Follow the complete step by step guide posted here to unlock iPhone 3GS and iPhone 3G, on iOS 4, on any baseband using Ultrasn0w 1.1-1.

Step 11: Once you are done with the unlocking and jailbreak process. You can now restore all your settings, apps, music, contacts and photos to the newly installed firmware version 4.0.2 by restoring the backup that you made in Step 2 from iTunes.

If you are an iPhone 3G user, you can follow the complete step by step guide posted here to jailbreak your iOS device using Redsn0w, and then unlock it using Ultrasn0w on any baseband (including 05.13.04 and 05.12.01).

Download iTunes 9.2.1 for Windows and Mac OS X
Download iOS 4.0.2 for iPhone 3GS

[Thanks to Lendr33 for the hat tip!]

UPDATE 1 (September 5, 2010): The guide above has been updated. If it didn’t work for you previously, you might like to give another go at it. I have tested it and can confirm that it works on my iPhone 3GS (old bootrom) on iOS 4.0.2.

Disclaimer: Since this is an unofficial release, I wont recommend using it as it may have bugs that in some cases might result in malfunctioning of your iPhone. This guide is for testing & educational purposes only. Follow it on your own risk. I’m not responsible for any loss of important data or malfunctioning of your iPhone.

You may also like to check out:

You can follow me on twitter or join our facebook fanpage to keep yourself updated on all the latest iPhone jailbreaking and unlocking releases.