Android12 Framework modifies the remote control to adjust the volume Step value

need:

The maximum media volume is adjusted to 100. At this time, using the remote control to adjust the volume increases by 1 each time, which is more troublesome to use. Therefore, you need to change the Step value of the remote control to adjust the volume from 1 to 4.

The following is the modified content.

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 4c63ab4c177..f1c9d086d4b 100755
--- a/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
+++ b/frameworks/base/services/core/java/com/android/server/audio/AudioService.java
@@ -218,7 +218,7 @@ public class AudioService extends IAudioService.Stub
     protected static final boolean DEBUG_AP = false;
 
     /** Debug volumes */
-    protected static final boolean DEBUG_VOL = false;
+    protected static final boolean DEBUG_VOL = true;
 
     /** debug calls to devices APIs */
     protected static final boolean DEBUG_DEVICES = false;
@@ -2919,7 +2919,7 @&#

Guess you like

Origin blog.csdn.net/guanmingyuangmy/article/details/131249714