[AndroidO] [RK3399] -- 修改界面显示

界面显示的修改也是通过修改Android系统属性完成的, 修改如下:

diff --git a/device/rockchip/rk3399/rk3399_mid.mk b/device/rockchip/rk3399/rk3399_mid.mk
index ad5791a..30bba40 100755
--- a/device/rockchip/rk3399/rk3399_mid.mk
+++ b/device/rockchip/rk3399/rk3399_mid.mk
@@ -34,7 +34,7 @@ PRODUCT_COPY_FILES += vendor/rockchip/common/phone/etc/spn-conf.xml:system/etc/s
 PRODUCT_PROPERTY_OVERRIDES += \
     ro.product.version = 1.0.0 \
     ro.product.ota.host = www.rockchip.com:2300 \
-    ro.sf.lcd_density=180
+    ro.sf.lcd_density=280
 
 #PRODUCT_HAVE_OPTEE := true

总结:

1. 修改 ro.sf.lcd_density 属性的值来修改屏幕密度值, 数字越小,表示密度越大, 屏幕上可显示的内容就越多;

2. 通过 PRODUCT_PROPERTY_OVERRIDES 添加Android属性;

3. ro.sf.lcd_density 在编译完成后,被添加到build.prop文件中;

你可能感兴趣的:(AndroidO,RK3399)