Tag Archives: jailbreak

My iPhone’s Star Trek SMS tone (a how-to)

UPDATE: This post has been super­sceded by “Star Trek SMS tone Redux

A while back, I set up a Star Trek ring­tone and SMS beep on my iPhone. It worked quite well, but not too long after that, I had to reload the iPhone firmware (I believe due to an update from Apple) and lost the SMS tone. While the ring­tone is triv­ial to re-add via iTunes, the SMS took a few more steps. I never quite got around to doing it because, while the steps were easy, I had to re-research what, exactly, they were. A com­bi­na­tion of lazi­ness and more impor­tant things than iPhone beeps kept push­ing this off.  I recently reloaded the SMS tone, so this post serves as a note to myself about how to reload the SMS ring­tones in the future.  Perhaps oth­ers will get some use­ful infor­ma­tion out of it, too.

First off, is the ring­tone file. The file has to be in AIFF for­mat. The one I use is st_tng_chime.aiff, a door chime from Star Trek: The Next Generation.

Second, are the pre­req­ui­sites. These are not for the faint of heart. First you have to jail­break your phone. This is the big hur­tle that is the most dif­fi­cult to over­come. After that, it’s pretty easy:

  • Install the iPhone SSH server and Boss Prefs
  • Enable SSH via Boss Prefs
  • Back up your exist­ing SMS chime with the fol­low­ing ter­mi­nal com­mand (replac­ing the IP with your iPhone’s own): ssh root@10.1.2.74 cp /System/Library/Audio/UISounds/sms-received3.caf /System/Library/Audio/UISounds/sms-received3.caf.bak
  • Enter “alpine” for the pass­word
  • Copy the new sound onto the iPhone: scp st_tng_chime.aiff root@10.1.2.74:/System/Library/Audio/UISounds/sms-received3.caf
  • Disable the SSH ser­vice via Boss Prefs
  • Go into your sound pref­er­ences and change the SMS tone to “Glass” (which is the slot that got over­writ­ten with the cus­tom AIFF sound)

It is a basic set of com­mands that any intermediate-to-expert per­son famil­iar with the ter­mi­nal has prob­a­bly already used before. My main issue was being too lazy to (re-)research the path to the SMS sounds. I let it go untouched for months. This post is a cap­ture of knowl­edge in case I ever have to do this again.

Posted in: iPhone Movies Television

iPhone 1.1.3 Jailbreak, Attempt 2

It turns out that the 1.1.3 jail­break instruc­tions from iPhone Atlas is pretty much the best 1.1.3 instruc­tions I have seen around.

I’m fin­ish­ing the final step of the jail­break right now, after a bit of dif­fi­culty. It turns out the dif­fi­culty (as well as the prob­lem I expe­ri­enced ear­lier with Nate True’s method) wasn’t some­thing I was doing wrong. It’s because *.nyud.net (Coral Cache) doesn’t work on the office net­work, and the iPhone hax­orz, in an effort to save band­width, are host­ing a few of the pack­ages over there. The soft-update pack­age from the other day didn’t show up because of this. The OpenSSH pack­age today didn’t show up because of this, either. I ended up hav­ing to install the VT-100 ter­mi­nal, then use a lit­tle sed magic and reg­u­lar expres­sions to remove Coral Cache from the URLs. Things as slower, but things are now actu­ally pos­si­ble.

EDIT: It mostly worked, except the cel­lu­lar ser­vice was dead. I had to fol­low these instruc­tions then resync with iTunes to turn it back on again: http://guides.macrumors.com/Jailbreaking_and_updating_to_1.1.3#Post-jailbreaking_-_Restoring_your_phone_service_in_1.1.3

Posted in: Dear Diary iPhone

iPhone 1.1.3 Jailbreak, Attempt 1

My first attempt at the iPhone 1.1.3 jail­break: FAIL.

I pre­vi­ously installed 1.1.3 in prepa­ra­tion for the jail­break. In the mur­mur­ings before the jail­break was released, I had heard that you need the offi­cial 1.1.3 upgrade to get the cor­rect base­band firmware for the cel­lu­lar modem chip to work with the Google maps “locate me” fea­ture. You then down­grade to 1.1.1, then upgrade to a jail­bro­ken 1.1.3. In the­ory, it was pretty easy.

In prac­tice, it was a bit more involved. First, I had to down­grade to 1.1.1. This can’t be done with the lat­est iTunes (7.6), so I had to use some switcha­roo frame­work magic and get a very spe­cific ver­sion of iPHUC to make every­thing play well. After some trial and error, I got 1.1.1 installed, but was unable to acti­vate it through offi­cial chan­nels. I then had to use some hack­ery to make the phone think it was acti­vated. By “some hack­ery” I mean stuff like this:

Slide to make an emer­gency call, enter *#307# press call, now use the back but­ton on the top of your screen to remove *#307#, now enter 0 , press call, press answer, press hold, press decline. And you get to the con­tact list. And there­after every time you push the home­but­ton you just slide the “emer­gency call” slide, then enter 0 , press call, press hold, press decline.

I mean, what? From there, things were much eas­ier and involved get­ting the 1.1.3 jail­breaker, run­ning it, and wait­ing. It down­loaded the offi­cial 1.1.3 firmware, patched it, and uploaded it to the phone. It then prompted me to launch Installer.app and run the “1.1.3 soft update.” Unfortunately, it wasn’t there. The FAQ said I needed to update the com­mu­nity sources, then refresh the source list, and it will mag­i­cally show up. The FAQ is wrong.

Since this was pretty much a dead end, I rebooted to restore mode (power+home for 15 sec­onds, then release power, keep­ing home held down) and restored to 1.1.3.

I just hope that when Apple says they’ll open the SDK to all 3rd party devel­op­ers, they really do mean it, with­out any gotchas, caveats, or tech­ni­cal­i­ties.

Posted in: Dear Diary iPhone

TerminalScreenSnapz001

Hacking the iPhone

Apple released some new iPhone firmware today. Fortunately, they left in all of the loop­holes for hack­ing your own apps into it. The last time I hacked my phone, it took about half a day. This time, it took about 13 min­utes (10 of which were wait­ing for some­thing to down­load.) This is all it took:

That’s me typ­ing one com­mand, then me select­ing #3. Later on, that was me hold­ing down but­tons to reset the phone. From that point, you’re given an appli­ca­tion on the phone itself for installing addi­tional pack­ages:

Screenshot

Easy!

For future ref­er­ence, when installing the OpenSSH pack­age...
The root pass­word is: dottie
Code to gen­er­ate a new hash is: perl -e 'print crypt("MYPASSWORD", "XX");'

I won­der how many peo­ple install OpenSSH with­out know­ing what it is, and with­out chang­ing pass­words and dis­abling accounts.

Posted in: Gadgets iPhone Software

iPhone turnkey hackery

springboard.pngBack in my day, we got an iPhone and we hacked it by hand! We fid­dled with shell scripts and USB con­nec­tions and com­pil­ers until every­thing even­tu­ally worked! You kids, these days, with your fancy GUI installers take all the fun out of things!

So, yes, a few weeks ago, I hacked my iPhone. The text file of notes I took dur­ing the process has been posted to my wiki. It’s more-or-less obso­lete now. Not only is there iFun­tas­tic, which lets you fid­dle with ring­tones and files, but there is just now Installer.app, which works like an “apt-get” or “Windows update/installer” sys­tem, pro­vid­ing a list of things avail­able to install. Two clicks later, it down­loads and installs the appli­ca­tion you want.

At this point, “hack­ing” the iPhone con­sists of:
1. Install iFun­tas­tic to copy Installer.app to your phone
2. Launch Installer.app

Posted in: Gadgets iPhone Software