Hey, I've been searching around and found a few posts on the subject (not here however) and I was wondering. I'm trying to add a boot sound to my device, its rooted, on Rogers stock ICS 4.0.4.
Now, heres where it gets fun for me, based on what I've found, there are sound files in the system/media and /etc folders. My phone has them in both places, in wav and ogg formats. They are only a few seconds in length, and silent.
So, I've clipped, converted, renamed, moved, replaced, multiple times in different formats just in case. And nothing, nada zip....
So am I missing something? Why won't the sound file I made play at boot? Does the stock kernel not support it?
Sent from my SGH-I727R
From what I'm seeing, it looks like it should be /system/media/PowerOn.wav
Remember, the linux file system is case sensitive. Did you name the file correctly?
I will keep looking, just in case.
Yup, I just checked and the file name is PowerOn.wav, and is located in system/media.
So now I'm really stumped :-(
Sent from my SGH-I727R
It would seem that this phone wants the file in .ogg format, whew, that was alot of test reboots
(sorry that I can't definitively say what fixed it, as I copied and pasted both formats in multiple locations, that's when it worked)
Sent from my SGH-I727R using XDA
Afaik- I doesn't even need to be in ogg format. Just needs the ogg extension.
Someone correct me if I am wrong though.
--
SGH-I727 using Tapatalk, running cm9. Trouble searching? http://www.googleguide.com/advanced_operators.html
Related
I post this in my SGS4G Forum, but haven't gotten any hits, trying to broaden my chances of getting some help.
Ok, before i posted this i searched high and low and really couldn't find a strait answer. Here is what i am trying to do... I have a bunch of cool sounds... I would like to set these sounds as key tones... you know, like when i dial a number on my key pad.
So i got all the files in order, converted them to .ogg, and placed them in /system/media/audio/ui and renamed them key1.ogg key2.ogg etc.... Well nothing happens, i cant even play the file, it says its "unrecognized" by the stock media player and Rockplayer. anyone have any ideas?
I read somewhere that the "program" that plays these files will only recognize certain codecs or something, That is a little outside my AO (area of operation)....any help would be greatly appreciated!
panda
I found this
http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html
However, i am not a Dev so this might as well be Japanese, any hints?
That link is relevant for writting an app that plays sounds.
The app that does this, the dialer already exists though.
This rather sounds like a codec problem.
If you can't open and play those files with the native android player on your phone, the dialer won't be able either.
Recheck the encoding on those sound files and try again.
they will play from the sdcard, but when i move them to the UI folder on the root, they wont... still an encoding issue?
Could be a permission issue.
There is no permission issue on the sdcard, as all files are accessible to everyone, but this doesnt apply to files in the root folder.
So try changing the permissions.
Changed the hell out of the permissions, which made the native player play the file.. YAY!! However......when i changed the file name to Key1.ogg from key1a.ogg, i press the corresponding number on the dialer...i get nada. so sound at all, i will play with permissions a little more, maybe change the format to a lower quality file and see if that helps... Thanks for the insite!
Well the filename has to be the same as the original one, CASE SENSITIVE mostlikely.
To make sure you have absolutely the same kind of file you could extract the original sound file and use a common player (i.e. VLC?) to check the bitrate, encoding, kHz etc.
I DID IT!!! WOO HOO.. what a pain in the ass! LOL I made the files smaller... less than 16hz and 92kbps.. then sent them all to drop box... copied them to the ui folder... THEN...I renamed the originals...then renamed the new ones.. giving them god permission. It worked!! Wish i was more of a Dev.. i'd make an app to simplify it...took about an hour once i got the hang of it....
Ok, I'm looking for an app that can convert mp3 to ogg format. I know I can get (and have) programs for windows which can do this but I want an app which does and it's be awesome if there's one which will insert it to the appropriate place, eg, to the ringtone folder on the phone. I doubt the latter part had been done (mostly out of cynicism) but it would be nice to have instead of having to use a file explorer and manually copying it.
The second is a batch app installer which doesn't bug me for confirmations with every app. It's annoying. I want a one-click batch installer. One click and install and only stops to bug me if there's a error.
For a one click batch installer buy the pro key for titanium backup. That lets you skip the confirm screens.
Sent from my LG-P999 using xda premium
Also Rom Toolbox by jrummy. Batch backup / restore with a TON of other features. Everything from file manager with root permissions, build prop editor, performance tweaks, font and battery icon changer, CM7 theme downloader, and so on. Great tool and I think it's like 3 or 4 bucks, last I checked.
Sent via telepathy
Thanks, I figured out that titanium can do it, I had never mucked much with it. I have the free version of ROM tool box, I'll have to look at it a little closer as well. So much to do, so little time and energy.
Good old double posting. Anyhow, so one down one to go. I would at least like an mp3 to ogg app. I tried to convert some on my own and the files when played with any normal audio player have sound but when I put them in the ringtone and notification directory and restarted the files actually didn't play.
Sent from my LG-P999 using XDA App
Not an app but i know there's website you can go to, upload the mp3, and download the ogg. Could do that on your phone.
lilaliend said:
Not an app but i know there's website you can go to, upload the mp3, and download the ogg. Could do that on your phone.
Click to expand...
Click to collapse
I tried that. I'm going to just post in the general section, hit more people. There's something going on here that's being missed otherwise the files would just work.
Волк said:
I tried that. I'm going to just post in the general section, hit more people. There's something going on here that's being missed otherwise the files would just work.
Click to expand...
Click to collapse
Yeah if they're not working altogether then it could be something else. I've used the sites to convert to ogg and then I copy over to the system folders audio with ES Explorer. Works just fine for me.
lilaliend said:
Yeah if they're not working altogether then it could be something else. I've used the sites to convert to ogg and then I copy over to the system folders audio with ES Explorer. Works just fine for me.
Click to expand...
Click to collapse
Ah, see that's exactly what I did, copied them to the correct dir and they showed up after a reboot but had no sound. Can you give me the link to the exact site you used?
I have been replacing the ringtones, notifications, system tones in the stock /system/media/audio folder. With HFS and EB, ICS would automatically pick up on the new tones, maybe after one restart, but would ultimately pick them up.
Question is, why doesn't GB pick up on the new sounds in the default folder? All of the files are either .wav or .ogg.
mine always do, don't know what you are doing wrong... I'm about to flash the HFP rom assuming that is what you are talking about??? I'll test it out and see what is going on...
mt3g said:
mine always do, don't know what you are doing wrong... I'm about to flash the HFP rom assuming that is what you are talking about??? I'll test it out and see what is going on...
Click to expand...
Click to collapse
Yea this happened on Weapon G2X also, every ICS I've used has been good to go, and I've been doing the same process; delete /audio from the system folder, then copy/paste the other /audio folder that holds all of the new tones.
stevew84 said:
Yea this happened on Weapon G2X also, every ICS I've used has been good to go, and I've been doing the same process; delete /audio from the system folder, then copy/paste the other /audio folder that holds all of the new tones.
Click to expand...
Click to collapse
I did the exact process you did and mine is playing and using them as no problems with phone calls and texts.
mt3g said:
I did the exact process you did and mine is playing and using them as no problems with phone calls and texts.
Click to expand...
Click to collapse
Weird, because like I said I've always had this problem with GB ROMS. Thanks for the help though.
On mine (XBoarders Rom) I just created folders named ringtones and notifications on the _External SD and it found them.
android likes to access ringtones by id, and not a filename. so it leads to strange things happening like this (one time a friend of mine moved all his ringtones to his computer, then back. when he booted up his phone all the ringtones were switched around )
just try wiping cache in CWM after changing them around and see if that does the trick.
On my nexus 4 I could create new directories ("Ringtones","Notifications", "Alarms") on my virtual sd card and place tones in there. Then the preference lists for choosing these notification types showed the extra tones.
On the nexus 5 this doesn't seem to happen. Does anyone know of a different way to do this?
andrewpmoore said:
On my nexus 4 I could create new directories ("Ringtones","Notifications", "Alarms") on my virtual sd card and place tones in there. Then the preference lists for choosing these notification types showed the extra tones.
On the nexus 5 this doesn't seem to happen. Does anyone know of a different way to do this?
Click to expand...
Click to collapse
I'm getting files show in the preference lists up from /sdcard/media/audio/ringtones - however they're just playing a "bong" noise, not the actual mp3.
andrewpmoore said:
On my nexus 4 I could create new directories ("Ringtones","Notifications", "Alarms") on my virtual sd card and place tones in there. Then the preference lists for choosing these notification types showed the extra tones.
On the nexus 5 this doesn't seem to happen. Does anyone know of a different way to do this?
Click to expand...
Click to collapse
I'm having the same problem. Any solutions found yet?
all my ringtones and custom notifications are working just fine
Sent from my Nexus 5 using xda app-developers app
Not working for me either on n4, n5, or the n7 with stock Rom. Worked fine when I used aokp.
The only way I can get it to sort of work now is use rings extended then select es file explorer and naturally navigate to the file. Then it plays fine. They just won't show up to preview them the way it normal did.
It does work I put them in the system audio notification ect folder, but I'm trying too avoid messing with system for the first time.
Sent from my Nexus 7 using Tapatalk 2
I got it working. Very frustrating. Initially what i did was download all my notifications and such from dropbox directly to my phone and put them in the correct folders. Rebooted ect and it didn't work. I was told to try plugging my phone into the computer and moving the folders and around and back into the right folder. Then I disconnected from computer then they showed up. I wonder if the media scan isn't working unless you unplug USB? IDK, but it works now.
Sounds silly, but try it.
http://support.t-mobile.com/docs/DOC-5980
If the device rooted, you can move the files the /system/media/audio/ringtones, notifications etc. folder. Work like charm!
Sent from my Nexus 7 using xda app-developers app
Thanks!
frigidazzi said:
I got it working. Very frustrating. Initially what i did was download all my notifications and such from dropbox directly to my phone and put them in the correct folders. Rebooted ect and it didn't work. I was told to try plugging my phone into the computer and moving the folders and around and back into the right folder. Then I disconnected from computer then they showed up. I wonder if the media scan isn't working unless you unplug USB? IDK, but it works now.
Sounds silly, but try it.
http://support.t-mobile.com/docs/DOC-5980
Click to expand...
Click to collapse
This did the trick for me too, thanks for the tip!
frigidazzi said:
I got it working. Very frustrating. Initially what i did was download all my notifications and such from dropbox directly to my phone and put them in the correct folders. Rebooted ect and it didn't work. I was told to try plugging my phone into the computer and moving the folders and around and back into the right folder. Then I disconnected from computer then they showed up. I wonder if the media scan isn't working unless you unplug USB? IDK, but it works now.
Sounds silly, but try it.
Click to expand...
Click to collapse
On my Nexus 4 I had my ringtones in /sdcard/Ringtones and that doesn't work with the Nexus 5. I also tried /sdcard/media/Ringtones and that didn't work either. In both cases I even tried rebooting the phone after putting the mp3 files to hopefully trigger a media scan.
So what would the correct location be?
Thanks in advance,
Bernhard
tangofan said:
On my Nexus 4 I had my ringtones in /sdcard/Ringtones and that doesn't work with the Nexus 5.
Click to expand...
Click to collapse
that works for me...I select the tones in any app via the default Media Storage picker
Sent from my Nexus 5 using xda app-developers app
n7of9 said:
that works for me...I select the tones in any app via the default Media Storage picker
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
Now I'm wondering, if it's a problem with the mp3 format of my ringtones. Could you please do me a favor and see, if the ringtone in the attached zip file works for you, when you put it in /sdcard/Ringtones .
Thanks so much,
Bernhard
tangofan said:
Now I'm wondering, if it's a problem with the mp3 format of my ringtones. Could you please do me a favor and see, if the ringtone in the attached zip file works for you, when you put it in /sdcard/Ringtones .
Thanks so much,
Bernhard
Click to expand...
Click to collapse
i downloaded it, AirDroided the mp3 to my phone (default is storage/emulated/0) /notifications, and selected it as my Hangouts sms tone...sent an sms to myself, turned off the screen, and bazinga, it works
when you say /sdcard, do you mean you made that directory via pc, or are you referring to ESFileExplorer (or the like) reporting the directory as /sdcard? on Nexii, '/sdcard' just points to storage/emulated/0 [i think it's something called a simlink, but i don't know what that is]
Works for for me... I use ASTRO File Manager
Notification MP3 went into SD Card > Media > Audio > Notification
Ringtone MP3 went into SD CARD > Ringtone
n7of9 said:
i downloaded it, AirDroided the mp3 to my phone (default is storage/emulated/0) /notifications, and selected it as my Hangouts sms tone...sent an sms to myself, turned off the screen, and bazinga, it works
when you say /sdcard, do you mean you made that directory via pc, or are you referring to ESFileExplorer (or the like) reporting the directory as /sdcard? on Nexii, '/sdcard' just points to storage/emulated/0 [i think it's something called a simlink, but i don't know what that is]
Click to expand...
Click to collapse
I am referring to the way ES FileExplorer reports it, so /sdcard/Ringtones is in fact /storage/emulated/0/Ringtones.
Could you please try it with putting it into /sdcard/Ringtones as well and see, if Media Storage shows it as a Ringtone.
No idea, why this doesn't work for me, when it works for others.
Bernhard
tangofan said:
Could you please try it with putting it into /sdcard/Ringtones as well and see, if Media Storage shows it as a Ringtone.
No idea, why this doesn't work for me, when it works for others.
Bernhard
Click to expand...
Click to collapse
sorry mate, I'm not doing it again, the result is going to be exactly the same
After some testing I can confirm this on a NON-ROOTED Nexus 5.
You can place notification sound files in either of these two locations, they work equally well. Note that this post, unlike many is typed with care and shows the EXACT path names from root with proper capitalization. I did not try all the bastardizations but case and plural/singular actually matter a lot of times.
/sdcard/Notifications (/storage/emulated/0/Notifications)
/sdcard/media/audio/notifications (/storage/emulated/0/media/audio/notifications)
HOW-EVER-ER...
You must move at least 1 file to the directory from your PC before ANYTHING will show up. It seems, and stands to reason, as others noted that moving from the PC while attached as a media device causes Android to rescan the directories. I did not test if you only need to move 1 file on the whole file system or if you have to do it per directory. But by moving one file out and back FROM THE PC all files in those directories became visible in notification pick lists.
I also rebooted after moving the files around. I probably should have checked before since it may not be necessary. But I am so accustomed to rebooting I forgot to test that.
Hope this clears things up.
tangofan said:
I am referring to the way ES FileExplorer reports it, so /sdcard/Ringtones is in fact /storage/emulated/0/Ringtones.
Could you please try it with putting it into /sdcard/Ringtones as well and see, if Media Storage shows it as a Ringtone.
No idea, why this doesn't work for me, when it works for others.
Bernhard
Click to expand...
Click to collapse
hey I got the same problem as you
The ringtone is not being picked default media storage and even it picked in some cases im getting the bong sound
so here is the work around
dont use the media storage as default ringtone picker .if you already did that ..go to settings->apps->all apps->media storage and clear defaults of it
then go to settings ->sounds->ringtone and use esfile explorer in this case ..select the ringtone you got using the file browser then it works
another file manager
as said some posts before i suggest to use another file manager than the stock one, it worked for me
I pluged the phone into the computer USB. Cpoied the ringtone of my choice to the ringtone folder. Did the same with the notification ringtone. Go and select the file in Settings...Sound. Mine were .ogg files
Once you install the sound files in the various locations on the sdcard, such as /sdcard/Ringtones, you can update media storage by doing either of the following:
Go to settings -> apps -> all -> media storage and clear data, then reboot
Or
Use the app ScanMedia to update
it's quite loud when you're setting it down at night after a brief check. seems to be louder than the other volumes for some reason too.
Yes but you need root. And the modification would mean no OTA updates too.
Oddly with this particular sound, you cannot even delete it. You must replace it with a "silent" .ogg file. It cannot even be a text file renamed .ogg either. It must be a genuine ogg file, with no audio in it.
Then you have to put that in /system/media/audio/ui and it must be called WirelessChargingStarted.ogg
There MAY be an xposed module to do it too. I dont know it though.
edit> Here's my silent ogg that I use
https://dl.dropboxusercontent.com/u/20471345/SUroot/WirelessChargingStarted.ogg
rootSU said:
Yes but you need root. And the modification would mean no OTA updates too.
Oddly with this particular sound, you cannot even delete it. You must replace it with a "silent" .ogg file. It cannot even be a text file renamed .ogg either. It must be a genuine ogg file, with no audio in it.
Then you have to put that in /system/media/audio/ui and it must be called WirelessChargingStarted.ogg
There MAY be an xposed module to do it too. I dont know it though.
edit> Here's my silent ogg that I use
https://dl.dropboxusercontent.com/u/20471345/SUroot/WirelessChargingStarted.ogg
Click to expand...
Click to collapse
Thanks so much for the solution. One thing I had to do when using your ogg was to change permissions to -rw -r -r. If the permissions were not correct it was playing the default notification sound even though I had your file in place.
I can now charge my phone at night without worrying about waking the wife
I remember there is some xposed module for the same.. Check that if you are rooted...
Sent from my Nexus 5 using xda app-developers app
I can't seem to find the system folder from the android file transfer app. Do I need another program to find this file? I'm on a mac.
mellevdlinde said:
Gravitybox module
Sent from my Nexus 5 (Tapatalk)
Click to expand...
Click to collapse
Oh should have figured. So no way to disable this without rooting the phone?
http://forum.xda-developers.com/showthread.php?t=2587431
Sent from my Nexus 5 using xda app-developers app