在定制化開發中,客戶需求要實作對某些app應用限制也就是app安裝黑名單功能,在黑名單之中的應用會被限制安裝,PMS就是負責管理app安裝和解除安裝的,是以接下來看下PackManagerService.java的源碼
@GuardedBy("mInstallLock")
private PrepareResult preparePackageLI(InstallArgs args, PackageInstalledInfo res)
throws PrepareFailure {
final int installFlags = args.installFlags;
final String installerPackageName = args.installerPackageName;
final String volumeUuid = args.volumeUuid;
final