summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author YoungJoon Yang <youngjoonyang@google.com> 2023-11-13 15:34:28 +0900
committer YoungJoon Yang <youngjoonyang@google.com> 2023-11-13 16:02:07 +0900
commit9cf990e2f22500afdaa31a1450cd32f71638a4f8 (patch)
treede8dde937e02439f1cf87492cc1e1c5a340ecf94 /cmds/bootanimation/BootAnimation.cpp
parent0bc6b1e81239aa3c99d8351c81ad5517023e1fad (diff)
Set default rotation and boot animation orientation for logical display
Introduce ro.bootanim.set_orientation_logical_<display_id> allows to change the default orientation of logical display. Bug: 272527451 Test: Manual test with all 4 values Change-Id: I39a0d5df97d5185090b6a793e52ecaa5f3bc0baa
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
-rw-r--r--cmds/bootanimation/BootAnimation.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp
index 89776dba7878..820d2b0d607e 100644
--- a/cmds/bootanimation/BootAnimation.cpp
+++ b/cmds/bootanimation/BootAnimation.cpp
@@ -675,7 +675,11 @@ ui::Rotation BootAnimation::parseOrientationProperty() {
ss << "ro.bootanim.set_orientation_" << displayId.value;
return ss.str();
}();
- const auto syspropValue = android::base::GetProperty(syspropName, "ORIENTATION_0");
+ auto syspropValue = android::base::GetProperty(syspropName, "");
+ if (syspropValue == "") {
+ syspropValue = android::base::GetProperty("ro.bootanim.set_orientation_logical_0", "");
+ }
+
if (syspropValue == "ORIENTATION_90") {
return ui::ROTATION_90;
} else if (syspropValue == "ORIENTATION_180") {