RK3399 android9 打开settings里面的hdmi设置功能

RK3399 android9 默认没有在设置的display界面打开hdmi分辨率设置。

查看HdmiSettings.java,里面有个使能函数isAvailable() ,判断系统属性ro.rk.hdmisetting是否有设置。这个属性在device.mk下面有设置。需要打开宏 BOARD_SHOW_HDMI_SETTING := true

所以补丁如下:

Index: device/rockchip/common/manifest.xml
===================================================================
--- device/rockchip/common/manifest.xml	(revision 407)
+++ device/rockchip/common/manifest.xml	(revision 408)
@@ -200,6 +200,15 @@
             <instance>default</instance>
         </interface>
     </hal>
+		<hal format="hidl">
+				<name>rockchip.hardware.outputmanager</name>
+				<transport>hwbinder</transport>
+				<version>1.0</version>
+				<interface>
+						<name>IRkOutputManager</name>
+						<instance>default</instance>
+				</interface>
+		</hal>
 
 </manifest>
 
Index: device/rockchip/rk3288/BoardConfig.mk
===================================================================
--- device/rockchip/rk3288/BoardConfig.mk	(revision 407)
+++ device/rockchip/rk3288/BoardConfig.mk	(revision 408)
@@ -101,3 +101,5 @@
 
 # enable SVELTE malloc
 MALLOC_SVELTE := true
+
+BOARD_SHOW_HDMI_SETTING := true
\ No newline at end of file

 

posted @ 2024-01-25 17:09  simple雨  阅读(142)  评论(0编辑  收藏  举报