Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5a8fc60 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by android-build-merger
Browse files

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

am: 2376f9d3

* commit '2376f9d3':
  Don't count system partition code against size.

Change-Id: I00a98c3bc07e9a1003f0de8276e4c85be7c938f8
parents 36feadc4 2376f9d3
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -16108,11 +16108,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) {