安卓7.1系统源码 屏蔽系统home键 (平台msm8909)

home键不在起作用
frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java

diff --git a/frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java b/fram                                                                                                       eworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java
index 3d7be0a..8dd4265 100755
--- a/frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java
+++ b/frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java
@@ -3245,7 +3245,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
         // can never break it, although if keyguard is on, we do let
         // it handle it, because that gives us the correct 5 second
         // timeout.
-        if (keyCode == KeyEvent.KEYCODE_HOME) {
+       //czc 2019-10-09  spi to uart touch home
+        /*if (keyCode == KeyEvent.KEYCODE_HOME) {

             // If we have released the home key, and didn't do anything else
             // while it was pressed, then it is time to go home!
@@ -3313,8 +3314,11 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                 }
             }
             return -1;
-        } else if (keyCode == KeyEvent.KEYCODE_MENU) {
-            // Hijack modified menu keys for debugging features
+        }*/
+       // else if (keyCode == KeyEvent.KEYCODE_MENU) {
+        //end
+       if(keyCode == KeyEvent.KEYCODE_MENU){
+          // Hijack modified menu keys for debugging features
             final int chordBug = KeyEvent.META_SHIFT_ON;

             if (down && repeatCount == 0) {

你可能感兴趣的:(公司)