Use a custom Launcher.apk instead of the system's

1. First use the adb shell command to start

  , and you will find an error of reporting an unknown host service. The solution is:

  1) Check whether there are other programs occupying port 5037
  c:users>netstat -ano | findstr "5037"

  2) Find Listening PID


  3) Then find the corresponding PID in the task manager


  4) Clean up the program occupying 5037

2 Use the su command to report: not found The


  reason is that the pointing location is $, which means that there is no root permission.
 
  Solution: Download kingRoot to root the phone
https://kingroot.net/zh-thank-you-for-downloading-android-root-for-windows/

  In this way, you can use the su command


3 to clean up the Launcher2 that comes with the system. apk and Launcher2Layout.apk

   get all permissions
   chmod -R 777 app

   delete Launcher2.apk and Launcher2Layout.apk

4 Re-push the deleted Launcher.apk in

   chmod 777 system error Read-Only file System.

   Call mount -o remount rw / system can be remounted

   The specific process is as follows:
  
   1) Use mount to see what permissions the mounted /system is


   2) Remount using the command


   3) Recheck


   4) Results


    Then I use DDMS to delete Vision.apk in File Explore.

5. How to find the Launcher that comes with the machine.

   Find it by code
PackageManager packageManager = getPackageManager();
Intent intent = new Intent(Intent.ACTION_MAIN, null);
intent.addCategory(Intent.CATEGORY_HOME);

List<ResolveInfo> resultList = packageManager.queryIntentActivities(intent, 0);
for (ResolveInfo resolveInfo : resultList) {
  LogUtils.debug("========================================");
  LogUtils.debug("name is :"+resolveInfo.activityInfo.name);
  LogUtils.debug("package is :"+resolveInfo.activityInfo.packageName);
  LogUtils.debug("========================================");
}


  Then you can see the specific Activity and category.HOME
04-23 08:58:31.914 26211-26211/com.gty.ryt.admin D/RYT_ADMIN: ========================================
04-23 08:58:31.916 26211-26211/com.gty.ryt.admin D/RYT_ADMIN: name is :com.hmct.vision.Launcher
04-23 08:58:31.916 26211-26211/com.gty.ryt.admin D/RYT_ADMIN: package is :com.hmct.vision
04-23 08:58:31.916 26211-26211/com.gty.ryt.admin D/RYT_ADMIN: ========================================


  I learned that this launcher is a beautification desktop program on google play

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326280041&siteId=291194637