Chapter 1. Breaking Into and Setting Up the iPhone
The iPhone is a closed device. We can’t say this enough. Up to and including version 2.x of the iPhone software, users have been locked out of the operating system and developers have been exiled to a tiny sandbox running in user land. This doesn’t seem to deter a majority of iPhone consumers from breaking free from these chains, but does make it more difficult to get started. Before hacking of any kind can take place, the iPhone must be broken free from its jail—literally.
The iPhone’s interfacing with software, such as iTunes, is run in a chrooted environment, where no user or desktop application—even iTunes—can see into the operating system; this is commonly known in the Unix world as a chroot jail. This jail (and the fact that you can’t simply yank out the hard drive) is the only thing standing in the way of the iPhone functioning as a complete, portable Mac OS X computer. Fortunately, many free tools have been written to make the jailbreaking process simple.
In this chapter, you’ll stage your iPhone for software development
in such a way that you’ll be able to access files outside this jail, and
your applications will be able to run outside of their restrictive
sandbox. This includes breaking free from the chroot jail (called
jailbreaking) so you can access the filesystem.
You’ll also install a BSD Unix world, which is a set of common Unix
binaries, such as ls and cp. This allows you to navigate and manage the iPhone’s operating ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access