需求
- 由于设备没有重力加速度传感器,需要始终横屏显示
- 防止部分应用程序修改显示方向
patch
1 | diff --git a/device/rockchip/rk3288/system.prop b/device/rockchip/rk3288/system.prop |
1 | diff --git a/frameworks/base/services/core/java/com/android/server/wm/WindowManagerService.java b/frameworks/base/services/core/java/com/android/server/wm/WindowManagerService.java |
SCREEN_ORIENTATION_LANDSCAPE :横屏显示
SCREEN_ORIENTATION_PORTRAIT : 竖屏显示