1.apk的资源文件有AssetManager来管理的
2.解析AndroidManifest的service的代码流程
PackageManagerService.java->installPackage()->handleMessage(INIT_COPY)->handleMessage(MCS_BOUND)->
HandlerParams.java->startCopy()->handleReturnCode()
PackageManagerService.java->processPendingInstall()->run()->installPackageLI(args, true, res)->installNewPackageLI(pkg, parseFlags, scanMode, installerPackageName,res)->scanPackageLI(pkg, parseFlags, scanMode)->
PackageParser.java->parsePackage()->parsePackage(res, parser, flags, errorText);->parseApplication(pkg, res, parser, attrs, flags, outError)->parseService(owner, res, parser, attrs, flags, outError);->owner.services.add(s);