Android boots into the specified Launcher by default

1: The first method is the simplest and violent, just modify the AndroidManifest of the apk

2: The second method needs to modify the framework source code to force into your launcher

3: https://www.cnblogs.com/farmerkids/p/5633802.html The content of the webpage is as follows:

做android产品的时候,根据需求会制定各种各样的Launcher,因此,在此记录替换系统Launcher的流程。 

    1、修改frameworks/base/core/java/android/content/Intent.java中

        //public static finalString CATEGORY_HOME = "android.intent.category.HOME";改为
        public static final String CATEGORY_RB_HOME = "com.intent.category.RB_HOME";

    2、修改api下所有文件android.intent.category.HOME替换为android.intent.category.RB_HOME

    sed -i "s/CATEGORY_HOME/CATEGORY_RB_HOME/g" `grep CATEGORY_HOME -rl ./`
    sed -i "s/WIDGET_CATEGORY_RB_HOME_SCREEN/WIDGET_CATEGORY_HOME_SCREEN/g" `grep WIDGET_CATEGORY_RB_HOME_SCREEN -rl ./`

    3、修改所有文件中android.intent.category.HOME 替换为android.intent.category.RB_HOME

    sed -i "s/category.HOME/category.RB_HOME/g" `grep category.HOME -rl ./`


    4、添加APK文件 

    a.在/package/app/路径下,添加Launcher文件夹,将launcher.apk文件copy到此。
    b.添加Android.mk文件
    c.将系统Launcher配置信息全部注销。

4: Android Launcher app development with experimental source code

https://blog.csdn.net/u014804892/article/details/76253107

5: android teaches you how to develop launcher (1) (AndroidStudio version)

https://blog.csdn.net/sljjyy/article/details/11927713

6: android teaches you how to develop launcher (2) - list installed applications

https://blog.csdn.net/sljjyy/article/details/11935709

7: android teaches you how to develop launcher (3) - start the installed application

https://blog.csdn.net/sljjyy/article/details/11971877

8: android teaches you how to develop launcher (4) - display widget

https://blog.csdn.net/sljjyy/article/details/11976707

9: android teaches you how to develop launcher (5) - set wallpaper

https://blog.csdn.net/sljjyy/article/details/11978475

Guess you like

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