Android 9.0 修改音量等级

weiqifa@bsp-ubuntu1804:~/mt8167s-9.0-sdk$ git diff frameworks/base/services/core/java/com/android/server/audio/AudioService.java
diff --git a/frameworks/base/services/core/java/com/android/server/audio/AudioService.java b/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
index 5069871508..68602601b9 100644
--- a/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
+++ b/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
@@ -313,16 +313,16 @@ public class AudioService extends IAudioService.Stub
     /// M: Modify the max stream volume @{
     protected static int[] MAX_STREAM_VOLUME = new int[] {
         7,   // STREAM_VOICE_CALL
-        15,  // STREAM_SYSTEM
-        15,  // STREAM_RING
-        15,  // STREAM_MUSIC
-        15,  // STREAM_ALARM
-        15,  // STREAM_NOTIFICATION
-        15,  // STREAM_BLUETOOTH_SCO
-        15,  // STREAM_SYSTEM_ENFORCED
-        15,  // STREAM_DTMF
-        15,  // STREAM_TTS
-        15   // STREAM_ACCESSIBILITY
+        18,  // STREAM_SYSTEM
+        18,  // STREAM_RING
+        18,  // STREAM_MUSIC
+        18,  // STREAM_ALARM
+        18,  // STREAM_NOTIFICATION
+        18,  // STREAM_BLUETOOTH_SCO
+        18,  // STREAM_SYSTEM_ENFORCED
+        18,  // STREAM_DTMF
+        18,  // STREAM_TTS
+        18   // STREAM_ACCESSIBILITY
     };

     /** Minimum volume index values for audio streams */
weiqifa@bsp-ubuntu1804:~/mt8167s-9.0-sdk$

你可能感兴趣的:(Android)