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;