From e28a4937ec9f608ced6008a9789ab190c5c09913 Mon Sep 17 00:00:00 2001 From: Mariia Sandrikova Date: Sat, 10 Dec 2022 02:37:22 +0000 Subject: [PATCH] [2/2][Pro] Set orientation for boot animation and default display rotation. Change the default display rotation value and boot animation orientation to 270. This is needed to preserve primary landscape UX after device natural orientation changes to portrait. Context: go/tangor-natural-orientation Bug: 260627934 Test: manual test with all 4 values Change-Id: I1ff42f7df21ec8231ff19fd7e209cfbb84537f93 --- device-tangorpro.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/device-tangorpro.mk b/device-tangorpro.mk index 13aa7e6..db59603 100644 --- a/device-tangorpro.mk +++ b/device-tangorpro.mk @@ -150,6 +150,11 @@ PRODUCT_PROPERTY_OVERRIDES += ro.crypto.metadata_init_delete_all_keys.enabled=fa PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.primary_display_orientation=ORIENTATION_0 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.ignore_hwc_physical_display_orientation=true +# Set boot animation orientation and default display rotation to be landscape since Tangor +# natural orientation is portrait. Id at the end corresponds to the display id on the device. +# See b/246793311 for context. +PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.bootanim.set_orientation_4619827677550801152=ORIENTATION_270 + # Display white balance PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ ro.surface_flinger.display_primary_red=0.5128,0.2413,0.0000 \