Platform: Rockchip
OS: Android 6.0
Kernel: 3.10.92
[email protected]:~/rk3288/device/rockchip/rk3288$ g df
diff --git a/system.prop b/system.prop
index f407b0f..e2aaf5
--- a/system.prop
+++ b/system.prop
@@ -, +, @@ persist.sys.country=CN
#Kris, 170405, support to restore apks after wipe data.
persist.benebot.restore=
+
+persist.display.portrait=true
調用處:
WindowManagerService.java
public boolean updateRotationUncheckedLocked(boolean inTransaction) {
if("true".equals(SystemProperties.get("persist.display.portrait","false"))){
rotation = Surface.ROTATION_90;
}
}