Tutorial: Jailbreak iOS 4.0.1 on iPhone 3GS with PwnageTool

This jailbreak tutorial is only addressed to iPhone 3GS owners with old bootrom who have installed and can install iOS 3.1.2 on their phone, for the rest there is still no jailbreak solution for iOS 4.0.1. If you have SHSH for iOS 3.1.2 then you can downgrade to iOS 3.1.2 using the tutorial this.

This tutorial ONLY works on iPhone 3GS (ie it doesn't work for iPhone 3G/iPod Touch) and ONLY on Mac OSX.

Step 1

Download the following files to your computer:

modified version of PwnageTool from here;

iOS 4.0.1 by here;

To be able to use this tutorial, you must have iOS 3.1.2 installed on your phone, iTunes 9,2 on your Mac, you must have jailbroken with blackra1n/redsn0w. If you jailbroken with Spirit, then search in Cydia and install the Spirit2pwn program before restoring to this custom ipsw.

Your iPhone 3GS must have an old bootrom, otherwise the process will not work! You can check which bootrom your phone has iDetector.

Step 2

Mount the image with PwnageTool, connect the phone to Mac OSX and open the application.

19335

You will receive a warning message, press OK to continue.

19337

Step 3

Select expert mode from the menu bar.

19338

Step 4

Select the iPhone version for which you are doing the ipsw.

20412

Step 5

Press continue and you will be asked to search the computer for the location where you downloaded the Apple firmware. Press the broswe button and go to the relevant directory. There is a possibility that the firmware will be found automatically if you copy the application to the folder where you downloaded the firmware.

20407

Choose the firmware, then press continue.

Step 6

19343

You will arrive in front of a menu with 5 options that give you the opportunity to customize the firmware. The General option will take you through all the secondary options of PwnageTool, so choose General and press the blue button to continue.

All those who NU have a card of the operator from whom the phone was taken, in order to do the activation you must check the "Activate the phone" option, leave the other 2 options unchecked and if you want you can choose to increase the space allocated to the system partition of the phone, then press the blue button to continue.

19344

The packages settings option will give you the possibility to select .deb files to be installed automatically in the restore process. Click on the Download packages tab, double-click on the desired applications to download them, then select what you downloaded and press the blue button to continue.

19349

You will be brought to a window where only the selected applications will appear, press the blue button to continue.

19350

You will now reach the menu for installing packages, leave Cydia checked and press the blue button to continue.

19351

The Custom Logos Settings option will give you the opportunity to change the boot logos. Press browse to choose the images from your computer, but they must not be larger than 320×480 and must be .png files.

19352

Press the blue button to continue.

Step 7

You will reach the initial page of optuni. To start the process press the build button then the blue button to continue.

19356

Step 8

You will be asked to choose the location where the custom ipsw will be saved, choose it, click and click save to start the process. The process can take up to 10 minutes or more, depending on your computer.

19358

You will be asked to enter your username and system password, which you must specify to continue the process.

You will receive a warning message in which you will be asked if the iPhone has ever been jailbroken. It is best to press No if you do not know or are not sure of the answer.

16236

Step 9

After PwnageTool finishes creating the custom ipsw, it will ask you to turn off the phone. ATTENTION this step is necessary! You must have your phone connected to your computer to continue the process.

19362

Step 10

If you put the phone in DFU Mode, do it ONLY by following the instructions in PwnageTool, otherwise use Recovery Mode to restore.

19363

If the process fails, you will be greeted with a message similar to the one below, what you need to do now is to press Yes, remove the USB cable from the phone, close it, open it again, connect it again to USB and get ready to redo the process.

16239

If you manage to enter the phone in DFU Mode, a message like this will appear:

19366

If you have iTunes open, the following message will appear. If you haven't opened iTunes yet, you can do so.

19368

Step 11

Simultaneously press Alt/Option to select the created custom ipsw and to start the restore process.

19369

After the installation is finished the phone will restart but it will NOT be decoded, to do the decoding you need to install ultrasn0w from Cydia, you have a tutorial here.

If you followed the steps carefully then you should now have a jailbroken and unlocked phone on iOS 4.0.1.

MuscleNerd warns iPhone 3GS owners not to use ultrasn0w on iOS 4.0.1 yet because there is a problem with mobilesubstrate that will be resolved soon.

If after restoring you notice that Cydia does not work properly: it does not display the sources, the icon is white, then add the source http://apt.saurik.com/cydia-3.7 then reopen the application and everything should work correctly.