instantnoodlep: Set density to 480 while in recovery mode

* This allows us to provide usable recovery image for people
  who are still on OxygenOS dtbo as unmodified stock dtbo
  defaults to 1080p. While it'll make UI slightly smaller
  on Lineage dtbo, it doesn't make it unacceptable.

Change-Id: Ic216c9d17066765c1b06ffdd35f2543f412f18db
This commit is contained in:
LuK1337 2021-01-09 13:57:23 +01:00
parent 5261c29aec
commit 6ae6e6e555
4 changed files with 14 additions and 4 deletions

View File

@ -22,9 +22,6 @@ DEVICE_PATH := device/oneplus/instantnoodlep
# Bluetooth # Bluetooth
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth/include BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth/include
# Display
TARGET_SCREEN_DENSITY := 560
# Fingerprint # Fingerprint
SOONG_CONFIG_ONEPLUS_KONA_FOD_POS_X = 604 SOONG_CONFIG_ONEPLUS_KONA_FOD_POS_X = 604
SOONG_CONFIG_ONEPLUS_KONA_FOD_POS_Y = 2434 SOONG_CONFIG_ONEPLUS_KONA_FOD_POS_Y = 2434
@ -37,6 +34,7 @@ DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml
BOARD_SUPER_PARTITION_SIZE := 15032385536 BOARD_SUPER_PARTITION_SIZE := 15032385536
# Recovery # Recovery
TARGET_RECOVERY_DENSITY := xxhdpi
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom
# inherit from the proprietary version # inherit from the proprietary version

View File

@ -41,7 +41,8 @@ PRODUCT_COPY_FILES += \
# Device init scripts # Device init scripts
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
fstab.qcom fstab.qcom \
init.recovery.target.rc
# OPFeature # OPFeature
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \

View File

@ -17,3 +17,12 @@ LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/fstab.qcom LOCAL_SRC_FILES := etc/fstab.qcom
LOCAL_MODULE_PATH := $(TARGET_RAMDISK_OUT) LOCAL_MODULE_PATH := $(TARGET_RAMDISK_OUT)
include $(BUILD_PREBUILT) include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.recovery.target.rc
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/init.recovery.target.rc
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
include $(BUILD_PREBUILT)

View File

@ -0,0 +1,2 @@
on init
setprop ro.sf.lcd_density 480