The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > iPhone > Wiki Discussions
Reply
 
LinkBack Thread Tools Display Modes
  #121  
Old 10-19-2007, 12:53 AM
FURBY8704's Avatar
Green Apple
 
Join Date: Sep 2007
Device + Firmware: Iphone 3G FW 3.1
Operating System: OSX 10.6.1 & WINDOWS VISTA ULTIMATE
Location: South Central LA
Posts: 56
Thanks: 12
Thanked 2 Times in 2 Posts

I got all my 15 ringtones up ^^

took me a while.....

just kept replacing the ones that didnt play til they played
and eventually i got all of them playing !

thanx for iRinger!!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #122  
Old 10-19-2007, 01:48 AM
Green Apple
 
Join Date: Aug 2007
Posts: 89
Thanks: 6
Thanked 1 Time in 1 Post

okay.. did this over and over and the tone shows up.. the m4r and m4a files are both there.. the plist is perfect.. it's there.. but, will not play. I'm not going to do it with a ton of files until I get this one going.

any help on the no sound issue would be greatly appreciated.

j
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #123  
Old 10-19-2007, 02:26 AM
Green Apple
 
Join Date: Aug 2007
Posts: 76
Thanks: 13
Thanked 11 Times in 10 Posts

I tried the iRinger app and it failed with several ringtones. It seems to use a 7-digit naming convention, which as I noted earlier doesn't always work (though often does).

BUT, I think I have found a fairly consistent solution...

I am now using SendSong 0.17 (Experimental) from here:
http://ericasadun.com/ftp/Applications/SendSong/

This has worked for me, and it even creates the spoof .m4r file. Ringtones are still blown out after syncing, but I use a Tapp command to restore my working plist.

1. Add the appropriate ringtone (has to be a .m4a file) to your iPhone playlist in iTunes and sync. Keep the track to 30 seconds or shorter.

2. Run SendSong and send the song to ringtones.

3. Before syncing to iTunes use SSH or Mobile Finder to make a copy of /var/root/Media/iTunes_Control/iTunes/Ringtones.plist as /var/root/Media/iTunes_Control/iTunes/Ringtones.plist.OK.

4. After syncing to iTunes run Tapp with the command posted earlier in this thread. This will retain your custom ringtones.


While it still ain't perfect it beats playing the rename dance, not to mention manually editing the plist.


BTW: SendSong always names the m4a files with 4 digits, just like purchased ringtones are named. It always uses 29333 as the time integer too. It also uses random GUID strings. Here's a sample of a track converted using SendSong 0.17:

<key>MPBG.m4a</key>
<dict>
<key>Album</key>
<string></string>
<key>Album Artist</key>
<string></string>
<key>GUID</key>
<string>E41CAD1192777577</string>
<key>Name</key>
<string>Dire Straits - Walk Of Life</string>
<key>Total Time</key>
<integer>29333</integer>
</dict>
<key>MPBGDire_Straits__Walk_Of_Lifespoof.m4r</key>
<dict>
<key>Album</key>
<string></string>
<key>Album Artist</key>
<string></string>
<key>GUID</key>
<string>E41CAD1192777577</string>
<key>Name</key>
<string>Dire Straits - Walk Of Life</string>
<key>Total Time</key>
<integer>29333</integer>
</dict>



--
Mike
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #124  
Old 10-19-2007, 02:30 AM
What's Jailbreak?
 
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Originally I had more than 7 characters and it didn't work....then I changed it to 7 characters and it WORKED! Thanks guys! Both work great!


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ringtones</key>
<dict>
<key>SheWants.m4a</key>
<dict>
<key>GUID</key><string>0000000000000001</string>
<key>Name</key><string>SheWants</string>
<key>Total Time</key><integer>34226</integer>
</dict>
<key>SheWants.m4r</key>
<dict>
<key>GUID</key><string>0000000000000001</string>
<key>Name</key><string>SheWants</string>
<key>Total Time</key><integer>34226</integer>
</dict>

<key>UKWITIS.m4a</key>
<dict>
<key>GUID</key><string>0000000000000002</string>
<key>Name</key><string>UKWITIS</string>
<key>Total Time</key><integer>22226</integer>
</dict>
<key>UKWITIS.m4r</key>
<dict>
<key>GUID</key><string>0000000000000002</string>
<key>Name</key><string>UKWITIS</string>
<key>Total Time</key><integer>22226</integer>
</dict>

</dict>
</dict>
</plist>
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #125  
Old 10-19-2007, 02:54 AM
What's Jailbreak?
 
Join Date: Sep 2007
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts

I just tried using the sendsong method and it's still hit or miss with the ringtones. Some will play some will not. Adding ringtones has been giving me fits. It took me forever to get one to work. I finally got three on the phone working than I decided to add two more and than one of the frist three quit working...lol I think my phone is just Iphucking with me.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #126  
Old 10-19-2007, 04:16 AM
What's Jailbreak?
 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 3 Times in 1 Post

I finally got the last 5 of my 18 ringtones working using the renaming thing. The file name can be longer than 7 characters. Most of mine are longer and have spaces in the names. But the 5 that didn't work, I simply removed the spaces from the .m4a file names and changed the .plist to reflect that, copied them all over using iPhoneBrowser(1.4) and now I have all my ringtones. Whew!

Not sure why it works though. Perhaps Apple is using some silly ascii code checksum on the file names.

All I can say is, it is gonna take a lot for me to upgrade to another firmware and have to go through all this again. Flash support, maybe.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #127  
Old 10-19-2007, 05:23 AM
Green Apple
 
Join Date: Aug 2007
Posts: 76
Thanks: 13
Thanked 11 Times in 10 Posts

To preserve ringtones after syncing to iTunes:

1. Install FixRingtones.app, attached to this message.
2. Run FixRingtones after each iTunes sync!

You need to have your customized Ringtones.plist saved as Ringtones.plist.OK (located in /var/root/Media/iTunes_Control/iTunes/).



This is just a small bash script that copies /var/root/Media/iTunes_Control/iTunes/Ringtones.plist.OK, if it exists, to Ringtones.plist.



--
Mike
Attached Files
File Type: zip FixRingtones.zip (23.4 KB, 41 views)

Last edited by Tinman; 10-19-2007 at 03:12 PM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #128  
Old 10-19-2007, 11:37 AM
rklosinski's Avatar
What's Jailbreak?
 
Join Date: Sep 2007
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post

Quote:
Originally Posted by Tinman View Post
To preserve ringtones after syncing to iTunes:

1. Install FixRingtones.app, attached to this message.
2. Run FixRingtones after each iTunes sync!

You need to have your customized Ringtones.plist saved as Ringtones.plist.OK (located in /var/root/Media/iTunes_Control/iTunes/).



This is just a small bash script that copies /var/root/Media/iTunes_Control/iTunes/Ringtones.plist.OK, if it exists, to Ringtones.plist.



--
Mike
Did not work. First, the permissions were not set right. Next when I ran it from Winscp, it complained about the 'else'. The .sh file looks ok, so I could not figure out what is wrong. So, I just deleted the if conditional, and now it works fine (of course, all it is doing is a cp at this point).

ANOTHER strange thing with ringtones..... I made 4 ringtones. One ringtone would not work. The name that was give was DFIR.m4a and DFIRdeedeedeespoof.m4r. SO... I renamed the spoof to DFIR.m4r, corrected the ringtone.plist file, and it STILL DID NOT WORK. So, for the heck of it, I renamed both of them to DDDD, corrected the ringtone.plist, and then THEY WORKED. There must be some method to the madness, but I sure cant figure it out.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #129  
Old 10-19-2007, 11:57 AM
Green Apple
 
Join Date: Aug 2007
Posts: 76
Thanks: 13
Thanked 11 Times in 10 Posts

Quote:
Originally Posted by rklosinski View Post
Did not work.
It works. You need bash on the iPhone, obviously.


Quote:
First, the permissions were not set right.
It's up to you when installing an app manually, to set its permissions. This is not a PXL installer.

Once you get the app running permissions on the plist are irrelevant. There is no need for anything more than rw-r--r--.


Quote:
Next when I ran it from Winscp, it complained about the 'else'. The .sh file looks ok, so I could not figure out what is wrong. So, I just deleted the if conditional, and now it works fine (of course, all it is doing is a cp at this point).
You don't run it from WinSCP, it's meant to be run from the springboard. You only need WinSCP to install it, and to set the permissions on the .sh file.



--
Mike
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
The Following User Says Thank You to Tinman For This Useful Post:
PhoneLine (10-19-2007)
  #130  
Old 10-19-2007, 12:44 PM
PhoneLine's Avatar
iPhoneaholic
 
Join Date: Aug 2007
Device + Firmware: iPhone 2.2.1 JB + UL / iPhone 3G 3.0 JB + UL / iPhone 3G-S JB
Operating System: Windows Vista / Windows 7 64 RTM
Location: New York City
Posts: 412
Thanks: 55
Thanked 54 Times in 43 Posts

Yep, the app works fine, thanks for posting it

As some have mentioned when I sync and then either run the tapp or now this app, or even moving the file manually, the ringtones default back to marimba.

Just do a restart on the phone and your custom sounds should come back. So, its sync, run your prefered method of restoring the plist and then reboot the phone. Then the sounds should play when people call.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #131  
Old 10-19-2007, 01:10 PM
rklosinski's Avatar
What's Jailbreak?
 
Join Date: Sep 2007
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post

Quote:
Originally Posted by Tinman View Post
It works. You need bash on the iPhone, obviously.



It's up to you when installing an app manually, to set its permissions. This is not a PXL installer.

Once you get the app running permissions on the plist are irrelevant. There is no need for anything more than rw-r--r--.



You don't run it from WinSCP, it's meant to be run from the springboard. You only need WinSCP to install it, and to set the permissions on the .sh file.



--
Mike
I do have bash. I looked at the script, and it should work fine. I think there might be a few versions (of bash) laying around the net, so let me find another.

I did set the permissions to 755.

And yes, when something does not work, I run it from WinSCP to figure out what is wrong with it. It reports the errors to a console where I can see it.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #132  
Old 10-19-2007, 01:46 PM
Green Apple
 
Join Date: Aug 2007
Posts: 76
Thanks: 13
Thanked 11 Times in 10 Posts

Quote:
Originally Posted by rklosinski View Post
I do have bash. I looked at the script, and it should work fine. I think there might be a few versions (of bash) laying around the net, so let me find another.

I did set the permissions to 755.

And yes, when something does not work, I run it from WinSCP to figure out what is wrong with it. It reports the errors to a console where I can see it.
It's not the version of bash. It's only a simple cp command.

Also, the error from the else clause has no effect on the part of the script that matters. Once it gets to that point, assuming /var/root/Media/iTunes_Control/iTunes/Ringtones.plist.OK exists, the copying is done (tested that too).

The only reason I made it conditional to run the cp line was in case someone tried to run it without Ringtones.plist.OK. I was going to create it out of Ringtones.plist, however that seemed pointless so I left it be. But, again, that is not stopping the cp command. You could take out everything but the cp command, but if it's not working there is something else wrong. EDIT: Actually I did take everything out of it, and re-uploaded the file.

I suspect you don't have Ringtones.plist.OK file in the /var/root/Media/iTunes_Control/iTunes folder. With this it won't be able to do anything.

In any event it works for me, and it's easier than manually saving my custom plist, or even using Tapp.



--
Mike

Last edited by Tinman; 10-19-2007 at 03:11 PM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #133  
Old 10-19-2007, 02:56 PM
What's Jailbreak?
 
Join Date: Oct 2007
Posts: 19
Thanks: 0
Thanked 1 Time in 1 Post

Well...I have to say that I do love a good mystery and am intrigued by the seeming randomness with which these custom ringtones don't play, play, then don't play again based on continued modification of the plist.

I say, seemingly, because there is a cause and thus a pattern; we just haven't figured it out. We are also in good company in that iToner is having similar issues and Ambrosia is a pretty Rockin' software company.

Here's what I think so far...perhaps a pattern will emerge. I'll be using Bold for what I assume are facts, Normal text for Guesses/Non-definitive Observations, and Bold-Italics for proposed tests this community could run:

1) <Key> Total Time</key> being present or not does not, by itself, affect playability.

2) Tones can work with the media various length filenames, eg., Harry.m4a or Harrypotter.m4a
3) Media Files are not really the issue in that they can be played via iPhonebrowser and modifications to the .plist can make previously non-playing tones start to play with no modifications to the media. For example, adding additional tones to the plist can cause earlier tones to start or stop working.
4) Not rebooting after the addition of media and/or modifications of .plist can result in tones playing correctly in Sounds and in Contacts but when an actual call comes in default Marimba will play. Rebooting seems to solve this.
5) Something critical occurs the first time the iPhone loads ringtones.plist; it is at this point a successful association between the spoof.m4r and real.m4a occurs.
6) The spoof and real filenames being the same or not seems to have no effect, e.g., spoof.m4r:harry.m4a vs harry.m4f:harry.m4a
7) Embedded metadata may add stability or increase odds of playability. Purchased ringtones include matching metadata for Artist, Album Artist, Genre, and Total Time keys. Try creating a custom ringtone with full and matching metadata. Also test this by adding the <key></key> but use null values
8) Perhaps there is something "magic" in a purchased ringtone that would enable it to be a more perfect spoof file. Test by making a copy of a purchased .m4r then rename and repurpose it as the spoof.m4r file.
9) Perhaps the <key>Name</key> field MUST match the embedded metadata in the .m4a files. Test this with several pairs of files where, for each pair, one <key>Name</key> matches the embedded name and one does not. If the ones where the names match consistently work, that would be significant.
Anyway...I'll be running these tests myself when not until much later tonight so hopefully folks can try some of these things out and comment back on what works vs what doesn't.

The answer is out there.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #134  
Old 10-19-2007, 11:43 PM
What's Jailbreak?
 
Join Date: Sep 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Quote:
Originally Posted by Tinman View Post
To preserve ringtones after syncing to iTunes:

1. Install FixRingtones.app, attached to this message.
2. Run FixRingtones after each iTunes sync!

You need to have your customized Ringtones.plist saved as Ringtones.plist.OK (located in /var/root/Media/iTunes_Control/iTunes/).



This is just a small bash script that copies /var/root/Media/iTunes_Control/iTunes/Ringtones.plist.OK, if it exists, to Ringtones.plist.



--
Mike
i done all thing , any it not work

however , finally , i know what the problem ....

it require BSD subsystem

one more thing , you have to save the sh file to the unix line endling format (LF)

if not , it will tell you ..

# ./FixRingtones.sh
zsh: ./FixRingtones.sh: bad interpreter: /bin/bash^M: no such file or directory

Last edited by 008325; 10-20-2007 at 12:10 AM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #135  
Old 10-20-2007, 12:38 AM
rklosinski's Avatar
What's Jailbreak?
 
Join Date: Sep 2007
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post

OK, I got a 'fix' for the sync problem. Well, its more like a 'band-aide'. It basically, uses a simular scheme to 'fixringtone' app, but my solution works automatically.

URL Corrected
get it from http://www.klo-group.com/auction/ringaide.zip

1) move ringtone to the /usr/bin, and chmod it to 755.
2) move the plist file to /System/Library/LaunchDaemons
3) now go to the /var/root/Media/iTunes_Control/iTunes directory, and copy your Ringtones.plist to Ringtones.plist.OK
4) reboot your phone.

you can view the ringaide file if you are interested in knowing what is going on.

This would be a good addition to sendsong distribution (hint hint hint).

ill monitor the thead for the next few hours incase you have problems.

enjoy
rich

Last edited by rklosinski; 10-20-2007 at 08:40 AM..
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > iPhone > Wiki Discussions

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 11:40 PM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top