diff --git a/build/make/tools/buildinfo.sh b/build/make/tools/buildinfo.sh
index 3805b42..78e2cfe 100755
--- a/build/make/tools/buildinfo.sh
+++ b/build/make/tools/buildinfo.sh
@@ -61,4 +61,6 @@ if [ -n "$BUILD_THUMBPRINT" ] ; then
fi
echo "ro.build.characteristics=$TARGET_AAPT_CHARACTERISTICS"
+echo "ro.config.media_vol_default=3"
+
echo "# end build properties"
diff --git a/frameworks/base/media/java/android/media/AudioSystem.java b/frameworks/base/media/java/android/media/AudioSystem.java
old mode 100644
new mode 100755
index fa8667b..dbbe1dd
--- a/frameworks/base/media/java/android/media/AudioSystem.java
+++ b/frameworks/base/media/java/android/media/AudioSystem.java
@@ -867,9 +867,9 @@ public class AudioSystem
public static int[] DEFAULT_STREAM_VOLUME = new int[] {
4, // STREAM_VOICE_CALL
15, // STREAM_SYSTEM
- 8, // STREAM_RING
+ 6, // STREAM_RING
8, // STREAM_MUSIC
- 8, // STREAM_ALARM
+ 6, // STREAM_ALARM
8, // STREAM_NOTIFICATION
7, // STREAM_BLUETOOTH_SCO
15, // STREAM_SYSTEM_ENFORCED
参考链接:
MTK build.prop文件详情解析
Android8.1修改默认音量大小的方法
基于Android Q 修改默认音量等级
adb获取Android系统属性(adb shell getprop ***)数据来源
Android P 系统设置默认值
网友评论