How I deactivated and reactivated my iPhone and it lived
It was pretty hard coming up with a title for this post. I did all sorts of horrible and appalling things to my iPhone this afternoon. However, swapping out the SIM and deactivating the iPhone was probably at the top of the list, so it won. Having the Scissors Sisters singing "I can't decide whether you should live or die" in the background was a fantastic inspiration for this exercise. And yes, the iPhone lives.
Peeking at iPhone data with iPhoneInterface
I started out by giving iPhoneInterface a test run. After popping over to #iphone on irc.osx86.hu, I followed instructions, downloaded a copy of the source, compiled up the utility and tried it out at the command line. (If you want a copy of the source, drop a note with a usable e-mail address in the comments.)
The utility quickly recognized my iPhone and offered a simple help menu of commands
% ./iPhoneInterface
iPhoneInterface v0.3.2 built on Jul 12 2007
Waiting for phone... established.
iPhone state: Activated
type "help" for help
iPhone:/# help
help - this, also help startservice and help readvalue
ls - list directories
cd - change directory
mkdir - make directory
rmdir - remove directory
deviceinfo - get device info
fileinfo - get file info
readvalue - read a value
activate - activate iPhone with plist
deactivate - deactivate iPhone
startservice - start service on iPhone
enterrecovery - Enter recovery Mode **WARNING: YOU'LL NEED TO RESTORE**
quit - exit shell
For anyone familiar with the command line (and if you've gotten this far, you probably are), it was easy to navigate around the iPhone folders using cd and list them with ls. At the main level, the directories looked like this:
iPhone:/# ls
.
..
DCIM
com.apple.itunes.lock_sync
iPhoneDrive
iTunes_Control
iPhone:/#
The parent directory (..) leads nowhere. DCIM stores all the pictures you snapped from your iPhone. iPhoneDrive was created by the ecamm utility I reviewed recently and had all the data files I'd stored there. iTunes_Control three subfolders: Artwork, Music and iTunes corresponding more or less to a normal iPod structure.
Unfortunately, there was no access I could find to the underlying OS X system folder.
Deactivating my iPhone and reactivating it with iPhoneActivatorTool
Next up, after reviewing the possible iPhoneInterface options, I decided to deactivate my iPhone. Just to be safe, I decided to swap out my SIM first. Grabbing my trusty paperclip, I popped out the good SIM and replaced it with another, fresh, unused one. I then instructed iPhoneInterface to deactivate the phone using the deactivate command. (My picture of the results is at the top of this post.)
This is, of course when I noticed that little bit about "activate iPhone with plist" option. Plist? What plist? A few seconds of frantic googling later, I came across This Anderson Technologies post about how to activate your iPhone without AT&T service. It included a tool (iPhoneTool.zip) including that all-necessary plist. I downloaded the tool, unzipped it, and ran it according to the instructions on the post.
iPhoneActivatorTool 1.0 2007-07-12 12:27:11.683 tool[1922] Found iPhone Device: 1
2007-07-12 12:27:11.684 tool[1922] Connecting...
2007-07-12 12:27:11.703 tool[1922] Checking Pairing...
2007-07-12 12:27:11.737 tool[1922] Starting device session...
2007-07-12 12:27:11.856 tool[1922] ActivationState: Unactivated
2007-07-12 12:27:11.857 tool[1922] Deactivating your iPhone...
2007-07-12 12:27:11.880 tool[1922] New ActivationState: Unactivated
2007-07-12 12:27:11.881 tool[1922] Activating your iPhone...
2007-07-12 12:27:12.002 tool[1922] New ActivationState: MismatchedICCID
2007-07-12 12:27:12.003 tool[1922] Your iPhone was successfully activated.
Notice that bit about the mismatched ICCID? That's because of the SIM swap. The iPhone was reactivated but still complained about the SIM. So I swapped out to the original SIM and guess what it said? Um.... This:
So I did what anyone would do. I launched iTunes, which immediately recognized it and reactivated it and stopped complaining about the SIM. Shortly after I made a couple of calls just to be sure.
Are there lessons to be learned here? Sure there are but my iPhone is working and anyway, aren't you glad we try this stuff out here at TUAW before you do?
Thanks to all the great #phone irc folks, especially speedyAZ and appleweed.


Reader Comments (Page 1 of 2)
Daniel said 5:15PM on 7-12-2007
How long did it take?
Reply
Scotty said 5:16PM on 7-12-2007
Does your prepaid cell phone use the GoPhone feature or the Pick a Plan feature?
Reply
Donald Burr said 5:40PM on 7-12-2007
Source code please. donburr (at) gmail (dot) com.
Reply
punkassjim said 5:40PM on 7-12-2007
you got big brass balls, woman.
Reply
Mike said 5:40PM on 7-12-2007
Does anyone really give a shit? Hey Erica, this is not your personal blog, it's blog for APPLE NEWS.
Again, this site has totally gone down hill
Reply
Wayneshorter said 5:40PM on 7-12-2007
Low and behold, another iPhone story. Welcome to TUiW. (The Unofficial iPhone Weblog, "Where we censor things we don't agree with!")
Reply
Will Kelley said 5:48PM on 7-12-2007
I enjoyed the article. Thanks Erica.
Reply
manny said 5:51PM on 7-12-2007
why does everyone give erica shit?
So what she writes about personal stuff? I myself was wondering what would happen if you did this, this informed me (too chicken to do that to my phone) what would happen.
Give her a break
Reply
schlomo said 5:54PM on 7-12-2007
I'd love a copy of the source, Erica. You can email it to the address I used to post this :)
Reply
Sander Backus said 5:56PM on 7-12-2007
Copy plz @ info@sanderback.us
Reply
Tate Roam said 5:57PM on 7-12-2007
An excellent post. One of Apple's "4 legs" is the iPhone. As such posts about it are about Apple. For those complaining about too many iPhone posts--don't worry they'll be cheap enough for you in about 6 months.
Reply
Matt said 6:09PM on 7-12-2007
Erica thanks for this post. I'm a curious guy and after I saw all the info floating around out there about getting access to the iPhone with tools I was tempted to poke around...my phone is working fine but you've convinced me not to try anything silly for at least a couple more weeks :)
Reply
ross said 6:12PM on 7-12-2007
you left out the important bit - is the new SIM an AT&T sim? if so what is the point - if not AMAZING!
Reply
ty|er. said 6:21PM on 7-12-2007
can you please email me a copy of it as well with my tuaw email. thanks!
Reply
grimmet said 6:28PM on 7-12-2007
I'd love a copy of the source too.
grimmet-at-web.de
Reply
tom said 7:50PM on 7-12-2007
I accidentally ran my iPhone headphones through the washer and dryer yesterday... And they still work fine:
http://tlrobinson.net/blog
Reply
tnkgrl said 7:56PM on 7-12-2007
Good stuff Erica... Messing around is a great way to learn things - most people are too scared to do it!
I compiled and played with iPhoneINterface myself (I was trying to get custom ringtones working).
Unfortunately the source code in the http://iphone.fiveforty.net/wiki/ SVN depository is not the version that allows full file system access!
Reply
R031E5 said 8:29PM on 7-12-2007
Me please :D chuy . robles //at// gmail [dot] com
Reply
DrWho said 8:37PM on 7-12-2007
"why does everyone give erica shit?"
Because some people just want to let everyone else know that they are a dick.
Reply
Joseph said 8:50PM on 7-12-2007
last time i checked the iPhone was a product made by Apple!
i love reading about anything iPhone related right now, but a few months ago, it was all the news here about the "zune" that was pissing me off.
thanks Erica :)
Reply