How To: Jailbreak (Almost) Any iPhone, iPod Touch or iPad

Lincoln

New Member
Gold
Aug 11, 2007
6,100
4
0
General Info: The What & The Why of Jailbreaking



So, you've heard about jailbreaking, and it sounds intriguing. And dangerous. (But mostly just intriguing.) Here's how to hack your iPhone, iPod Touch or iPad—yes, iPad—into an unrestricted, freshly empowered mega-machine.

In buying an iProduct, you're accepting that its fate will be dictated by Apple. They control what kind of apps you install on your device, which of the hardware functions you can exploit to their full potential, and which carrier you can use your iPhone with. They've loosened up on at least one of those fronts in the last year or so, expanding the types of apps available in the App Store, but many—screw that, most—of the same restrictions still apply. Want to install an app that Apple hasn't explicitly approved? Sorry. Want to use an app over 3G that's been designated for Wi-Fi? Nope. Want to change your apps' icons? Install system-wide gestures? Record video on iPhone 3G? No. Such. Luck.

Enter jailbreaking. In technical terms, to jailbreak is to enable a device to run code, meaning programs or system modifications, that hasn't been sanctioned by Apple. Its roots reach back to a time when there were no apps for iPhone OS, and a clever group of hackers zeroed in on some exploits gave people their first way to install apps on their devices, by way of an underground App Store called Installer. It used to be that you could hack your device simply by visiting a webpage. That was two years ago. Since then, the iPhone and iPod Touch have been given a legit App Store, Apple has closed one security hole after another, and jailbreaking has become alternately more and less difficult, depending which device and software version you have.

Recently, a Windows and Mac tool called Spirit was released to the world. It's simple, relatively safe, and, at the time of it's release, worked on all devices. Every iPod Touch could be jailbroken to run custom apps. Every iPhone, too. Even the brand new iPad could be hacked. Unfortunately, Spirit is no longer universal. Different combinations - iPhone, iOS 4.0, iTunes 9.2, etc. - have broken the tool. However, there are other tools out there as well, so only a small percentage of users will be unable to jailbreak. Find out what group you're in below. So.. theming, data tethering (sans-AT&T), console emulation, secret settings, and much more: With jailbreak, your iThing is truly yours.



How To Jailbreak

Three iDevices exist; the iPhone, the iPod touch, and the iPad. There are four generations of iPhone, three of iPod touch, just one of iPad. There are numerous versions of device software, the same applying with basebands and bootloaders. (You don't need to understand those terms.) As such, there are more than 50 combinations of these things that you might have. This, as you probably guessed, makes it difficult for you to understand what jailbreak to use, and for me to link to all the right guides. There's just too much to fit in this post. Thankfully, there's a website called Jailbreak Matrix that is esentially a giant chart pointing you in the right direction. The site is located here - take a look. It's quite useful. If there's a jailbreak for your combination, it'll read "Yes" under "jailbreak options", and that "yes" will be blue - click on it, and you'll be taken to the proper guide. After the dity work is done, head back for advice on what to install after the jailbreak, and a Q&A in case things go bad.

Post-Jailbreak

When you restart your device, you'll see a new icon on your homescreen, called Cydia. Open it up. This is your new App Store. Don't worry, the regular App Store still works. Now you've just got another one.



Cydia will look a bit different on the iPad and iPhone or iPod Touch, but will contain most of the same software.



The first thing you need to do, though, is click the button that says, "Make my life easier, thanks!"

This will back up your device activation profile (called an SHSH blob) to remote servers, which ensures that you won't lose the ability to jailbreak if you accidentally upgrade your device device software in the future. More on that later.

Regarding Unlocking

Traditionally, unlocking (opening your phone to use with different carriers) and jailbreaking have fallen to the same tools. Since unlocking has become more difficult with later firmwares, the tools have grown apart. If you want to unlock, though, there may be hope.

I've never unlocked and know very little about it. However, the same website described above will help you out. Check out Jailbreak Matrix.

Anyway, that's it! It's time to explore Cydia.



Special thanks to Saurik, the man behind Cydia, and the indefatigable Comex, for discovering the first userland jailbreak in a loooooooong time. Awesome work, guys. Also, thanks to Gizmodo's John Herrman - many parts of this guide (in fact, the majority of it) came from John's original posted here on Giz.
 
  • Like
Reactions: lui

patrickj

Genius
Gold
Sep 2, 2007
6,221
407
83
Austin, Tx
ipadinsight.com
This is very good stuff, and is what we need more of at EIC. I reckon there should be a Guides, or How-To's, or both, section that entries like this should live in.

Some suggested amendments for your consideration:

Probably worth explaining the difference between unlocked and jailbroken in this doc, as many new users confuse the two terms.

Where you mention the warranty being voided when hacked, it may be worth stating that that is *if* you are unable to restore cleanly and prevent Apple from realizing you hacked.

On basic jailbreak definition part, it should say that it allows access to areas of the file system which Apple has not granted, which in turn lets us install 3rd party apps.

Definition of SSH = a secure method of remote access to systems. (In our case it usually involves file transfers, but doesn't have to.)

Firmware is generally an interface between hardware and software layers it has to interact with. With the iPhone, the term is almost interchangeable with 'operating system'.

Pwnage - is safer largely because it allows restore of JBed firmware via iTunes.
 

Lincoln

New Member
Gold
Aug 11, 2007
6,100
4
0
This is very good stuff, and is what we need more of at EIC. I reckon there should be a Guides, or How-To's, or both, section that entries like this should live in.

Some suggested amendments for your consideration:

Probably worth explaining the difference between unlocked and jailbroken in this doc, as many new users confuse the two terms.

Where you mention the warranty being voided when hacked, it may be worth stating that that is *if* you are unable to restore cleanly and prevent Apple from realizing you hacked.

On basic jailbreak definition part, it should say that it allows access to areas of the file system which Apple has not granted, which in turn lets us install 3rd party apps.

Definition of SSH = a secure method of remote access to systems. (In our case it usually involves file transfers, but doesn't have to.)

Firmware is generally an interface between hardware and software layers it has to interact with. With the iPhone, the term is almost interchangeable with 'operating system'.

Pwnage - is safer largely because it allows restore of JBed firmware via iTunes.
Edited. Thanks.

By the way - this is almost exactly 10,000 characters. I had to remove several words to add in what you suggested.
 

patrickj

Genius
Gold
Sep 2, 2007
6,221
407
83
Austin, Tx
ipadinsight.com
Cool. Sorry - meant to mention this in my first reply but forgot - have now mentioned in another thread that I think your post could do with being broken up into several, each covering a very specific topic.

This one should maybe end after defining jailbreak. Then do separate ones for: Essential Apps To Install After Jailbreak, Connecting via SSH, iPhone Themes How-To etc.

Two advantages to this - lazy readers have less to read through on each specific topic, and it lets you use more meaningful and descriptive post titles, so that at a glance people can find relevant things more easily just by their post title ...
 

aaronsiphone

New Member
Bronze
Dec 28, 2007
297
0
0
Bravo.....uve talked me into jailbreaking my phone now with your swarve langauge! Oh hold on I'm already jailbroken...good read tho!
 

Lincoln

New Member
Gold
Aug 11, 2007
6,100
4
0
Cool. Sorry - meant to mention this in my first reply but forgot - have now mentioned in another thread that I think your post could do with being broken up into several, each covering a very specific topic.

This one should maybe end after defining jailbreak. Then do separate ones for: Essential Apps To Install After Jailbreak, Connecting via SSH, iPhone Themes How-To etc.

Two advantages to this - lazy readers have less to read through on each specific topic, and it lets you use more meaningful and descriptive post titles, so that at a glance people can find relevant things more easily just by their post title ...
But then I would have to have all of the comments above the be deleted. Otherwise it would look rather ugly.

- John
 

Gundam01

New Member
Jan 18, 2008
19
0
0
Can't connect to wifi...

Hi. I just re-unlocked my brand new phone and now I'm trying to install apps into it. The problem is that it can't seem to find a host. Does my phone have to be activated with a working sim card and all? I tried hooking up via wifi but everytime I do, it can't seem to recognize the password eventhough I changed my wireless modem's password twice just so I can hook up to it. Are there apps that I can install just by using the usb cable? Also, where do I get a copy of Spring Board (or is it summer board now) and NES apps? Much obliged...
 

Lincoln

New Member
Gold
Aug 11, 2007
6,100
4
0
Hi. I just re-unlocked my brand new phone and now I'm trying to install apps into it. The problem is that it can't seem to find a host. Does my phone have to be activated with a working sim card and all? I tried hooking up via wifi but everytime I do, it can't seem to recognize the password eventhough I changed my wireless modem's password twice just so I can hook up to it. Are there apps that I can install just by using the usb cable? Also, where do I get a copy of Spring Board (or is it summer board now) and NES apps? Much obliged...
As far as your Wi-Fi issues goes, see if this article form Apple offers any assistance.

Applications from Installer do not require Wi-Fi to be installed. They can be installed over an EDGE connection. Also, if you have an iPhone application on your computer that you wish to put on your phone, you can place it on the phone via SSH, which is explained above.

SummerBaord is in Installer. After you have installed Community Sources, look in 'All Packages' and find the package named 'SummerBoard'. Install it and then reboot.

NES.app can be installed form installer. ROMs for the application can be found and are available for download all over the internet.

- John
 

patrickj

Genius
Gold
Sep 2, 2007
6,221
407
83
Austin, Tx
ipadinsight.com
But then I would have to have all of the comments above the be deleted. Otherwise it would look rather ugly.

- John
Sorry, I don't follow the looking ugly part - how do you mean? In any case, I think we all know a lot of readers are lazy and want quick answers - breaking separate topics out into separate posts, so you can spot the one that interests you much more quickly, would be very helpful ...
 

Lincoln

New Member
Gold
Aug 11, 2007
6,100
4
0
Well, if I had the jailbreaking definition in the first post, and then he rest starting on the second page, that wouldn't look to great. Plus it would confuse some people.

- John
 

patrickj

Genius
Gold
Sep 2, 2007
6,221
407
83
Austin, Tx
ipadinsight.com
Well, if I had the jailbreaking definition in the first post, and then he rest starting on the second page, that wouldn't look to great. Plus it would confuse some people.

- John
OK, now I get it - and that is true. My thought was more that each topic area should be broken off and then stickied as well - if possible in a new 'Guides' or How-To's section. That way, there is a section with a more obvious name to look in, and posts with more obvious titles for users to pick up on ...
 

davis5050

Member
Bronze
Aug 18, 2007
192
0
16
Disclaimer:

Jailbreaking, along with unlocking, is hacking, and is in no way supported by Apple. Apple will refuse to offer any sort of service on an iPhone that has been modified in any way, should they be able to tell that it has been modified. Hacking the iPhone voids the warranty that comes with the phone. While most hacking-induced issues can be fixed by either you or somebody else on forums like this, there is a possibility that your iPhone will become 'bricked', or permanently inoperable.
_____________________

Definitions:

Jailbreak - jailbreaking is a process that allows your iPhone to run unofficial third-party applications. It grants the user access to the areas of the filesystem that are by default not accessible. The process itself is extremely easy and can be performed in a couple of different ways. Once the process is complete, and additional icon will appear on the iPhone's home screen: Installer. This is the application that installs all others, and gives you access to everything the jailbreaking community has to offer.

Unlocking - Unlocking is an entirely different process from jailbreaking, however it does require that your iPhone is jailbroken. The result of unlocking is allowing your iPhone to operate on a carrier other than the one it is locked to. In the U.S., the iPhone is locked to AT&T. If you unlocked the iPhone in the U.S, you would most likely choose to have it operate with T-Mobile.

SSH - SSH is a means of transferring data, or files, between to devices. In the case of the iPhone, SSH can be installed by installing OpenSSH in installer, and accessing your iPhone via a SSH client on your computer. This will gives you access to your iPhone's drive.

Should you be using a Mac, use either Cyberduck or Fugu as your client.
If you are using a PC, use WinSCP.

Firmware - Firmware is generally an interface between hardware and software layers it has to interact with. With the iPhone, the term is almost interchangeable with 'operating system'. Firmware updates can add new features to a device, improve it's stability, and prevent hacking, which is why it is important to pay attention to firmware when it comes to jailbreaking.

The iPhone firmware versions:
1.0.0 - the original firmware shipped with the iPhone.
1.0.1 & 1.0.2 - bug fixes
1.1.1 - adds Wi-Fi iTunes store, results upon double-clicking home button, bug fixes, stability improvement, and the TIFF exploit, which provided the easiest way to jailbreak - via the internet.
1.1.2 - bug fixes, stability improvement, and TIFF exploit patch.
1.1.3 - adds ability to move icons on home screen, location feature in Google Maps, gift card redemption in iTunes, chapters in movies, and minor fixes. Also changed the default user from root to mobile.
1.1.4 - bug fixes

______________

How to jailbreak your iPhone:

The method that you jailbreak with may depend on what firmware your iPhone is running and what computer system you use.

For all firmware versions and Mac or PC:

Currently, Pwnage is the number one way to jailbreak. Not only does Pwnage jailbreak the iPhone, it also modifies it so that it can be restored with custom IPSW (firmware) files. Pwnage is safer largely because it allows restore of modified firmware via iTunes.

Pwnage - for Mac
WinPwn - for PC

Other methods:
ZiPhone - Mac & PC, all firmware versions
iLiberty+ - Mac & PC, all firmware versions
iDemocracy 3 - Mac & PC, all firmware versions - This is my program of choice.

_____________________

What you should install after jailbreaking:

BSD Subsystem - Unix tools for the iPhone. This will increase the overall stability of the iPhone/applications, and is required for some applciations to run.

Community Sources - Adds sources (websites where the applications in installer come from) to Installer that are trusted and offer several useful applications.

OpenSSH - Enables SSH on the iPhone. For the definition of SSH, see above, and for instructions on how to use it, see below.

SummerBoard - On 1.1.2 and below, allows you to theme your iPhone and use additional pages on the Springboard. On 1.1.3 +, allows you to theme your iPhone. (Pages on the Springboard are enabled by Apple in versions 1.13 and up.)

_____________________

How-To's

Connecting to your iPhone via SSH:

First make sure that your iPhone is connected to the same wireless network as the computer you wish to connect to the iPhone with.

1) Open up your SSH client of choice, and open a new connection. In 'Server' or 'IP Address' you will need to input your iPhone's IP. To determine this:
• Go into Settings > WiFi.
• Find your wireless network, and tap the blue arrow next to it.
• In the 'IP' field, look at the numbers displayed. This is your IP.
Now input the IP Address into the server field in your SSH client.

2) If prompted, select 'SSH' as your connection type, or set the port to 22.

3) In the 'Username' field, input the word root.

4) In the 'Password' field, input the word alpine.


Theming your iPhone:

SummerBoard, an extension to the Springboard, allows you to use themes on your iPhone. Themes can change application's icons, the dock icon, the menubar icon, and even allow you to have a wallpaper behind your icons.

Using themes in Installer:

There are several themes available for download in Installer. Once you have downloaded SummerBoard, you should have rebooted (turn off and on) your iPhone. An application named SMBPrefs will then appear on the Springboard. Any themes downloaded from Installer can be selected here.

Making your own theme:

A theme is simply a folder residing in this directory:
In 1.1.2 and below: /var/root/Library/SummerBoard/Themes
In 1.1.3 and above: /var/mobile/Library/SummerBoard/Themes

Inside this folder are images such as dock.png (the dock icon), wallpaper.png (the wallpaper behind the icons), menubar.png (the bar at the top of the screen), and so on. Inside the theme's folder is another folder, entitled icons. Here resides the icons, such as iPod.png, Installer.png, Sketches.png, etc.

These folders are also recognized as themes inside SMBPrefs.

Alternatively, if you don't want to mess with creating folders and such, then try using ThemeBuilder from Installer.

____________________

Troubleshooting:

Problem: My iPhone has no sound after jailbreaking.
Answer: Try resetting all settings (Settings > General > Reset > Reset all Settings), and then Restoring.

Problem: Mail refuses to work.
Answer: Download the Mailfix from Installer.

Problem: Downloaded themes do not show up.
Answer: Download the theme fix from Installer.

Problem: Installer gives me a 'Package download failed' error.
Answer: Reinstall Community Sources.

Problem: Installer gives me a 'Main script execution failed' error.
Answer: Use this fix. (Works with 1.1.4 as well)

Problem: YouTube does not work.
Answer: Download the YouTube fix from Installer.

Question: Will jailbreaking 'unlock' my iPhone?
Answer: If you do not wish to unlock, do not check the checkbox for unlocking and activating in your jailbreaking application.

Problem: iTunes and/or my computer will not recognize my iPhone.
Answer: Solutions for Mac Solutions for PC

Question: I jailbroke, and I don't like it. How do I get back?
Answer: Restoring in iTunes will wipe your iPhone of most everything done with the jailbreaking process. However, if you synced your iPhone since you jailbroke, your backup will have traces of the jailbreak in it. To delete it, go into iTunes Preferences, click the iPhone pane, find your backup, and press Delete.

Question: Does the process and anything it require extensive knowledge of computers?
Answer: No. The jailbreaking process is completely automated, and unless you want it to, the experience of a jailbroken iPhone does not have to involve fancy things such as the command line; however it can be helpful.

____________________

My recommended applications:

All sources package: This will add several sources to Installer, giving you maximum application selection. Add the source http://ride4.org/shai.xml to do so.


__________________________________

- John
I have read this but am missing the part where it tells you how to take the themes off your pc and put them on your iPhone. I see how to use smb and how to make your own themes but I need to no how to get d/l themes onto my phone.
 

freakydeaky dutch bastard

New Member
Silver
Dec 10, 2007
710
0
0
blacked out
I have read this but am missing the part where it tells you how to take the themes off your pc and put them on your iPhone. I see how to use smb and how to make your own themes but I need to no how to get d/l themes onto my phone.
The how to is there. As John related, you'll need a SSH client to transfer files, like themes, to the phone. Just follow the path in "Make your own theme" portion of the guide for installing.

If downloading themes from installer is what your talking about, that's pretty straight forward. Just go to the Themes/Summerboard directory in installer start downloading.
 

davis5050

Member
Bronze
Aug 18, 2007
192
0
16
I went to iPhoneschool.com and they had a bunch of themes that you download to your pc. I picked two but i need to know how to get them onto my phone. I'm not very good with the ssh thing so I was looking for directions.
 

chazm

Contributor
Silver
May 1, 2008
729
40
28
So WinSCP is the ssh? I downloaded the file on my comp and I don't see the files i need to drop. I am really confused, is it a FTP?