Android-Framework blocks multitasking buttons by default and adds control attribute controls

1. Environment

Qualcomm 865 Android 10

2. Code modification

device/qcom/qssi/system.prop

+# Disable recent key
+persist.recentkey.disable=1

1-屏蔽多任务按键
0-打开多任务按键
frameworks/base/services/core/java/com/android/server/policy/PhoneWindowManager.java
@@ -2770,7 +2770,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
             }
             return 0;
         } else if (keyCode == KeyEvent.KEYCODE_APP_SWITCH) {
-            if (!keyguardOn) {
+			String recentKeyEnable = SystemProperties.get("persist.recentkey.disable");
+            if (!keyguardOn && "0".equals(recentKeyEnable)) {
                 if (down && repeatCount == 0) {
                     preloadRecentApps();
                 } else if (!down) {
   
   

おすすめ

転載: blog.csdn.net/banzhuantuqiang/article/details/134207801