Hi,

we are building two types of custom devices, both have identical 640x480 
displays, but in one device the display is mounted in landscape orientation 
and the other in portrait orientation.

They are working fine under Android 4.1.1 using the "ro.sf.hwrotation" 
build property.

However, we are now upgrading to Android 5.1.1 and this property has been 
removed with the comment "get rid of ro.sf.hwrotation, it's not used 
anymore"
[see 
https://android.googlesource.com/platform/frameworks/native/+/98a121aa916eb7acbf11df0e3e31a6fede6fc9d
 
]

Setting the properties

persist.demo.remoterotation=portarait
persist.demo.rotationlock=true

Fixes it for the Android UI but the orientation is still wrong in the 
bootanimation
Furthermore, reading the code in 
frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
 
it would seem these are intended for remote displays.

So, what is the proper way of doing this?

Martin

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to