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

Commit 8d76b33e authored by Songchun Fan's avatar Songchun Fan Committed by Android (Google) Code Review
Browse files

Merge "[incremental] change temp dir"

parents 0508340d 720a7816
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -266,7 +266,7 @@ public final class IncrementalFileStorages {
    }

    private String getTempDir() {
        final String tmpDirRoot = "/data/tmp";
        final String tmpDirRoot = "/data/incremental/tmp";
        final Random random = new Random();
        final Path tmpDir =
                Paths.get(tmpDirRoot, String.valueOf(random.nextInt(Integer.MAX_VALUE - 1)));
+2 −0
Original line number Diff line number Diff line
@@ -2372,6 +2372,8 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
        if (mIncrementalFileStorages != null) {
            try {
                mIncrementalFileStorages.addFile(new InstallationFile(name, lengthBytes, metadata));
                //TODO(b/136132412): merge incremental and callback installation schemes
                return;
            } catch (IOException ex) {
                throw new IllegalStateException(
                        "Failed to add and configure Incremental File: " + name, ex);