Platform: RK3288
OS: Android 6.0
Kernel: 3.10.92
现象:
系统默认横屏,使用酷狗等竖屏软件后移植竖屏无法回到横屏状态.
解决方法:
[kris@:~/rk3288/frameworks/base]$ g df 33958d2f54ce46a94a62f073cfb184967f6ee64b 2269e0dc07b6855ccca709c0d297ba7a6a70ab0a
diff –git a/services/core/java/com/android/server/wm/WindowManagerService.java b/services/core/java/com/android/server/wm/WindowManagerService.java
index 9542d39..50b43d5 100755
— a/services/core/java/com/android/server/wm/WindowManagerService.java
+++ b/services/core/java/com/android/server/wm/WindowManagerService.java
@@ -4085,12 +4085,6 @@ public class WindowManagerService extends IWindowManager.Stub
long ident = Binder.clearCallingIdentity();
try {
int req = getOrientationLocked();
+
+ /*Kris, 20170214, fix the issue that portrait apks lead screen to landscape. {*/
+ if (req == ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED)
+ req = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
+ /*Kris, 20170214, fix the issue that portrait apks lead screen to landscape. }*/
+
if (req != mForcedAppOrientation) {
mForcedAppOrientation = req;
//send a message to Policy indicating orientation change to take
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!