mirror of
https://github.com/pjgowtham/android_device_realme_ferrarri.git
synced 2026-02-16 02:30:41 +00:00
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:
@@ -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
|
||||||
|
|||||||
@@ -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 += \
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
2
rootdir/etc/init.recovery.target.rc
Normal file
2
rootdir/etc/init.recovery.target.rc
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
on init
|
||||||
|
setprop ro.sf.lcd_density 480
|
||||||
Reference in New Issue
Block a user