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

Commit 6718a824 authored by Philip P. Moltmann's avatar Philip P. Moltmann Committed by android-build-merger
Browse files

Merge "Use bigger buffers when installing app" into oc-mr1-dev

am: 51712e3b

Change-Id: I35d71d59c6e74ba5662bc33db09228d7a5dab629
parents b83aa333 51712e3b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -342,7 +342,7 @@ public class InstallInstalling extends Activity {
                    long sizeBytes = file.length();
                    try (OutputStream out = session
                            .openWrite("PackageInstaller", 0, sizeBytes)) {
                        byte[] buffer = new byte[4096];
                        byte[] buffer = new byte[1024 * 1024];
                        while (true) {
                            int numRead = in.read(buffer);

+1 −1
Original line number Diff line number Diff line
@@ -185,7 +185,7 @@ public class InstallStaging extends Activity {
                }

                try (OutputStream out = new FileOutputStream(mStagedFile)) {
                    byte[] buffer = new byte[4096];
                    byte[] buffer = new byte[1024 * 1024];
                    int bytesRead;
                    while ((bytesRead = in.read(buffer)) >= 0) {
                        // Be nice and respond to a cancellation