From 0c975bb717812eb26d43a41a1256e5e63d04fde2 Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Fri, 18 Jan 2019 14:10:45 +0000 Subject: [PATCH] j7elte: 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 --- device.mk | 3 +++ system_prop.mk | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/device.mk b/device.mk index 39888cb..1e7a070 100644 --- a/device.mk +++ b/device.mk @@ -38,6 +38,9 @@ PRODUCT_PACKAGES += \ camera.universal7580 \ Snap +# Display +TARGET_SCREEN_DENSITY := 320 + # GPS PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/gps/gps.conf:system/etc/gps.conf \ diff --git a/system_prop.mk b/system_prop.mk index 4628e25..959c16b 100644 --- a/system_prop.mk +++ b/system_prop.mk @@ -16,10 +16,6 @@ PRODUCT_PROPERTY_OVERRIDES += \ audio_hal.disable_two_mic=true -# Display -PRODUCT_PROPERTY_OVERRIDES += \ - ro.sf.lcd_density=320 - # Dalvik/Art PRODUCT_PROPERTY_OVERRIDES += \ dalvik.vm.heapstartsize=8m \ -- 2.20.1