Skip to content

Commit

Permalink
merlin: Use TARGET_SCREEN_DENSITY
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Anton Hansson authored and althafvly committed Jan 16, 2021
1 parent 669288f commit f6681d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ TARGET_PROCESS_SDK_VERSION_OVERRIDE := \
/system/bin/mediaserver=23 \
/vendor/bin/mm-qcamera-daemon=23

# Display
TARGET_SCREEN_DENSITY := 320

# Kernel
TARGET_KERNEL_CONFIG := merlin_defconfig

Expand Down
3 changes: 1 addition & 2 deletions system_prop.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ PRODUCT_PROPERTY_OVERRIDES += \

# Display
PRODUCT_PROPERTY_OVERRIDES += \
debug.hwui.use_buffer_age=false \
ro.sf.lcd_density=320
debug.hwui.use_buffer_age=false

# Radio
PRODUCT_PROPERTY_OVERRIDES += \
Expand Down

0 comments on commit f6681d7

Please sign in to comment.