Locate the Iconcache in launcher to store the package name to be modified and the icon to be modified.
Private string[] ClassName = {"Com.google.android.apps.maps", "Com.google.android.googlequicksearchbox"};
Private int[] ResId = {R.drawable.com_android_google_map,r.drawable.com_android_googlesearch};
Add the following code in the Cachelocked method
if (Systemproperties.getboolean ("persist.sys.ts18.sp025", false)) {
Resources res = mcontext.getresources ();
for (int i = 0; i < classname.length; i++) {
if (Componentname.getpackagename (). Equals (Classname[i])) {
Entry.icon = Bitmapfactory.decoderesource (Res,resid[i]);
} else {
Entry.icon = Utilities.createiconbitmap (
Getfullresicon (info), mcontext);
}
}
} else {
Entry.icon = Utilities.createiconbitmap (
Getfullresicon (info), mcontext);
}
Modify title similarly
Android How to modify the icon of the built-in apk in launcher