Landscape Orientation with Portrait Switching

Moderators: mdrjr, odroid

Landscape Orientation with Portrait Switching

Unread postby ajb » Fri May 18, 2018 5:48 am

Hello Everybody, hello Hardkernel team,

I just bought the Odroid-C2 to use it as an Android media center system; when installing the last Marshmallow image, I discovered a problem by some apps (like ccleaner): they switch the screen orientation into portrait mode. Because I don't like to get a 90 degree neck problem, I searched and found a simple solution for that problem:

from frameworks/base/services/core/java/com/android/server/policy/
* property: has three cases:
* 1.force_land: always show with landscape, if a portrait apk, system will scale up it
* 2.middle_port: if a portrait apk, will show in the middle of the screen, left and right will show black
* 3.original: original orientation, if a portrait apk, will rotate 270 degree

So please change the key-value entry in build.prop from

and your customers will thanx you that :D
Posts: 1
Joined: Fri May 18, 2018 5:29 am
languages_spoken: german english
ODROIDs: Odroid-C2

Re: Landscape Orientation with Portrait Switching

Unread postby odroid » Fri May 18, 2018 11:34 pm

Thank you for the suggestion. We don't like the 90° or 270° neck problem either. :D
We will add an option in our ODROID-Utility app to toggle the rotation option since many customers are using ODROID as a digital signage solution in portrait mode.
User avatar
Site Admin
Posts: 28718
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English

Re: Landscape Orientation with Portrait Switching

Unread postby benwillcox » Sat May 19, 2018 4:54 am

This would be very useful in a Car PC application too. At the moment we can workaround this with one of the many orientation fixing Apps, but it would be a nicer solution to have this integrated.

Posts: 108
Joined: Wed Oct 05, 2016 6:34 pm
Location: United Kingdom
languages_spoken: english

Return to Android

Who is online

Users browsing this forum: No registered users and 2 guests