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

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

提交副屏亮度调节的效果如下:
Android13 通知栏和设置显示中添加副屏亮度条,调节副屏亮度_第1张图片

涉及修改的文件如下:

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

你可能感兴趣的:(Android系统,python,开发语言)