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

Commit 2376f9d3 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents 4ecc0ce3 959586b9
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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) {