tv: set correct aapt preference

* tvdpi is for 213 dpi and xhdpi is for 320 dpi. Android TV targets set
  320 dpi on 1920x1080 resolution [1].
* On AOSP16 1280x720 resolution is forced on tvdpi [2] as TvFrameworkOverlay
  RRO package only contains the resource for the preferred density.

[1]: https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-16.0.0_r1/data/etc/displayconfig/default_television.xml#16
[2]: https://android.googlesource.com/device/google/atv/+/refs/tags/android-16.0.0_r1/overlay/TvFrameworkOverlay/res/values-tvdpi/config.xml#23

Change-Id: If8ed07664d9925ab8226f15f8f6ce374d90e0f71
This commit is contained in:
Konsta
2025-10-11 00:11:24 +03:00
parent 44fa08f385
commit 0607f411f5

View File

@@ -9,7 +9,7 @@ DEVICE_PATH := device/brcm/rpi5
# Inherit device configuration
$(call inherit-product, device/brcm/rpi5/device.mk)
PRODUCT_AAPT_PREF_CONFIG := tvdpi
PRODUCT_AAPT_PREF_CONFIG := xhdpi
PRODUCT_CHARACTERISTICS := tv
$(call inherit-product, device/google/atv/products/atv_base.mk)