Android Launcher3 removes the application list, secondary menu, and displays all applications on the desktop

The modification takes RK3288 Android 5.1 as an example. The modification method of Launcher3 should be the same.

 

The changes are as follows:

diff --git a/src/com/android/launcher3/LauncherAppState.java b/src/com/android/launcher3/LauncherAppState.java
index b7c45a34..9d5f221d 100644
--- a/src/com/android/launcher3/LauncherAppState.java
+++ b/src/com/android/launcher3/LauncherAppState.java
@@ -275,8 +275,9 @@ public class LauncherAppState implements DeviceProfile.DeviceProfileCallbacks {

     public static boolean isDisableAllApps() {
         // Returns false on non-dogfood builds.
-        return getInstance().mBuildInfo.isDogfoodBuild() &&
-                Utilities.isPropertyEnabled(Launcher.DISABLE_ALL_APPS_PROPERTY);
+     //   return getInstance().mBuildInfo.isDogfoodBuild() &&
+       //         Utilities.isPropertyEnabled(Launcher.DISABLE_ALL_APPS_PROPERTY);
+       return true;        //返回true,表示不显示应用列表


     }

     public static boolean isDogfoodBuild() {

 

There are many ways to remove unnecessary applications. Anyway, I delete unnecessary applications in the compiled Out. 

Refer to the following article to delete the apps you don’t want: https://blog.csdn.net/kanyueliang410/article/details/78962288

 

Application placement layout, device/rockchip/rk3288/overlay/packages/apps/Launcher3/res/xml/default_workspace_5x6.xml

After the modification, the interface is as follows

Guess you like

Origin blog.csdn.net/qq1226176787/article/details/90231850