How to make display work in portrait mode for Android.

Document created by Ivan.liu Employee on Aug 17, 2018
Version 1Show Document
  • View in full screen mode

Sometimes there is a requirement to make display work in portrait mode when physical panel is in landscap mode.

 

setprop persist.demo.rotationlock true
setprop persist.demo.remoterotation portrait

The above codes can be set in init.rc to take effect when android boot up.

Attachments

    Outcomes