[RK3399][Android7.1] 调试笔记 --- 设置搜狗为开机默认输入法

Platform: RK3399
OS: Android 7.1
Kernel: v4.4.83

除了Android 6.0上的改动之外还需要修改如下部分:

diff --git a/services/core/java/com/android/server/InputMethodManagerService.java b/services/core/java/com/android/server/InputMethodManagerService.java
index df1b6f5..9622a3a 100644
--- a/services/core/java/com/android/server/InputMethodManagerService.java
+++ b/services/core/java/com/android/server/InputMethodManagerService.java
@@ -3083,6 +3083,8 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
         }

         // TODO: The following code should find better place to live.
+        //Kris, 180718, don't reset  sogou input method.
+        /*
         if (!resetDefaultEnabledIme) {
             boolean enabledImeFound = false;
             final List enabledImes = mSettings.getEnabledInputMethodListLocked();
@@ -3099,7 +3101,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
                 resetDefaultEnabledIme = true;
                 resetSelectedInputMethodAndSubtypeLocked("");
             }
-        }
+        }*/

         if (resetDefaultEnabledIme) {
             final ArrayList defaultEnabledIme =

Android 6.0改动见:
[RK3288][Android6.0] 调试笔记 — 设置中文为默认输入法

你可能感兴趣的:(RK3399,子类__Android)