1.概述
在9.0的产品定制化开发中,有些产品需要对Launcher3中桌面显示的app的icon做替换,如果没有源码的话更换会麻烦点,需要从pms解析app的时候,可以替换掉app的icon图标就可以了
2.无源码app修改它的icon图标的相关核心类
frameworks/base/core/java/android/content/pm/PackageParser.java
3.无源码app修改它的icon图标的核心功能实现和分析
if (mOnlyCoreApps) {if (!lite.coreApp) {throw new PackageParserException(INSTALL_PARSE_FAILED_MANIFEST_MALFORMED,"Not a coreApp: " + apkFile);}}final SplitAssetLoader assetLoader = new DefaultSplitAssetLoader(lite, flags);try {final Package pkg = parseBaseApk(apkFile, assetLoader.getBaseAssetManager(), flags);pkg.setCodePath(apkFile.getCanonicalPath());pkg.setUse32bitAbi(lite.use32bitAbi);return pkg;} catch (IOException e) {