Android 7.1 增大开机音量

Android 7.1 增大开机音量

最近接到项目需求想要增大设备的开机音量,具体修改参照如下:

/frameworks/av/services/audioflinger/Threads.cpp

#ifdef MTK_AUDIO
            // Do not change the volume, when boot sound open
            if (track->mFlags & IAudioFlinger::TRACK_BOOT) {
-                vlf = 0.25f;
+                vlf = 0.10f;
-                vrf = 0.25f;
+                vrf = 0.10f;
            }
#endif

重新编译验证,修改生效,设备的开机音量已增大

猜你喜欢

转载自blog.csdn.net/Jeffries_C/article/details/134788928