How does android modify the built-in apk icon and androidapk in launcher?
Find the variable in IconCache under launcher to store the package name and icon to be modified to apk.
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 to 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 );
}
The same applies to title modification.