From 525b1fea1084895387a213bd7bb07bf12932e960 Mon Sep 17 00:00:00 2001 From: bgcngm Date: Tue, 25 Feb 2020 22:20:25 +0100 Subject: [PATCH] gts210velte: Set display orientation via prop --- BoardConfig.mk | 3 --- device.mk | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index ad3861d..f89be50 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -24,9 +24,6 @@ TARGET_OTA_ASSERT_DEVICE := gts210velte # HIDL DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml -# Display -SF_PRIMARY_DISPLAY_ORIENTATION := 270 - # Kernel TARGET_KERNEL_CONFIG := gts210velte_defconfig diff --git a/device.mk b/device.mk index c56c4ab..3502b8e 100644 --- a/device.mk +++ b/device.mk @@ -30,6 +30,10 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ $(LOCAL_PATH)/audio/mixer_paths_wcd9330.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_wcd9330.xml +# Display +PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ + ro.surface_flinger.primary_display_orientation=ORIENTATION_270 + # Grip Power PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/wifi/grippower.info:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/qca_cld/grippower.info