j7elte: Use TARGET_SCREEN_DENSITY
authorAnton Hansson <hansson@google.com>
Fri, 18 Jan 2019 14:10:45 +0000 (14:10 +0000)
committerDario Trombello <dariotr@outlook.de>
Thu, 18 Jun 2020 19:41:27 +0000 (21:41 +0200)
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
system_prop.mk

index 39888cb3091f4d3d81d865fa099fc5ff45f2da53..1e7a070a37174066723b6ea45c69f96848a5c98d 100644 (file)
--- 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 \
index 4628e25f5478777438560f39c86d5385d9e44e6d..959c16b3a0a868bc95b1688e7580c98622d66a3a 100644 (file)
 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 \