RK3288[android 7.1]调试笔记 强制横屏

RK3288[android 7.1]调试笔记 强制横屏

修改路径为/frameworks/base/services/core/java/com/android/server/wm/WindowManagerService.java文件

wangxd@build-server-100:~/work/dsy/rk3288-Android-7.0/frameworks/base(m_android_7_0)$ git diff   /services/core/java/com/android/server/wm/WindowManagerService.java
diff --git a/services/core/java/com/android/server/wm/WindowManagerService.java b/services/core/java/com/android/
index f4ba143..6432e65 100755
--- a/services/core/java/com/android/server/wm/WindowManagerService.java
+++ b/services/core/java/com/android/server/wm/WindowManagerService.java
@@ -4360,7 +4360,9 @@ public class WindowManagerService extends IWindowManager.Stub
     boolean updateOrientationFromAppTokensLocked(boolean inTransaction) {
         long ident = Binder.clearCallingIdentity();
         try {
-            int req = getOrientationLocked();
+          //  int req = getOrientationLocked();
+            //SCREEN_ORIENTATION_LANDSCAPE  横屏显示 
+             int req = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
             if (req != mLastOrientation) {
                 mLastOrientation = req;
                 //send a message to Policy indicating orientation change to take

SCREEN_ORIENTATION_LANDSCAPE :横屏显示

SCREEN_ORIENTATION_PORTRAIT : 竖屏显示

你可能感兴趣的:(RK32887.0,调试笔记,RK)