Change the default Phone ringtone and notification ringtone

来源:互联网 发布:淘宝上两个号会黑吗? 编辑:程序博客网 时间:2024/05/21 10:37

Recently I tried to use the software to change the default Phone ringtone and notification ringtone,with the

RingtoneManager.setActualDefaultRingtoneUri(getContext(), getRingtoneType(), ringtoneUri);but it made no result,so I saw the configuration file from platform/build/target/product/core.mk,and change the

PRODUCT_PROPERTY_OVERRIDES := /
    ro.config.notification_sound=Pleasant_Ding.ogg /
    ro.config.ringtone=LoveFlute.ogg

to be

PRODUCT_PROPERTY_OVERRIDES := /
    ro.config.notification_sound=Bells.ogg /
    ro.config.ringtone=Panio.ogg

,and then make the system ,flash the image to G1,it makes OK.

 

Attention:you must make sure that the Bells.ogg and Panio.ogg are on the phone.you can find the .ogg with the command : find ./ -name *.ogg or using the adb shell to find ,the steps are

 

# adb shell

# ls

# cd data


# cd data

# cd com.android.providers.media

# ls