设置关于声音的相关类:
\packages\apps\Settings\src\com\android\settings\notification\SoundSettings.java // 声音页面\packages\apps\Settings\res\xml\sound_settings.xml // 布局\packages\apps\Settings\src\com\android\settings\notification\RingtonePreferenceControllerBase.java // PreferenceController基类
\packages\apps\Settings\src\com\android\settings\notification\NotificationRingtonePreferenceController.java // 默认通知铃声PreferenceController\packages\apps\Settings\src\com\android\settings\notification\AlarmRingtonePreferenceController.java // 默认闹钟铃声PreferenceController\frameworks\base\media\java\android\media\RingtoneManager.java // 声音的最终调用类--------- content://media/internal/audio/media/14 默认通知 RingtoneManager.TYPE_NOTIFICATION
---------summary Canopus--------- content://media/internal/audio/media/24 手机铃声---------summary Digital Phone--------- content://media/internal/audio/media/10 默认闹钟提示音 RingtoneManager.TYPE_ALARM---------summary Oxygen\out\target\product\QT4004\system\media\audio //系统编译后的铃声所在位置
解决方案:
方案1:Z:\qt4004\trunk\LINUX\android\build\make\target\product\full_base.mk# Additional settings used in all AOSP builds
PRODUCT_PROPERTY_OVERRIDES := \ ro.config.ringtone=Argon.ogg \ ro.config.notification_sound=Argon.ogg方案2(如方案1无效,说明可能是out目录未删除,或者full_base.mk未调用到,可采用此方法(不推荐)):Z:\qt4004\trunk\LINUX\android\device\qcom\QT4004\system.prop#add olc@20180622 for Default sound
#ro.config.ringtone=Thunderfoot.oggro.config.notification_sound=Argon.oggro.config.alarm_alert=Argon.ogg