How to set the main screen display in Landscape and Portrait in a config-able way.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to set the main screen display in Landscape and Portrait in a config-able way.

427 Views
13614278
Contributor III

We're running Android 9.0 on IMX8MINI. We had a display screen, without gravity sensor.

There're 2 different customer's products for this:

1. One customer wants to have the launcher on the screen displayed in Portrait

2. The other customer wants to let it in Landscape.

We knew changing the AndroidManifest.xml in Launcher3 APK may work. But we're seeking if there's any config-able way to set this(such as modify the product BoardConfig.mk, modify some kind of property value, or something else), because we want to using the same source code, as we have many customers, we can't do this with different source code.

0 Kudos
1 Reply

422 Views
b36401
NXP Employee
NXP Employee

Please try to add "ROTATION := 90" or 270 into BoardConfig.mk.

0 Kudos