Ringtones in last build

232 views
Skip to first unread message

Luca Belluccini

unread,
Apr 16, 2009, 5:51:19 AM4/16/09
to android-porting
I built the installer image for x86 (added include frameworks/base/
data/sounds/OriginalAudio.mk in mk files).
The ogg files are correctly placed under system/media/audio/
ringtones/.
When I go in settings panel, no ringtone is displayed.
In logcat, I can see:
MediaPlayerService: Couldn't open fd for content://settings/system/ringtone
MediaPlayer: Unable to create media player
RingtoneManager: Failed to open ringtone content://settings/system/ringtone

How to refresh content provider entries?

Dave Sparks

unread,
Apr 16, 2009, 4:18:39 PM4/16/09
to android-porting
This should happen automatically. Did reset the data partition?

Luca Belluccini

unread,
Apr 16, 2009, 5:33:15 PM4/16/09
to android-porting
Mh... There's a command line way to do this? I'm on a real eeepc. I
don't think reset to default is able to fix this.

Dave Sparks

unread,
Apr 16, 2009, 8:31:51 PM4/16/09
to android-porting
From the shell: "wipe data"

Luca Belluccini

unread,
Apr 17, 2009, 3:32:13 AM4/17/09
to android-porting
Nothing to do... Database is not rebuilt... Any hint?

Michael Trimarchi

unread,
May 19, 2009, 2:35:27 AM5/19/09
to android...@googlegroups.com
Hi,

Luca Belluccini wrote:
> Nothing to do... Database is not rebuilt... Any hint?
>
> On Apr 17, 2:31 am, Dave Sparks <davidspa...@android.com> wrote:
I have the same problem:

W/AudioService( 794): MediaPlayer IOException: java.io.IOException:
setDataSource failed.: status=0x80000000
E/MediaPlayerService( 777): Couldn't open fd for
content://settings/system/ringtone
E/MediaPlayer( 1121): Unable to to create media player
E/RingtoneManager( 1121): Failed to open ringtone
content://settings/system/ringtone
E/MediaPlayer( 1121): Unable to to create media player
D/dalvikvm( 1121): GC freed 6212 objects / 451768 bytes in 143ms
W/Ringtone( 1121): Couldn't set the stream type
W/Ringtone( 1121): java.io.IOException: setDataSourceFD failed.:
status=0x80000000
W/Ringtone( 1121): at android.media.MediaPlayer.setDataSource(Native
Method)
W/Ringtone( 1121): at
android.media.Ringtone.openMediaPlayer(Ringtone.java:173)
W/Ringtone( 1121): at
android.media.Ringtone.setStreamType(Ringtone.java:87)
W/Ringtone( 1121): at
android.preference.VolumePreference$SeekBarVolumizer.initSeekBar(VolumePreference.java:154)


How this url are mapped in the filesystem?

Michael

Sean McNeil

unread,
May 19, 2009, 2:41:53 AM5/19/09
to android...@googlegroups.com
You need to read frameworks/base/data/sounds/AudioPackage2.mk.

Basically, there are 2 sets of audio files now. One for limited flash
devices, one for those that have more room. So you have to include the
.mk for the set that fits your environment. This would be done in your
vendor/xxx/xxx/Android.mk or some place similar.

Michael Trimarchi

unread,
May 19, 2009, 2:47:48 AM5/19/09
to android...@googlegroups.com
Hi,

Sean McNeil wrote:
> You need to read frameworks/base/data/sounds/AudioPackage2.mk.
>
> Basically, there are 2 sets of audio files now. One for limited flash
> devices, one for those that have more room. So you have to include the
> .mk for the set that fits your environment. This would be done in your
> vendor/xxx/xxx/Android.mk or some place similar.
>
Thanks , I have done now :), you are great...
I have some trouble with the new patch on alsa. Maybe I fix with a
revert of
your last commit, but It is
related to somenthing compilation issue under freerunner.

So when it try to open a device, it gives an error on the device
subtype, but I'm
sure that always is correct. Do you have any idea. Last time I must
readd the short-enums
option because crash in a function, but now every revert is impposible.
You work a lot
on alsa side, can you give me some hint?

Michael

Sean McNeil

unread,
May 21, 2009, 12:19:18 AM5/21/09
to android...@googlegroups.com
Hi Michael,

I'm not certain I follow your issue. What is your device subtype? I've
taken out the -fno-short-enums as that is default on the newer baseline.
Perhaps you could check "make hide=" and make sure that option is passed
to the compiler.

Shaun

unread,
May 28, 2009, 7:55:36 PM5/28/09
to android-porting
Hi,

I am also facing similar issue on latest android build.
I am not able to access any ringtone.
May I know how this issue was solved ?
Reply all
Reply to author
Forward
0 new messages