Skip to content

Commit

Permalink
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: grep ro.sf.lcd_density vendor/build.prop
Test: verify recovery_density value in build
Change-Id: I9f57a87a6c2d15c138dc3e6e7daa01bd5f5f950c
  • Loading branch information
Anton Hansson committed Jan 18, 2019
1 parent af9d907 commit 15123b8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions bonito/BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#

TARGET_BOOTLOADER_BOARD_NAME := bonito
TARGET_SCREEN_DENSITY := 400
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 165

include device/google/bonito/BoardConfig-common.mk
Expand Down
3 changes: 0 additions & 3 deletions bonito/init.bonito.rc
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@

import /vendor/etc/init/hw/init.${ro.boot.hardware.platform}.rc

on init
setprop ro.sf.lcd_density 400

on property:sys.boot_completed=1
# HardwareInfo needs to be able to read display info
chmod 444 /sys/devices/platform/soc/soc:qcom,dsi-display@50/panel_info/panel0/serial_number
Expand Down
1 change: 1 addition & 0 deletions sargo/BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#

TARGET_BOOTLOADER_BOARD_NAME := sargo
TARGET_SCREEN_DENSITY := 440
TARGET_RECOVERY_UI_MARGIN_HEIGHT := 20

include device/google/bonito/BoardConfig-common.mk
Expand Down
3 changes: 0 additions & 3 deletions sargo/init.sargo.rc
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@

import /vendor/etc/init/hw/init.${ro.boot.hardware.platform}.rc

on init
setprop ro.sf.lcd_density 440

on property:sys.boot_completed=1
# HardwareInfo needs to be able to read display info
chmod 444 /sys/devices/platform/soc/soc:qcom,dsi-display@51/panel_info/panel0/serial_number
Expand Down

0 comments on commit 15123b8

Please sign in to comment.