Fixed a bug that it is blocked when installing app package with emulator 2.3.1 or 2.3
authoryoonki.park <yoonki.park@samsung.com>
Mon, 14 Mar 2016 05:03:03 +0000 (14:03 +0900)
committershingil.kang <shingil.kang@samsung.com>
Mon, 14 Mar 2016 05:11:53 +0000 (14:11 +0900)
- It is blocked because SDB ask user to input "remove app package?" when installing app package.
  Add option "-f" with "rm" command to remove app package forcefully.

Change-Id: I468c13d1caba61cf01ccb06843dd1806c884bff2
Signed-off-by: shingil.kang <shingil.kang@samsung.com>
src/command_function.c

index e3639903e6740a8f9164f81dbebabf2d5e793ef8..aa96f33a8203262bd81f32cada9d8f26244949b8 100644 (file)
@@ -795,7 +795,7 @@ int install(int argc, char **argv) {
         return 1;
     }
 
-    const char* SHELL_REMOVE_CMD = "shell:rm \"%s\"";
+    const char* SHELL_REMOVE_CMD = "shell:/bin/rm -f \"%s\"";
     snprintf(full_cmd, sizeof full_cmd, SHELL_REMOVE_CMD, destination);
     D(COMMANDLINE_MSG_FULL_CMD, "remove", full_cmd);
     if(__sdb_command(full_cmd) < 0) {