Lines Matching refs:pkgSetting
4478 private void verifySignaturesLP(PackageSetting pkgSetting, PackageParser.Package pkg)
4480 if (pkgSetting.signatures.mSignatures != null) {
4482 boolean match = compareSignatures(pkgSetting.signatures.mSignatures, pkg.mSignatures)
4485 match = compareSignaturesCompat(pkgSetting.signatures, pkg)
4489 match = compareSignaturesRecover(pkgSetting.signatures, pkg)
4500 if (pkgSetting.sharedUser != null && pkgSetting.sharedUser.signatures.mSignatures != null) {
4502 boolean match = compareSignatures(pkgSetting.sharedUser.signatures.mSignatures,
4505 match = compareSignaturesCompat(pkgSetting.sharedUser.signatures, pkg)
4509 match = compareSignaturesRecover(pkgSetting.sharedUser.signatures, pkg)
4516 + pkgSetting.sharedUser.name + "; ignoring!");
5380 PackageSetting pkgSetting = null;
5461 // the PkgSetting exists already and doesn't have to be created.
5462 pkgSetting = mSettings.getPackageLPw(pkg, origPackage, realName, suid, destCodeFile,
5467 if (pkgSetting == null) {
5472 if (pkgSetting.origPackage != null) {
5480 String msg = "New package " + pkgSetting.realName
5481 + " renamed to replace old package " + pkgSetting.name;
5488 pkgSetting.origPackage = null;
5513 pkg.applicationInfo.uid = pkgSetting.appId;
5514 pkg.mExtras = pkgSetting;
5515 if (!pkgSetting.keySetData.isUsingUpgradeKeySets() || pkgSetting.sharedUser != null) {
5517 verifySignaturesLP(pkgSetting, pkg);
5520 pkgSetting.signatures.mSignatures = pkg.mSignatures;
5527 pkgSetting.signatures.mSignatures = pkg.mSignatures;
5533 if (pkgSetting.sharedUser != null) {
5534 if (compareSignatures(pkgSetting.sharedUser.signatures.mSignatures,
5539 + pkgSetting.sharedUser);
5548 if (!checkUpgradeKeySetLP(pkgSetting
5555 pkgSetting.signatures.mSignatures = pkg.mSignatures;
5704 if (!pkgSetting.uidError) {
5738 pkgSetting.uidError = uidError;
5743 final String cpuAbiOverride = deriveAbiOverride(pkg.cpuAbiOverride, pkgSetting);
5745 setBundledAppAbisAndRoots(pkg, pkgSetting);
5918 pkgSetting.primaryCpuAbiString = pkg.applicationInfo.primaryCpuAbi;
5919 pkgSetting.secondaryCpuAbiString = pkg.applicationInfo.secondaryCpuAbi;
5920 pkgSetting.cpuAbiOverrideString = cpuAbiOverride;
5933 pkgSetting.legacyNativeLibraryPathString = pkg.applicationInfo.nativeLibraryRootDir;
5941 if ((scanFlags&SCAN_BOOTING) == 0 && pkgSetting.sharedUser != null) {
5948 adjustCpuAbisForSharedUserLPw(pkgSetting.sharedUser.packages,
6059 mSettings.insertPackageSettingLPw(pkgSetting, pkg);
6073 if (pkgSetting.firstInstallTime == 0) {
6074 pkgSetting.firstInstallTime = pkgSetting.lastUpdateTime = currentTime;
6076 pkgSetting.lastUpdateTime = currentTime;
6078 } else if (pkgSetting.firstInstallTime == 0) {
6080 pkgSetting.firstInstallTime = pkgSetting.lastUpdateTime = scanFileTime;
6082 if (scanFileTime != pkgSetting.timeStamp) {
6085 pkgSetting.lastUpdateTime = scanFileTime;
6287 bp.packageSetting = pkgSetting;
6312 bp.packageSetting = pkgSetting;
6392 pkgSetting.setTimeStamp(scanFileTime);
6641 PackageSetting pkgSetting) {
6648 // pkgSetting might be null during rescan following uninstall of updates
6654 if (pkgSetting != null) {
6655 pkgSetting.primaryCpuAbiString = pkg.applicationInfo.primaryCpuAbi;
6656 pkgSetting.secondaryCpuAbiString = pkg.applicationInfo.secondaryCpuAbi;
8146 private void sendPackageAddedForUser(String packageName, PackageSetting pkgSetting, int userId) {
8148 extras.putInt(Intent.EXTRA_UID, UserHandle.getUid(userId, pkgSetting.appId));
8155 isSystemApp(pkgSetting) || isUpdatedSystemApp(pkgSetting);
8176 PackageSetting pkgSetting;
8192 pkgSetting = mSettings.mPackages.get(packageName);
8193 if (pkgSetting == null) {
8196 if (pkgSetting.getHidden(userId) != hidden) {
8197 pkgSetting.setHidden(hidden, userId);
8207 sendPackageAddedForUser(packageName, pkgSetting, userId);
8211 killApplication(packageName, UserHandle.getUid(userId, pkgSetting.appId),
8213 sendApplicationHiddenForUser(packageName, pkgSetting, userId);
8221 private void sendApplicationHiddenForUser(String packageName, PackageSetting pkgSetting,
8226 info.uid = UserHandle.getUid(userId, pkgSetting.appId);
8239 PackageSetting pkgSetting;
8244 pkgSetting = mSettings.mPackages.get(packageName);
8245 if (pkgSetting == null) {
8248 return pkgSetting.getHidden(userId);
8262 PackageSetting pkgSetting;
8277 pkgSetting = mSettings.mPackages.get(packageName);
8278 if (pkgSetting == null) {
8281 if (!pkgSetting.getInstalled(userId)) {
8282 pkgSetting.setInstalled(true, userId);
8283 pkgSetting.setHidden(false, userId);
8290 sendPackageAddedForUser(packageName, pkgSetting, userId);
12146 PackageSetting pkgSetting;
12160 pkgSetting = mSettings.mPackages.get(packageName);
12161 if (pkgSetting == null) {
12171 if (!allowedByPermission && !UserHandle.isSameApp(uid, pkgSetting.appId)) {
12175 + ", uid=" + uid + ", package uid=" + pkgSetting.appId);
12179 if (pkgSetting.getEnabled(userId) == newState) {
12188 pkgSetting.setEnabled(newState, userId, callingPackage);
12189 // pkgSetting.pkg.mSetEnabled = newState;
12193 PackageParser.Package pkg = pkgSetting.pkg;
12205 if (!pkgSetting.enableComponentLPw(className, userId)) {
12210 if (!pkgSetting.disableComponentLPw(className, userId)) {
12215 if (!pkgSetting.restoreComponentLPw(className, userId)) {
12252 packageUid = UserHandle.getUid(userId, pkgSetting.appId);