I have a device with i.MX6 and Android 6, it uses the accelerometer to rotate display.
The problem is when device starts in the upside down orientation:
- bootanim is shown,
- Launcher app starts, inside onCreate() the app sets a reverse orientation (this is not visible as bootanim is still visible),
- bootanim is closed - after that Launcher app is shown, but for a short time is visible in a normal orientation until Android rotates the screen.
Is there any way to rotate Android display at the beginning, before start bootanim?