本文主要是介绍RK3588 13.0去掉SystemUI快速设置选项,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Android13.0的SystemUI下拉菜单有很多快速设置选项,有些选项对我们设备来说是多余的,用户要求去掉无用的选项,只保留Internet Bluetooth Screen record
去掉之前:
去掉之后:
为了去掉这些快速设置选项,试了很多地方,研究了很多代码,最后发现改这个config文件就可以去掉了
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index ff7f7886f928..e32e27922cc3 100644
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -27,7 +27,7 @@<!-- Do not translate. Defines the slots for the right-hand side icons. That is to say, theicons in the status bar that are not notifications. --><string-array name="config_statusBarIcons">
- <item><xliff:g id="id">@string/status_bar_no_calling</xliff:g></item>
+ <!--item><xliff:g id="id">@string/status_bar_no_calling</xliff:g></item><item><xliff:g id="id">@string/status_bar_call_strength</xliff:g></item><item><xliff:g id="id">@string/status_bar_alarm_clock</xliff:g></item><item><xliff:g id="id">@string/status_bar_rotate</xliff:g></item>
@@ -61,7 +61,11 @@<item><xliff:g id="id">@string/status_bar_mobile</xliff:g></item><item><xliff:g id="id">@string/status_bar_airplane</xliff:g></item><item><xliff:g id="id">@string/status_bar_battery</xliff:g></item>
- <item><xliff:g id="id">@string/status_bar_sensors_off</xliff:g></item>
+ <item><xliff:g id="id">@string/status_bar_sensors_off</xliff:g></item-->
+
+ <item><xliff:g id="id">@string/status_bar_screen_record</xliff:g></item>
+ <item><xliff:g id="id">@string/status_bar_bluetooth</xliff:g></item>
+ <item><xliff:g id="id">@string/status_bar_wifi</xliff:g></item>
但是还有一个Dump SysUI Heap的选项不知道怎么去掉
这篇关于RK3588 13.0去掉SystemUI快速设置选项的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!