summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tizen/src/ecs/ecs_msg_injector.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/tizen/src/ecs/ecs_msg_injector.c b/tizen/src/ecs/ecs_msg_injector.c
index 0c5c3d5e04..f85b1c335b 100644
--- a/tizen/src/ecs/ecs_msg_injector.c
+++ b/tizen/src/ecs/ecs_msg_injector.c
@@ -313,18 +313,28 @@ static bool push_package(const char *data)
const char *addon_path = "\\emulator-images\\add-ons\\";
#endif
const char *bin_dir = get_bin_path();
+ const char *dst_dir;
+ if (g_str_has_prefix(get_platform_version(), "tizen-2.")) {
+ dst_dir = "/opt/usr/apps/tmp/sdk_tools/";
+ } else {
+ /*
+ * Also, if get_platform_version() is empty,
+ * set as the following path.
+ */
+ dst_dir = "/tmp/.emulator/apps/";
+ }
memset(cmd, 0, sizeof(cmd));
char *addon = strtok((char *)data, token);
#ifndef CONFIG_WIN32
- ret = sprintf(cmd, "\"%s%s\" -s emulator-%d push \"%s%s%s%s%s\" /tmp/.emulator/apps/%s 2>&1",
+ ret = sprintf(cmd, "\"%s%s\" -s emulator-%d push \"%s%s%s%s%s\" %s%s 2>&1",
#else
- ret = sprintf(cmd, "cmd /S /C \"\"%s%s\" -s emulator-%d push \"%s%s%s%s%s\" /tmp/.emulator/apps/%s 2>&1\"",
+ ret = sprintf(cmd, "cmd /S /C \"\"%s%s\" -s emulator-%d push \"%s%s%s%s%s\" %s%s 2>&1\"",
#endif
bin_dir, sdb_path, get_vm_device_serial_number(),
bin_dir, platform_path, get_profile_name(), addon_path, addon,
- addon);
+ dst_dir, addon);
if (ret < 0) {
LOG_SEVERE("SDB push command is wrong: %s\n", cmd);
return false;