memset(cmd, 0, sizeof(cmd));
char* addon = strtok((char*)data, token);
-
- ret = sprintf(cmd, "%s%s -s emulator-%d push %s%s%s%s%s /opt/usr/apps/tmp/sdk_tools/%s 2>&1",
+#ifndef CONFIG_WIN32
+ ret = sprintf(cmd, "\"%s%s\" -s emulator-%d push \"%s%s%s%s%s\" /opt/usr/apps/tmp/sdk_tools/%s 2>&1",
+#else
+ ret = sprintf(cmd, "cmd /S /C \"\"%s%s\" -s emulator-%d push \"%s%s%s%s%s\" /opt/usr/apps/tmp/sdk_tools/%s 2>&1\"",
+#endif
bin_dir, sdb_path, get_device_serial_number(),
bin_dir, platform_path, get_profile_name(), addon_path, addon,
addon);