"Unable to add new ringtone" java.lang.IllegalArgumentException: Unsupported ringtone type: 7

Paneologist

New member
Aug 7, 2024
2
0
1
Visit site
Hello,

I am trying to add a notification sound in Android 14 (in fact LineageOS 21, Fairphone 5). I get "Unable to add custom ringtone". The file worked always until Android 12 at least.

File is (according to "file" command):
Meow.ogg: Ogg data, Vorbis audio, mono, 44100 Hz, ~120002 bps, created by: Xiph.Org libVorbis I (1.0)

in the Android logs I see:
08-07 13:28:43.353 15563 15741 E RingtonePickerActivity: Unable to add new ringtone
08-07 13:28:43.353 15563 15741 E RingtonePickerActivity: java.lang.IllegalArgumentException: Unsupported ringtone type: 7
08-07 13:28:43.353 15563 15741 E RingtonePickerActivity: at android.media.RingtoneManager.getExternalDirectoryForType(RingtoneManager.java:1024)
08-07 13:28:43.353 15563 15741 E RingtonePickerActivity: at android.media.RingtoneManager.addCustomExternalRingtone(RingtoneManager.java:998)
08-07 13:28:43.353 15563 15741 E RingtonePickerActivity: at com.android.soundpicker.RingtonePickerActivity$2.doInBackground(RingtonePickerActivity.java:284)
08-07 13:28:43.353 15563 15741 E RingtonePickerActivity: at com.android.soundpicker.RingtonePickerActivity$2.doInBackground(RingtonePickerActivity.java:280)
08-07 13:28:43.353 15563 15741 E RingtonePickerActivity: at android.os.AsyncTask$3.call(AsyncTask.java:394)
08-07 13:28:43.353 15563 15741 E RingtonePickerActivity: at java.util.concurrent.FutureTask.run(FutureTask.java:264)
08-07 13:28:43.353 15563 15741 E RingtonePickerActivity: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
08-07 13:28:43.353 15563 15741 E RingtonePickerActivity: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
08-07 13:28:43.353 15563 15741 E RingtonePickerActivity: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
08-07 13:28:43.353 15563 15741 E RingtonePickerActivity: at java.lang.Thread.run(Thread.java:1012)

what's wrong?

Thank you

P.S.:
File source is Wikimedia: