Merge "Don't count system partition code against size." into nyc-dev

This commit is contained in:
TreeHugger Robot
2016-04-13 00:54:57 +00:00
committed by Android (Google) Code Review

View File

@@ -16099,11 +16099,17 @@ public class PackageManagerService extends IPackageManager.Stub {
mInstaller.getAppSize(ps.volumeUuid, packageName, userId,
StorageManager.FLAG_STORAGE_DE | StorageManager.FLAG_STORAGE_CE,
ps.getCeDataInode(userId), ps.codePathString, stats);
return true;
} catch (InstallerException e) {
Slog.w(TAG, String.valueOf(e));
return false;
}
// For now, ignore code size of packages on system partition
if (isSystemApp(ps) && !isUpdatedSystemApp(ps)) {
stats.codeSize = 0;
}
return true;
}
private int getUidTargetSdkVersionLockedLPr(int uid) {