How to force all application display as landscape on Android P AOSP

84 views
Skip to first unread message

Trần Kha

unread,
Aug 21, 2019, 12:59:53 PM8/21/19
to android-porting
Hello all,

Currently,  I am porting Android P AOSP for my custom devices. I want to force all application run on landscape.

I got an issue as below:

I tried to set my devices screen as landscape mode by putting android.hardware.screen.landscape.xml to /system/etc/permission.

And also override config_forceDefaultOrientation=true.

But when i tried to run Antutu Benmark that supports portrait.

The application was cropped and only display a part of this application on the middle of system UI.

Does anyone have any solution for this issue?
Or do you have any suggestion to help me force all application display as landscape?

Best regards,
Kha Tran
Reply all
Reply to author
Forward
0 new messages