When doing Android products, a variety of launcher are developed according to the requirements, so the process of replacing the system launcher is documented here.
1, modify the 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, modify the API under all the files Android.intent.category.HOME replaced with 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, modify all files in Android.intent.category.HOME replaced by Android.intent.category.RB_HOME
Sed-i "S/category. Home/category. Rb_home/g "' grep category. Home-rl./'
4. Add apk file
A. Under the/package/app/path, add the Launcher folder and copy the launcher.apk file to this.
B. Adding a android.mk file
C. Log off all system launcher configuration information.
Android Development Replacement Launcher