From 84358d9a295c179c74821e268412549c6ab823b5 Mon Sep 17 00:00:00 2001 From: Ricardo Cerqueira Date: Fri, 11 Dec 2015 16:43:49 +0000 Subject: asec: Add an extra MB for overhead while transferring app to container 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 --- CommandListener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) { -- cgit v1.2.3