iphone-hacks.com

#1 iPhone Forums for iPhone Hacking, Unlocking, Jailbreaking...


You are not logged in.

Announcement

New to iPhone-hacks? Please, Read the RULES before posting!. Users who are logged in will see less ads.
  • Index
  •  » Tutorials
  •  » (PC) How to add custom ringtones / system sounds to the iPhone

#1  2007-07-15 15:21:41

greg
Ninja
From: Toronto, ON
Registered: 2007-07-10
Posts: 23
Website

(PC) How to add custom ringtones / system sounds to the iPhone

- source: http://cre.ations.net/blog/post/custom- … ng-windows

Requirements:

- ziel's iPhoneInterface & jailbreak apps for Windows
- The iPhone software update package
- iTunesMobileDevice.dll
- A custom ringer that you would like to install

Now the package location varies so there's really only one reliable way to get it. Plug in your iPhone, and head into iTunes. Click the "Sync" button first (to be safe) and wait for the sync to finish. Then hit the Restore button. Confirm that you do want to restore (even though you don't) by hitting Restore.

Click through the dialogs but when the update starts downloading, unplug your iPhone. This will make sure your iPhone won't get overwritten.

Wait for the package to finish downloading (you can track it in the Downloads area of iTunes).

Now go to your Start Menu, click Run, and copy this into the Run box:

%USERPROFILE%\Application Data\Apple Computer\iTunes\iPhone Software Updates

And hit OK. A file window should pop up containing one file that starts with iPhone. Check whether it ends with ".ipsw" - if it doesn't, you'll have to turn on file extension display by going to the Tools menu -> Folder Options -> View tab -> Uncheck "Hide extensions for known file types". Right-click the iPhone update file and choose "Rename". Give it the name "iPhone.zip" and press Enter, and confirm that you want to change the extension.

Now double-click the file to open its contents. Extract them all to some folder, say "c:\phonedmg". The rest of this article assumes you extracted the files there.

iTunesMobileDevice.dll

This one's easy. Start, run:

C:\Program Files\Common Files\Apple\Mobile Device Support\bin

Copy iTunesMobileDevice.dll into c:\phonedmg .

ziel's Jailbreak and iPhoneInterface software

Download the software from directly from ziel's website. Extract the files to c:\phonedmg as well. Move the files from the "win" directory into c:\phonedmg - the "osx" files won't be used here.

A custom ringer
You can use .m4a or .mp3 as your ringtones, but for some reason they must be made through Quicktime. Fortunately iTunes lets you convert any file to .m4a by selecting "Convert to AAC" from its entry in your music library. Then choose "Show in Windows Explorer" once it's been converted. Put these files in c:\phonedmg as well.

Running Jailbreak
Now that you've got everything you need, it's time to get started!

Make sure to close iTunes now. You don't want iTunes' helpful interface interfering with this delicate operation.

Hit your Start menu, choose Run, and type cmd .
Hit OK and a command prompt should show up. Type these commands:
c:
cd \phonedmg
jailbreak

Now Jailbreak should be running. Plug in your iPhone if it wasn't plugged in already.

Jailbreak should tell you that it's sending files to the iPhone, then ask you to hold the POWER and HOME buttons. Do that, but do it in this fashion:

- Press and hold the Power button until your iPhone says "Slide to power off".
- Slide the red slider and let the phone shut down.
- Plug the dock cable back in.
- If the iPhone doesn't turn on by itself, press and release the power button.
- When the Apple logo appears, press and hold both the Power and Home buttons.
- The phone will power off (keep holding the buttons!) and restart.
- Soon it will display a yellow triangle and the message "Connect to iTunes".

At this point Jailbreak will begin performing mysterious operations on your phone. Wait for it to complete and don't touch anything.

You should receive this message at the end:
Enjoy your newfound freedom. Thank the devs at #iphone next time you see them for making this all possible.
p.s. Like most other useful tools, this one may be dangerous if used carelessly. Always remember -- You brick it, you bought it.
p.p.s. I have no idea how 'My Humps' could possibly have gotten set as your ringtone. wink

My Humps won't have been set as your ringtone but check just to be sure.

Now to copy over your ringtone.

Uploading the ringtone to the iPhone

(here's where you start if you've already done the whole process but want to add another ringtone later on)

In the same command window (if you need to re-open it: Start, run, cmd, c:, cd \phonedmg - remember?), type iphoneinterface and hit Enter.

A prompt should appear.

Enter these commands, which will create the Ringtone directory (if not already present) and set it as the upload directory:
mkdir /var/root/Library/Ringtones
cd /var/root/Library/Ringtones

For each ringtone you want to upload:
putfile /var/root/Library/Ringtones/Myhumps.m4a
Where Myhumps.m4a is the file name of your ringtone.

That's all! You will see the new ringtone in the ringtone chooser in the iPhone.

If you want to customize system sounds too, check out the instructions in the box of Step 17 on Hack the iPhone's instructions. They're the same on Windows.

The new version of Jailbreak doesn't require you to undo any of its settings to work on iTunes. You should still be able to sync on iTunes after adding your own ringtones.

Note that any iPhone system updates or restores will remove all of your uploaded ringtones and undo any Jailbreak changes.

How it works

It would be an injustice not to tell you how the whole process works. The devs at #iphone, ziel, and I spent a lot of time figuring out this procedure and associated details. So here's the skinny:

I'm not sure what AFC stands for, but this is a program called the AFC service running on the iPhone that (normally) iTunes communicates with to put files such as songs on your iPhone. It performs the filesystem operations such as making directories and uploading / downloading files.

Under normal configuration, the AFC service absolutely refuses to access any files outside of where music is normally stored (in /var/root/Media). Since ringtones are stored in /var/root/Library, the AFC service as it is configured by default will not allow us to upload ringtones, without knowing how iTunes will eventually do it (iTunes will use /var/root/Media/iTunes_Control/iTunes/Ringtones.plist if you were wondering, but we don't know what format that file is in).

So we have to change the configuration of AFC somehow. The key to this is the iPhone's restore / recovery mode. This is the mode iTunes uses when you hit "Restore" in the iPhone page. It's designed to restore the phone to working order after something has corrupted its software. With restore mode, special commands can be issued to the phone that let it manipulate all sorts of files and settings on the device.

What jailbreak does is (at a very high level) perform the first half of the restore operation that iTunes would, getting the phone into the powerful restore mode. It then issues a series of commands that modify the configuration of AFC to allow you to access the full filesystem while still presenting the same interface to iTunes (so as not to break syncing).

After that, iPhoneInterface allows you to interact with the phone using AFC to upload and download files.

Offline

 

#2  2007-07-16 05:55:14

p0Wer
iPhone Hacker
Registered: 2007-07-16
Posts: 61

Re: (PC) How to add custom ringtones / system sounds to the iPhone

Woot!

I really gotta get an iPhone!


http://www.psp-downgrades.com/sig/site_logo.png

Offline

 

#3  2007-10-11 19:47:52

killacam13
iEat iPhones (iPhone-Hacks Mod)
From: Los Angeles, California
Registered: 2007-09-19
Posts: 848
Website

Re: (PC) How to add custom ringtones / system sounds to the iPhone

sendsong does this and makes it a billion times easier...its downloadable on the installer app


iPhone firmware 2.0  [Over 40 Cracked Appz!!]
Activated/ Jailbroken/ Unlocked on T-Mobile
Winpwn/Pwnage
Windows Vista -_- (i wish i had a mac...lol)

Offline

 

#4  2007-10-11 20:30:58

iX_StyleZ
'-=ixPhone=-'
From: San Antonio, TX
Registered: 2007-09-05
Posts: 255
Website

Re: (PC) How to add custom ringtones / system sounds to the iPhone

well... we know that now. this is a very old thread lol


http://www.mywackospace.com/images/random-images/55148

Offline

 

#5  2007-10-11 20:59:49

killacam13
iEat iPhones (iPhone-Hacks Mod)
From: Los Angeles, California
Registered: 2007-09-19
Posts: 848
Website

Re: (PC) How to add custom ringtones / system sounds to the iPhone

...alright...just posting because people still try to do these or even use ibrickr when there is a much easier program like this and installer.app


iPhone firmware 2.0  [Over 40 Cracked Appz!!]
Activated/ Jailbroken/ Unlocked on T-Mobile
Winpwn/Pwnage
Windows Vista -_- (i wish i had a mac...lol)

Offline

 

#6  2007-10-11 21:19:14

iX_StyleZ
'-=ixPhone=-'
From: San Antonio, TX
Registered: 2007-09-05
Posts: 255
Website

Re: (PC) How to add custom ringtones / system sounds to the iPhone

lol i still use ibrickr mrgreenthumbsup


http://www.mywackospace.com/images/random-images/55148

Offline

 

#7  2007-10-12 00:09:57

dlr
Moderator
Registered: 2007-10-10
Posts: 128

Re: (PC) How to add custom ringtones / system sounds to the iPhone

I didn't know....now I do...thank you so much killacam13!! And thank you iX_StyleZ for helping me out in my first couple of days with the iphone!  Sooo good!....now I gotta find out how to get ibrickr .91 to work on my windows vista...I'm always getting a 'program not responding' message...maybe I'll try it on my laptop running XP...lol...whadda ya know?...there's some dust on my PSP slim!

Offline

 

#8  2007-10-12 00:19:27

iX_StyleZ
'-=ixPhone=-'
From: San Antonio, TX
Registered: 2007-09-05
Posts: 255
Website

Re: (PC) How to add custom ringtones / system sounds to the iPhone

dlr wrote:

I didn't know....now I do...thank you so much killacam13!! And thank you iX_StyleZ for helping me out in my first couple of days with the iphone!  Sooo good!....now I gotta find out how to get ibrickr .91 to work on my windows vista...I'm always getting a 'program not responding' message...maybe I'll try it on my laptop running XP...lol...whadda ya know?...there's some dust on my PSP slim!

lol np, and i still cant get ibrickr to work on my vista computer either. i just unlock it with my xp one.


http://www.mywackospace.com/images/random-images/55148

Offline

 

#9  2007-10-12 01:33:36

killacam13
iEat iPhones (iPhone-Hacks Mod)
From: Los Angeles, California
Registered: 2007-09-19
Posts: 848
Website

Re: (PC) How to add custom ringtones / system sounds to the iPhone

any time dlr...also if u have vista i use right klik. then run as administrator...it stopes responding the first tyme but when i run it the second tim it runs perfectly...ill try to figure out how i get it working on my vista


iPhone firmware 2.0  [Over 40 Cracked Appz!!]
Activated/ Jailbroken/ Unlocked on T-Mobile
Winpwn/Pwnage
Windows Vista -_- (i wish i had a mac...lol)

Offline

 
  • Index
  •  » Tutorials
  •  » (PC) How to add custom ringtones / system sounds to the iPhone

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB