[RK3288][Android6.0] 调试笔记 --- 使用竖屏软件后无法回到横屏状态
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 thatportrait apks lead screen to landscape. {*/
+if (req == ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED)
+req = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
+/*Kris, 20170214, fix the issue thatportrait apks lead screen to landscape. }*/
+
if (req != mForcedAppOrientation) {
mForcedAppOrientation = req;
//send a message to Policy indicating orientation change to take
推荐阅读
- 移动端h5调试方法
- Android6.0~9.0适配
- 那些年bug总结出来的调试代码技巧
- 汇编实验(格雷码转二进制(ASCII码)的实现和调试)
- TODO(小程序手机预览调试)
- 【Camera专题】Qcom-高通OTP编程调试指南-上
- Flutter应用如何调试--DevTools介绍(下)
- linux采用core的调试方法
- Injection|Injection For Xcode11 macOS 10.15 Catalina 亲测可用iOS模拟器UI界面调试实时刷新工具
- 驱动调试小结