return fopen(fmwup_data_file, mode);
}
+
+void _set_firmware_download_path()
+{
+ FWR_LOGD("_set_firmware_download_path() is called\n");
+ if (fmwup_set_firmware_download_path(_get_app_data_path()) != 0)
+ FWR_LOGD("_set_firmware_download_path() is failed\n");
+}
+
void _set_platform_info()
{
FWR_LOGD("_set_platform_info() is called\n");
_set_device_info();
+ _set_firmware_download_path();
+
pthread_t oc_proc_thd;
pthread_create(&oc_proc_thd, NULL, _oc_process_thd, NULL);
keyfile = g_key_file_new();
- snprintf(tmp, sizeof(tmp), "%s/%s", _get_app_data_path(), OAUTH_FILE_NAME);
+ snprintf(tmp, sizeof(tmp), "%s%s", _get_app_data_path(), OAUTH_FILE_NAME);
FWR_LOGD("login info [%s]", tmp);
g_key_file_load_from_file(keyfile, tmp, flags, &error);