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"
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