Project

General

Profile

replace default system sounds (alarm, ringtone, notification)

Added by My Self about 9 years ago

Sometimes I have the problem, that my internal (encrypted) storage on my device (i9100) could not be mounted after a (re)boot.

In most cases a simple reboot do the trick.
Sometime ago I found a (revert) commit, which was kindly commited to Replicant after a short email:
http://git.replicant.us/gitweb/?p=replicant/system/core.git;a=commit;h=47e9710fe5c8f9e72ab0370334101f38bfc279ab

After this, I definitely realized less problems in this context, but some special times, it happens again...
I doesn't have figured out why this is the case, yet.

What I can say:
  • The impact is, that my chosen alarm (clock) ringtone (phone) and notification (messaging) sounds are set back to default, because they're stored (in my case) on the internal storage (/storage/sdcard0).
  • I've realized, that the default sounds are located under:
    • /system/media/audio/alarms/Hassium.ogg
    • /system/media/audio/notifications/Argon.ogg
    • /system/media/audio/ringtones/Orion.ogg
  • and because of this the default system sounds are not affected, if my internal storage decides not to mount again, I've made a little workaround for me
  • but finally I noticed, that other people have the same problem: http://redmine.replicant.us/boards/9/topics/11319?r=11385#message-11385

and so I decided to release this workaround as a flashable .zip called: 'replace_default_sounds.zip' (attached).

Caution: If you flash this .zip unmodified, it will replace the 3 .ogg files (from above) with silent files, which could have a big impact, (for example a muted alarm clock)!

  1. So please modify the .zip file first. Meaning, get the sounds you want from wherever you want and make .ogg files from it, (for example by modify- and save them as .ogg files with the great open source tool: http://audacityteam.org/).
  2. After that replace the 3 .ogg files inside the flashable .zip, and please keep the path- and filenames unmodified.
  3. Then flash the .zip and you don't have to reset your sounds again, because your favorite sounds are the new system sounds.

I know this is not the best solution - especially if you often change your sounds, but I hope it helps anyway.