Change the default Phone ringtone and notification ringtone
2010-01-06 10:29
549 查看
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
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
相关文章推荐
- Reminder: Change Magento`s default phone numbers and callouts before site launch
- The JRE could not be found. Edit the server and change the JRE location.
- Networks of Innovation: Change and Meaning in the Age of the Internet
- How to change the SQL Server 2008 default install path
- Change the Default Editor From Nano on Ubuntu Linux
- ORM中的对象间关联及其默认事务需要 - The Object Associations And The Default Transaction Requirements In ORM
- Wrong orientation? No orientation specified, and the default is horizontal, yet this layout has mult
- How to Change the Icon for a File Type in Windows 7 and Vista(转)
- 1.4 Dynamically change the look of an application by using view states,transitions and effects
- How to Change the Default Boot Device by Using the Boot PROM
- install jdk in ubuntu( please notice diffrent verstion and change the name in the configuration)
- test the difference between "DEFAULT NULL" and "DEFAULT 0"
- The JRE could not be found. Edit the server and change the JRE location.
- Git Init repository for remote terminal and change the remote master
- How to change the default run level of a RedHat 9.0 or Fedora Core Linux system
- How do I add new state and change the workflow of Purchase Order?
- How to Change the Default Author in Windows Eclipse?
- No orientation specified, and the default is horizontal.
- Android积累之《Wrong orientation? No orientation specified, and the default is horizontal, yet this la:》
- C++0x : Inefficient way to perform trivial named args and default args at the same time