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

Commit 80e8e399 authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Use 1MB buffer for install cmds

Similar to Package Installer App. This reduces the overhead of each
chunk and slighly speeds up package installation.

Test: Installed app via 'adb install' and 'adb shell pm install'
Change-Id: Ic8f67087e578bf0696e3d55ad3d7f3892ca2bf90
parent e601150a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -636,7 +636,7 @@ public final class Pm {
            out = session.openWrite(splitName, 0, sizeBytes);

            int total = 0;
            byte[] buffer = new byte[65536];
            byte[] buffer = new byte[1024 * 1024];
            int c;
            while ((c = in.read(buffer)) != -1) {
                total += c;
+1 −1
Original line number Diff line number Diff line
@@ -1441,7 +1441,7 @@ class PackageManagerShellCommand extends ShellCommand {
            out = session.openWrite(splitName, 0, sizeBytes);

            int total = 0;
            byte[] buffer = new byte[65536];
            byte[] buffer = new byte[1024 * 1024];
            int c;
            while ((c = in.read(buffer)) != -1) {
                total += c;