From 6f35c9ee0b214f4924e4717f2750a4103bef0142 Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Fri, 18 Jan 2019 14:10:45 +0000 Subject: [PATCH] matisse-common: Use TARGET_SCREEN_DENSITY This variable is used to auto-populate the ro.sf.lcd_density as well as selecting density bucket for resources in recovery. Bug: 118676832 Test: adb shell getprop ro.sf.lcd_density Test: boot into recovery Change-Id: Ib383d18b61e7a2058a69ae26136aa053fdba4df2 --- BoardConfigCommon.mk | 3 +++ system.prop | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index f9557a9..8761e53 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -48,6 +48,9 @@ TARGET_NEEDS_TEXT_RELOCATIONS := true BOARD_NO_CHARGER_LED := true BOARD_CHARGER_DISABLE_INIT_BLANK := true +# Display +TARGET_SCREEN_DENSITY := 160 + # Extended Filesystem Support TARGET_EXFAT_DRIVER := sdfat diff --git a/system.prop b/system.prop index 54274c9..a043efc 100644 --- a/system.prop +++ b/system.prop @@ -31,7 +31,6 @@ camera2.portability.force_api=1 ro.hdcp2.rx=tz ro.qualcomm.cabl=1 ro.secwvk=144 -ro.sf.lcd_density=160 debug.sf.disable_backpressure=1 debug.sf.latch_unsignaled=1 debug.sf.recomputecrop=0