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

Commit 959586b9 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Don't count system partition code against size.

Bug: 28136734
Change-Id: I2b843b13c493bbf78c2ad9dd7d75faa302e3a11b
parent f82c2f08
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -16098,11 +16098,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) {