先修改最高的音量step
--- a/SC60_AP/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
+++ b/SC60_AP/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
@@ -311,14 +311,14 @@ public class AudioService extends IAudioService.Stub/** Maximum volume index values for audio streams */protected static int[] MAX_STREAM_VOLUME = new int[] {
- 5, // STREAM_VOICE_CALL
- 7, // STREAM_SYSTEM
- 7, // STREAM_RING
+ 15, // STREAM_VOICE_CALL
+ 15, // STREAM_SYSTEM
+ 15, // STREAM_RING15, // STREAM_MUSIC
- 7, // STREAM_ALARM
- 7, // STREAM_NOTIFICATION
+ 15, // STREAM_ALARM
+ 15, // STREAM_NOTIFICATION15, // STREAM_BLUETOOTH_SCO
- 7, // STREAM_SYSTEM_ENFORCED
+ 15, // STREAM_SYSTEM_ENFORCED15, // STREAM_DTMF15, // STREAM_TTS15 // STREAM_ACCESSIBILITY
然后修改默认的音量但不一定好使
--- a/SC60_AP/frameworks/base/media/java/android/media/AudioSystem.java
+++ b/SC60_AP/frameworks/base/media/java/android/media/AudioSystem.java
@@ -1123,17 +1123,17 @@ public class AudioSystem}public static int[] DEFAULT_STREAM_VOLUME = new int[] {
- 4, // STREAM_VOICE_CALL
- 7, // STREAM_SYSTEM
- 5, // STREAM_RING
- 5, // STREAM_MUSIC
- 6, // STREAM_ALARM
- 5, // STREAM_NOTIFICATION
- 7, // STREAM_BLUETOOTH_SCO
- 7, // STREAM_SYSTEM_ENFORCED
- 5, // STREAM_DTMF
- 5, // STREAM_TTS
- 5, // STREAM_ACCESSIBILITY
+ 12, // STREAM_VOICE_CALL
+ 12, // STREAM_SYSTEM
+ 12, // STREAM_RING
+ 12, // STREAM_MUSIC
+ 12, // STREAM_ALARM
+ 12, // STREAM_NOTIFICATION
+ 12, // STREAM_BLUETOOTH_SCO
+ 12, // STREAM_SYSTEM_ENFORCED
+ 12, // STREAM_DTMF
+ 12, // STREAM_TTS
+ 12, // STREAM_ACCESSIBILITY};public static String streamToString(int stream) {
添加buildinfo中的音量默认设置
--- a/SC60_AP/build/make/tools/buildinfo.sh
+++ b/SC60_AP/build/make/tools/buildinfo.sh
@@ -46,7 +46,8 @@ echo "ro.product.cpu.abilist32=$TARGET_CPU_ABI_LIST_32_BIT"echo "ro.product.cpu.abilist64=$TARGET_CPU_ABI_LIST_64_BIT"if [ -n "$PRODUCT_DEFAULT_LOCALE" ] ; then
- echo "ro.product.locale=$PRODUCT_DEFAULT_LOCALE"
+ #echo "ro.product.locale=$PRODUCT_DEFAULT_LOCALE"
+ echo "ro.product.locale=zh-CN" //修改成默认中文fiecho "ro.wifi.channels=$PRODUCT_DEFAULT_WIFI_CHANNELS"@@ -55,4 +56,9 @@ if [ -n "$BUILD_THUMBPRINT" ] ; thenecho "ro.build.thumbprint=$BUILD_THUMBPRINT"fi+echo "ro.config.media_vol_default=12"
+echo "ro.config.vc_call_vol_default=12"
+echo "ro.config.alarm_vol_default=12"
+echo "ro.config.system_vol_default=12"
+echo "# end build properties"
也有可能被覆盖得搜索看下
--- a/SC60_AP/device/qcom/common/common64.mk
+++ b/SC60_AP/device/qcom/common/common64.mk
@@ -22,7 +22,7 @@ PRODUCT_PROPERTY_OVERRIDES += \persist.vendor.ntp.svr_2=cn.ntp.org.cn \sys.vendor.shutdown.waittime=500 \persist.vendor.radio.procedure_bytes=SKIP \
- ro.config.vc_call_vol_default=4 \
+ ro.config.vc_call_vol_default=12 \persist.dbg.volte_avail_ovr=1 \persist.dbg.vt_avail_ovr=1 \persist.dbg.wfc_avail_ovr=1