Android13 通知栏和设置显示中添加副屏亮度条,调节副屏亮度

由于台式的Android设备,存在着两个屏幕显示的情况,故需要对Android系统开发一个可以调节副屏亮度的功能。

提交副屏亮度调节的效果如下:

涉及修改的文件如下:

java 复制代码
frameworks/base/services/core/java/com/android/server/am/ActivityManagerService.java 
frameworks/base/services/core/java/com/android/server/wm/DisplayPolicy.java 	
vendor/mediatek/proprietary/packages/apps/MtkSettings/res/values-zh-rCN/strings.xml
vendor/mediatek/proprietary/packages/apps/MtkSettings/res/values-zh-rHK/strings.xml 
vendor/mediatek/proprietary/packages/apps/MtkSettings/res/values-zh-rTW/strings.xml 
vendor/mediatek/proprietary/packages/apps/MtkSettings/res/values/strings.xml 
vendor/mediatek/proprietary/packages/apps/MtkSettings/res/xml/display_settings.xml 
vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/android/settings/DisplaySettings.java 	
vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/android/settings/display/BrightnessLevelPreferenceController.java 	
vendor/mediatek/proprietary/packages/apps/MtkSettings/src/com/android/settings/display/BrightnessLevelPreferenceController2.java 
vendor/mediatek/proprietary/packages/apps/SystemUI/AndroidManifest.xml 
vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/dagger/DefaultActivityBinder.java 	
vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/qs/QSPanel.java 	
vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/qs/QSPanelController.java 	
vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/settings/brightness/BrightnessController2.java 	
vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/settings/brightness/BrightnessDialog.java 	
vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/settings/brightness/BrightnessDialog2.java

具体实现的patch

相关推荐
汉克老师7 分钟前
GESP4级考试语法知识(贪心算法(四))
开发语言·c++·算法·贪心算法·图论·1024程序员节
何曾参静谧27 分钟前
「Py」模块篇 之 PyAutoGUI库自动化图形用户界面库
运维·python·自动化
pumpkin8451433 分钟前
客户端发送http请求进行流量控制
python·网络协议·http
smj2302_7968265240 分钟前
用枚举算法解决LeetCode第3348题最小可整除数位乘积II
python·算法·leetcode
爱吃生蚝的于勒1 小时前
C语言最简单的扫雷实现(解析加原码)
c语言·开发语言·学习·计算机网络·算法·游戏程序·关卡设计
Ai 编码助手1 小时前
Go语言 实现将中文转化为拼音
开发语言·后端·golang
hummhumm1 小时前
第 12 章 - Go语言 方法
java·开发语言·javascript·后端·python·sql·golang
hummhumm1 小时前
第 8 章 - Go语言 数组与切片
java·开发语言·javascript·python·sql·golang·database
何曾参静谧1 小时前
「QT」文件类 之 QDir 目录类
开发语言·qt
何曾参静谧1 小时前
「QT」文件类 之 QTemporaryDir 临时目录类
开发语言·qt