From 965a3fb846e1757010a9c62cb88d8ff52329c358 Mon Sep 17 00:00:00 2001 From: Mariia Sandrikova Date: Wed, 7 Dec 2022 01:28:47 +0000 Subject: [PATCH 1/2] [5/n][Pro] Change natural device orientation to portrait. Introduce debug.sf.ignore_hwc_physical_display_orientation to allow ignoring physical orientation provided through hwc API in favour of 'ro.surface_flinger.primary_display_orientation' to avoid breaking the build even for a short period of time since there is no direct way to synchronize landing of this CLs chain with pa/2342172 Test: manual Bug: 246793311 Change-Id: Iffbdc13149f517f0b59b313f1fe1f7900cc8597e --- system_ext/private/property_contexts | 2 ++ tangorpro-sepolicy.mk | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 system_ext/private/property_contexts diff --git a/system_ext/private/property_contexts b/system_ext/private/property_contexts new file mode 100644 index 0000000..44ac29f --- /dev/null +++ b/system_ext/private/property_contexts @@ -0,0 +1,2 @@ +# TODO(b/246793311): Clean up a temporary property once pa/2342172 lands +debug.sf.ignore_hwc_physical_display_orientation u:object_r:surfaceflinger_prop:s0 exact bool \ No newline at end of file diff --git a/tangorpro-sepolicy.mk b/tangorpro-sepolicy.mk index ddb98de..f16f331 100644 --- a/tangorpro-sepolicy.mk +++ b/tangorpro-sepolicy.mk @@ -9,3 +9,6 @@ BOARD_SEPOLICY_DIRS += device/google/tangorpro-sepolicy/fingerprint_capacitance PRODUCT_PUBLIC_SEPOLICY_DIRS += device/google/atv/audio_proxy/sepolicy/public BOARD_VENDOR_SEPOLICY_DIRS += device/google/atv/audio_proxy/sepolicy/vendor PRODUCT_PRIVATE_SEPOLICY_DIRS += vendor/google/gms/src/sepolicy/tv + +# system_ext +SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += device/google/tangorpro-sepolicy/system_ext/private From 11808aa59bae0fa058a7dad42b9108390d710b4a Mon Sep 17 00:00:00 2001 From: Mariia Sandrikova Date: Sat, 10 Dec 2022 02:49:39 +0000 Subject: [PATCH 2/2] [1/2][Pro] Set orientation for boot animation and default display rotation. Introduce ro.bootanim.set_orientation_ sysprop that allows to change the default display rotation value and boot animation orientation to be different from the natural display orientation Context: go/tangor-natural-orientation Bug: 260627934 Test: manual test with all 4 values Change-Id: I14461e143c37440c4a655a1b175add86b60233b2 --- system_ext/private/property_contexts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system_ext/private/property_contexts b/system_ext/private/property_contexts index 44ac29f..f08d9e4 100644 --- a/system_ext/private/property_contexts +++ b/system_ext/private/property_contexts @@ -1,2 +1,6 @@ # TODO(b/246793311): Clean up a temporary property once pa/2342172 lands -debug.sf.ignore_hwc_physical_display_orientation u:object_r:surfaceflinger_prop:s0 exact bool \ No newline at end of file +debug.sf.ignore_hwc_physical_display_orientation u:object_r:surfaceflinger_prop:s0 exact bool + +# Default orienation for boot animation counted from natural orienation of the device +# Id at the end corresponds to the display id on the device. See b/246793311 for context. +ro.bootanim.set_orientation_4619827677550801152 u:object_r:surfaceflinger_prop:s0 exact enum ORIENTATION_0 ORIENTATION_90 ORIENTATION_180 ORIENTATION_270