Android 13 打开某个应用隐藏Recents键

--- a/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarView.java
+++ b/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/NavigationBarView.java
@@ -103,6 +103,10 @@ import java.io.PrintWriter;
 import java.util.Map;
 import java.util.Optional;
 import java.util.function.Consumer;
+//yim
+import java.util.List;
+import java.util.ArrayList;
+import android.content.ComponentName;
 
 // UNISOC: Modify for bug 1978980
 public class NavigationBarView extends FrameLayout implements
@@ -750,10 +754,25 @@ public class NavigationBarView extends FrameLayout implements
             }
             /* @} */
         }
-
+               //yim   
+       try {
+         List tasks = ActivityManager.getService().getTasks(1);
+                       ComponentName componentInfo = tasks.get(0).topActivi

你可能感兴趣的:(SPRD,Android,12,/,13,源码修改,android)