diff options
author | Ricardo Cerqueira <ricardo@cyngn.com> | 2015-12-11 16:43:49 +0000 |
---|---|---|
committer | Ricardo Cerqueira <ricardo@cyngn.com> | 2015-12-11 16:43:49 +0000 |
commit | 84358d9a295c179c74821e268412549c6ab823b5 (patch) | |
tree | 86dd30de463bb9c8541b2ad2d842e52727588b0b | |
parent | 336f513f2d57733a4c43437d92a9ba438184e1f0 (diff) | |
download | android_system_vold-cm-12.1.tar.gz android_system_vold-cm-12.1.tar.bz2 android_system_vold-cm-12.1.zip |
asec: Add an extra MB for overhead while transferring app to containercm-12.1
Certain apps (verified with Skype v. 6.14.0.665) are at a
threshold in which the space allocation during transfer from
the phone is marginally above the available space.
Add an extra MB to the container allocation to compensate and
enable successfully moving the app.
Addresses CYNGN-1420
Change-Id: I95d770fc8039757c3fb570ae72f29ccde11a7935
-rw-r--r-- | CommandListener.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CommandListener.cpp b/CommandListener.cpp index 6aa78bc..6d19fd5 100644 --- a/CommandListener.cpp +++ b/CommandListener.cpp @@ -391,7 +391,7 @@ int CommandListener::AsecCmd::runCommand(SocketClient *cli, return 0; } - unsigned int numSectors = (atoi(argv[3]) * (1024 * 1024)) / 512; + unsigned int numSectors = ((atoi(argv[3])+1) * (1024 * 1024)) / 512; const bool isExternal = (atoi(argv[7]) == 1); rc = vm->createAsec(argv[2], numSectors, argv[4], argv[5], atoi(argv[6]), isExternal); } else if (!strcmp(argv[1], "resize")) { |