Revert navbar back to the right side of the screen under 270° rotation Since Android 8.0 (Oreo), when the device is rotated to 270° rotation, the navbar will go to the left side of the screen instead of staying to the right (as in 90° rotation):



As humanized as this sounds, it conflicts with some of my launcher/wallpaper mods, and also forces me to use the left hand under 270° rotation, so I don't see the change as beneficial and would like it reverted.

The answer could be decompiling and modifying SystemUI, or even modifying the Android source code and building (I have the know-how for that) - one just have to tell me where and how.

Any ideas?
As my investigation shows, Google calls it "Seascape Navigation Bar View" and deems it as a feature. This part of the code inside the Android framework determines whether the new left navbar layout should be used if 270° rotation happens. Making it still return NAV_BAR_RIGHT in the case effectively reverts the change. Tested side-by-side on a LineageOS compilation done personally.

Unfortunately for end users without access to source code, I don't know of a way to alter the behaviour yet: on older Android versions this change is supposed to be reflected in /system/framework/services.jar, but since Oreo it has both been split into a new /system/framework/services.jar.prof file and odexed, so currently available tools can't touch it as far as I know.