美文网首页
Android 8.1 音量调节去掉铃声和闹钟,默认调节媒体音量

Android 8.1 音量调节去掉铃声和闹钟,默认调节媒体音量

作者: Hemsl | 来源:发表于2021-01-10 09:56 被阅读0次

惯例,直接上代码

iff --git a/frameworks/base/core/res/res/values/config.xml b/frameworks/base/core/res/res/values/config.xml
index 873a95b381..7604b3051f 100644
--- a/frameworks/base/core/res/res/values/config.xml
+++ b/frameworks/base/core/res/res/values/config.xml
@@ -1607,7 +1607,7 @@
     <!-- Flag indicating whether all audio streams should be mapped to
          one single stream. If true, all audio streams are mapped to
          STREAM_MUSIC as if it's on TV platform. -->
-    <bool name="config_single_volume">false</bool>
+    <bool name="config_single_volume">true</bool>

     <!-- Flag indicating that an outbound call must have a call capable phone account
          that has declared it can process the call's handle. -->

相关文章

网友评论

      本文标题:Android 8.1 音量调节去掉铃声和闹钟,默认调节媒体音量

      本文链接:https://www.haomeiwen.com/subject/oorkaktx.html