Mac news from outside the reality distortion field
Type Size  -  +
October 4, 2007, 10:10 am

How Apple “Bricked” the iPhone

You Have Been WarnedMuch has been written about why Apple (AAPL) issued software update 1.1.1, which wreaked havoc with untold numbers of iPhones, but not much about how they did it.

It’s not an easy riddle to untangle. The update seems to have affected different iPhones in different ways. Although there are plenty of stories about unlocked phones being “bricked” by the update, there are anecdotal reports of unlocked phones that worked just fine under 1.1.1 — albeit only with AT&T’s (T) service, not T-Mobile’s or any other carrier’s. Some phones modified by third-party software were also broken by the update; others lost their unapproved applications but were otherwise unaffected. Even some virgin, unmodified phones were rendered inoperable, for reasons that remain mysterious.

As Erica Sadun of The Unofficial Apple Weblog (tuaw.com) puts it: “the transition from working iPhone to brick seems to be a completely random process.”

Part of the problem is that the firmware that launches the iPhone is as complicated as a tropical ecosystem, subject to innumerable variables. Rainer Brockerhoff, a Brazilian programmer who hosts a site called Solipsism Gradient, has written a description of the device’s start-up routine that gives you a feel for the intricacies involved. In the iPhone, he writes …

… you have a complex system of at least 3 processors interacting, each one with a boot ROM, two with flash memory containing state information. Powering up such a beast is a complex dance of each one waking up, testing its peripherals, checking its own state, then trying to talk to each other, then communicating to bring the entire system into a working state.

Consider, now, the software update process. It assumes that the iPhone’s various processors and firmware(s) are in one of the known states … If this cooperation is disrupted, the update may not begin — leading to an error message — or, worse, it may begin but not conclude properly. At this point, one or more of the iPhones processors may try to enter a recovery routine, either wiping the flash memories or to reinitialize them to a known state. No doubt this will be successful in most cases … However, the recovery may fail — since the exact circumstances couldn’t be foreseen — or it may be assuming false preconditions (like, a valid AT&T SIM card being present). The system will probably try to recover at successively lower states until falling back to the “can’t think of anything more, take me back to the factory” mode; or it may even lock up and “brick”. (link)

Meanwhile, programmers trying to work with the iPhones that survived software update 1.1.1 find themselves in a whole new world of coding difficulties. Erica Sadun, who in addition to a passel of books has written several (now obsolete) iPhone apps, including Snap (for iPhone screenshots), and VoiceNotes (a voice recorder), puts the changes Apple made in layman’s terms:

“In the good old days,” she explains, “iTunes would send commands to the iPhone and the iPhone would do whatever it said. iTunes might tell the iPhone to mount a disk, copy a file, start an application — all the things you expect a computer to do.”

Now, she says, it’s a one-way street. “iTunes’ dialog has been reduced to ‘hello,’ ‘goodbye’ and ‘please start a restore.’” Requests for data today come only from the iPhone, and those requests are carefully encrypted. “They require a certificate that has to be signed just so with Apple’s encryption key.

“The iPhone has gone from being a very open device to a very locked down one. Its requests are encrypted. Its screen is encrypted. Its brain is encrypted.”

Even programs like Ambrosia’s popular iToner ringtone maker — which played by Apple’s rules and asked nothing more of the device than to put a file in user memory — no longer works under 1.1.1.

In an interview with tuaw’s Mat Lu, Ambrosia president Andrew Welch was gracious about Apple’s legitimate business needs and his company’s bad luck (this is the second time an Apple software update has broken his $15 program), but admits to being frustrated.

With iToner, we worked very, very hard to make sure we did things the right way. We didn’t hack into the phone at all, we didn’t “jailbreak” it - we used the same APIs that iTunes uses to put files on the iPhone, and we put those ringtones in the user area of the phone. … Apple is intentionally making sure that products like ours don’t work. That I think is a mistake — it’s as if in an iPhone OS update, Apple decided that MP3s you got from ripping a CD should no longer play on your iPhone, and you should instead buy them from their store. (link)

Apple’s defenders are quick to point out that there’s a limit to how far the company can be expected to go in support of outside developers — especially those who used hacks like Jailbreak to alter iPhone’s firmware. On the Mac Observers’ Apple Finance Board, a systems developer who posts under the handle dmiller wrote earlier this week:

If Apple were to take responsibility for not breaking existing 3rd party functionality, they would be just as “stuck” as Microsoft has been, for years, with Windows having to support a legacy base of code and drivers. All dependent on the past. Where did legacy support get them? Years and billions down the drain, to arrive at: Vista. What else needs to be said?

Apple has to “own” the phone, and the internals, and the state of the phone, and they need to be able to move it quickly, to improve it. (link)

Third-party programmers like Sadun don’t necessarily disagree. But that doesn’t make them any less saddened by the developments of the past week.

“It’s disappointing, because the iPhone was a very good platform,” she says. “It was delight to use and a delight to write for. It’s a shame.”

See also Estimate: As Many as 100,000 iPhones Sold for Unlock

[Apple Store photo courtesy of E. Sadun/tuaw.]

Apparently there is a service, http://www.brickmenow.com, that will “brick” your iPhone, iPod, Xbox, PSP, or other device on purpose.

Posted By Brick Mason, Washington, D.C. : May 12, 2008 12:24 pm

Computer Hardware is built to run Computer Software. Computers are not purchased to look pretty, to ‘dazzle’ or to impress, but to make our lives easier. Prior to the events of the last three weeks (cutting prices, firmware updates, etc), the iPhone left me with the impression that Apple had finally done something right.

That said, now that I have witnessed Apple’s heavy handed approach to third party software developers, and Jobs recent misstep with cutting the price of the device, I will certainly not consider the iPhone when making my next purchase.

Posted By Jack, Dallas, Texas : October 10, 2007 8:36 am

Right and everyone saids Microsoft is a bully. Sounds like Apple is taking the playbook from Redmond.

Posted By Mr. Bill : October 8, 2007 7:48 pm

I believe Apple has no choice but to lock the phone. The iPhone is a potential Trojan horse which could put ATT out of business. The danger for ATT is the WiFi chip in the iPhone. As more and more iPhones are sold, WiFi hot-spots will multiply. Eventually, people in cities will make all calls over the internet. The Cell Phone business will be wiped out. I look forward to that day.

Posted By Zato Gibson Malibu CA : October 5, 2007 1:01 am

Apple made it abundantly clear before the first iPhone was sold that they would not allow any third party software on the iPhone other then apps built around Safari.

Apple made it abundantly clear that they would not allow any unlocking of the iPhone before the first iPhone went on sale.

Maybe they didn’t make themselves clear enough for the completely brain dead people out there.

Apple is doing exactly what they said they would do and somehow you are shocked by it.

Posted By Nodack, pho : October 4, 2007 10:40 pm

Surely you mean “wreaked havoc”, Philip.

ex ped: Yes. Fixed. Thanks. –Philip Elmer-DeWitt

Posted By Charles, Victoria, Canada : October 4, 2007 6:28 pm
CNNMoney.com Comment Policy: CNNMoney.com encourages you to add a comment to this discussion. You may not post any unlawful, threatening, libelous, defamatory, obscene, pornographic or other material that would violate the law. Please note that CNNMoney.com may edit comments for clarity or to keep out questionable or off-topic material. All comments should be relevant to the post and remain respectful of other authors and commenters. By submitting your comment, you hereby give CNNMoney.com the right, but not the obligation, to post, air, edit, exhibit, telecast, cablecast, webcast, re-use, publish, reproduce, use, license, print, distribute or otherwise use your comment(s) and accompanying personal identifying information via all forms of media now known or hereafter devised, worldwide, in perpetuity. CNNMoney.com Privacy Statement.
Philip Elmer-DeWittSilicon Valley veterans like to joke that Steve Jobs must be surrounded by a reality distortion field; if you get too close to him, you start to believe what he's saying. Thanks to the success of the iPod, the launch of the iPhone and the renewed interest in the Mac, Apple has made believers out of millions of customers - and made a lot of investors rich. But Philip Elmer-DeWitt believes that an ounce of skepticism never hurts when writing about the company. He should know. He's been covering Apple - and watching Steve Jobs operate - since 1982, first for Time Magazine, then for Business 2.0, and now for Fortune.
Subscribe to Apple 2.0: RSS feed | email newsletter
* : Time reflects local markets trading time.† - Intraday data delayed 15 minutes for Nasdaq, and 20 minutes for other exchanges.• Disclaimer
Powered by WordPress.com.