Builder AU tracked down the first person outside of Apple to get their hands on the inner workings of the iPhone and asked him via e-mail the what, the where and the why of hacking the iPhone.

By day he's your average American teen. Just two weeks out of high school, he saved money from his part-time job fixing computers and waited three hours outside an AT&T store to buy an iPhone. By night, he leads the vanguard of a growing community of iPhone hackers under the name geohot.

Last Tuesday we brought you news that hackers from the full-disclosure mailing list had found root passwords in a system restore image. Over the weekend Jon Lech Johansen, also known as DVD-Jon, managed to activate the non-phone functions without an AT&T account, and in the last 24 hours a community of iPhone hackers running out of the iPhone Dev Wiki (link omitted at the request of the Web site authors due to bandwidth concerns) have become the first to gain an interactive shell into the smartphone.

This evening geohot took some time out from his busy reverse engineering schedule to shed some light on the process:

We already know how to upload files to the phone, move those files around, and run those files.

Builder AU: Now as I understand it, you've got a serial console to the bootloader without having to modify the iPhone hardware. There are hardware modifications to the dock, however. Could you tell me a little bit about the process?

Sure, the serial pinouts are the same as the ones used in the iPod. I stayed up all night taking apart my dock and soldering super-small wires to the pins. With a quick homebrew level converter circuit and a USB-serial converter, the hardware was done. Our group speculated the night before that some software flags would have to be set. Someone sent me some environment variables (debug-uarts) to set and sure enough they enabled serial.

Is this procedure within the reach of the average enthusiast?

The enthusiast with money can buy breakout boards for the iPod dock connector and pre-built level converter circuits. Modifying the dock the way I did was very difficult. The soldering was near impossible and I solder QFP and SSOP by hand.

What does the shell actually get us?

Not as much as you'd think. First of all, it only connects to the bootloader, which doesn't touch user mode. All the "cool" commands, like writing to the radio, give "Permission Denied" errors. The bootloader checks a hardware register to generate that error, and the only way I see around is JTAG. We can't patch the bootloader because it is signed.

What is the significance of the radio module? What does it control?

The radio module controls the subsidy lock, which is the lock in to one carrier -- in this case AT&T. Access to the radio is what we need to unlock the phone to use other carriers.

What's the plan for hacking the iPhone?

Right now we are trying to compile a working toolchain. The iPhone is the only device to use Mach-O and ARM. Some things support Mach-O i386. Some things support ELF ARM. We need to merge them together. We already know how to upload files to the phone, move those files around, and run those files. We want to write a program which can send the unlock codes right to the radio.

If you don't have permissions to run commands in the shell, does this get the community any further than the root passwords that were discovered last week?

The root passwords discovered last week are completely useless so far. This shell is to the bootloader, not to user mode where those passwords are stored.

I'd bet its done within two weeks [on third-party applications].

How close are we to getting third-party applications on the iPhone?

Programs ... we're close. Applications involve a good understanding of the framework. I am personally not a Mac coder, so I don't understand everything involved. But I'd bet its done within two weeks.

Does having access to the bootloader get us any closer to allowing the iPhone to work on a non-AT&T network?

Only if we find a way around the permission denied errors.

Are you worried at all that Apple may pursue you for hacking their product? How about DMCA violations?

A law was passed last November to allow the unlocking of cell phones. So on that front we are fine. We have been careful not to post online any dumps of firmware and haven't made any modifications to the MobileDevice framework/dll, so no copyrights have been violated.

What's the latest progress on unlocking the iPhone?

We basically have full filesystem access. I'd really like to get ssh or something similar running. The main thing standing in our way now is the Mach-O ARM toolchain.

What motivates you to do this?

I need a summer project :) And wouldn't I look cool walking around with a T-Mobile iPhone?

Do you think it was a good or a smart idea for Apple not to provide open access the iPhone?

It gave me something to play with :) Although I hope they come forward after this is over and the phone is unlocked with all the APIs.

Anything else you'd like to add?

I'd just like to say I've been working with some incredibly smart people, and they have really taught me a lot. I know this sounds easy, but it took us days of background work to make possible.

Comments

1

mind - 11/07/07

> It gave me something to play with :) Although I hope they come forward after this is over and the phone is unlocked with all the APIs.

oh. youthful wide eyed optimism. it's so beautiful.

apple will never open the iphone on their own. companies have to be dragged kicking and screaming to do what the end user ultimately wants (apple will only release an open phone when something like openmoko with encryption/voip/data sms is everywhere)

» Report offensive content

2

insidar - 11/07/07

It stands to reason that AT

» Report offensive content

3

geagea - 11/07/07

4

Flash Prayer - 11/07/07

Kids are not the same anymore....

» Report offensive content

5

Monk - 11/07/07

Maybe I could get my ringtones to work on the blasted thing!

» Report offensive content

6

Monk - 11/07/07

Maybe I could get my ringtones to work on the blasted thing!

» Report offensive content

7

René - 12/07/07

Suddenly I reminded an old Gate's comment about 'farmers' coming home at night to code... but it will always be about motivation. Great post!, it made me to remember when it wasn't just about the money for me. Let's keep the fun.

» Report offensive content

8

matt - 12/07/07

Who is this mysterious geohot? And what was he doing at harry potter last night? hehe.

» Report offensive content

9

Bigoy - 12/07/07

if only we could go back to the days when technology was 'open' as opposed to locking up every innovation in a patent or copyright. lets see how much money we can make while forcing everyone to drink from this cup and this cup ONLY...let's put the breaks on innovation by locking down technology with patents and suing eveyone that steps on OUR grass..

way to be kid...

» Report offensive content

10

Thomas - 13/07/07

I too agree that it is really a sad testiment to our times when such a great innovative tool like the iPlhone - its purpose is primarily a phone isn't it - good gracious.. I thought the point of a PHONE was to allow people to use it ... not use it ONLY IF YOU ARE ON OUR NETWORK .. what in the world has that have to do with a phone, in the pure technology usage sense of a phone, the point here is that when making a phone I thought the motivation for doing that is to SELL PHONES ... do you know how many phones they WOULD HAVE SOLD IF you could use the POHONE on any network ... sad sad sad - signed a disappointed Sprint customer

» Report offensive content

11

Thomas - 13/07/07

I too agree that it is really a sad testiment to our times when such a great innovative tool like the iPlhone - its purpose is primarily a phone isn't it - good gracious.. I thought the point of a PHONE was to allow people to use it ... not use it ONLY IF YOU ARE ON OUR NETWORK .. what in the world has that have to do with a phone, in the pure technology usage sense of a phone, the point here is that when making a phone I thought the motivation for doing that is to SELL PHONES ... do you know how many phones they WOULD HAVE SOLD IF you could use the POHONE on any network ... sad sad sad - signed a disappointed Sprint customer

» Report offensive content

12

gregor42 - 14/07/07

Either your or Wikipedia needs to do some fact checking.

Your opening sentence: "By day he's your average American teen. Just two weeks out of high school, he saved money from his part-time job fixing computers and waited three hours outside an AT&T store to buy an iPhone."

Wikipedia: "Jon Lech Johansen (born November 18, 1983 in Harstad, Norway), also known as DVD Jon, is a Norwegian [...] Jon is a self-trained software engineer, who quit high school at the first year to spend more time with the DeCSS case. He moved to the United States and worked as a software engineer in October 2005 until November 2006, and has now moved back to Norway for unknown reasons."

These do not agree. Which one is correct? Is it your fact checking failure or theirs?

» Report offensive content

13

mike - 14/07/07

Gegor42 Geohot is NOT the same person as DVD Jon. Maybe the article could have distinguished these two people a little better when they wrote about them both. The wiki facts on Jon are correct.

» Report offensive content

14

labruin - 14/07/07

Thomas... Uh, if you're a Sprint customer which is CDMA cellular over 1900mhz, and the iPhone is a GSM phone running at 850mhz on AT&T's network, how is it that you come to the logic that your world has been ruined by the lack of an iPhone from your cellular provider when it couldn't possibly work? The iPhone is technologically incompatible with Sprint... because Sprint isn't a GSM carrier. It's like complaining that VHS video tapes can't be played in a DVD player and declaring that DVD manufacturer's would 'make so much more money if they would just play video tapes too'.

» Report offensive content

15

Ryan - 06/08/07

Apple disappointed me really bad when it decided to carrier lock its iPhones. As many would agree and a lot of my friends have agreed, Apple is being unfair to their loyal ASIAN customers, by hyping iPhone like mad, and finally only allowing US customers access to this phone. I feel like my loyalty to the brand and computing option which is Apple and OSX have gone to waste, Apple did not consider all their customers, mainly the ones outside the US. Some of my friends have been upset enough to swear off Apple altogether, because they have filled their house with Apple products, and remained loyal no matter what, they can't possible have access to the iPhone where all their AMERICAN friends have. Its upsetting.

» Report offensive content

16

Ryan - 06/08/07

Finally, I just want to say that if Apple does not consider the Asian customers or just customers outside of US at all, eventually we will not even care about Apple anymore, and our next move will be to turn to Windows and turn our unwilling head back to Microsoft, as they've been pretty consistent in delivering all their products worldwide. Apple user out. Very close to saying good bye to Apple.

» Report offensive content

17

macattack - 18/08/07

A company in the US called International Orders, Inc. sells the iPhone unlocked using the TurboSim card on their website http://www.international-orders.com. They ship internationally FAST. I received my activated and unlocked phone in 2 days !

» Report offensive content

18

jcy - 25/08/07

hahaha, did anyone notice the unintentional comedy in the "related links" section?

-------------------------------------------------------
Related Links
80% of software is no brain work: Ivar Jacobson
"We're halfway there": Sun on Open Source
-------------------------------------------------------

» Report offensive content

Leave a comment

You must read and type the 6 chars within 0..9 and A..F

* indicates mandatory fields.

18

jcy - 25/08/07

hahaha, did anyone notice the unintentional comedy in the "related links" section? ------------------------------------------------------- Related Links 80% of software is no brain work: Ivar ... more

17

macattack - 18/08/07

A company in the US called International Orders, Inc. sells the iPhone unlocked using the TurboSim card on their website http://www.international-orders.com. ... more

16

Ryan - 08/06/07

Finally, I just want to say that if Apple does not consider the Asian customers or just customers outside of US ... more

Log in


Sign up | Forgot your password?

  • Staff Opera's new SDK: Better browsing on the Wii?

    Opera has thrown a little more love at device developers by announcing an updated version of its software development kit on Wednesday at CES. Read more »

    -- posted by Staff

  • Staff 2008: Time to call stumps

    It's another year down but some things never change. That was shown this week as Internet Explorer remained under fire from yet another zero-day exploit. In other news, we set a hard drive on fire and Apple cans its involvement with MacWorld. Read more »

    -- posted by Staff

  • Staff Unlocking Android

    In this week's roundup we take a look at Google's new technology -- Native Client, its Android phone, news from the world of web browsers and more. Read more »

    -- posted by Staff

What's on?