How do you set the default display orientation in Android 7 aosp?
1,797 views
Skip to first unread message
Nirmit Shah
unread,
Dec 11, 2017, 3:59:22 PM12/11/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-porting
There used to be "ro.sf.hwrotation" property in the previous android to set the default natural display orientation. Can anyone tell me the correct way to set the default display orientation, currently it defaults to portrait but I want it to be in landscape mode? Is there a support doc for this?
satur9nine
unread,
May 12, 2018, 10:41:40 AM5/12/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-porting
Same question here.
satur9nine
unread,
Jun 2, 2018, 11:53:05 PM6/2/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-porting
I did some research.
In the past there was ro.sf.hwrotation, but Google removed this property. However, some people have resurrected it. LineageOS is pretty trustworthy. Search their code for uses of this property in github project https://github.com/LineageOS/android_frameworks_native. Here are a couple commits you will find:
Maybe someone at Google would kindly explain why we can't have this in AOSP?
Jaymin D
unread,
Aug 23, 2018, 11:28:02 AM8/23/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-porting
Hi,
I have set the default orientation to LANDSCAPE in my Android AOSP 7, by changing in file - "packages/apps/Launcher3/src/com/android/launcher3/Launcher.java" as below: