diff options
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
-rw-r--r-- | cmds/bootanimation/BootAnimation.cpp | 6 |
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") { |