static pthread_mutex_t g_data_key_manager_mutex = PTHREAD_MUTEX_INITIALIZER;
-
int key_manager_set_data(const char *name, char *data)
{
if (!name || !data) {
int system_ret = 0;
if (g_strcmp0(name, FIRMWARE_PROPERTY_CURRENT_VERSION) == 0) {
- system_ret = system_info_get_platform_string("http://tizen.org/feature/platform.version", &data);
+// system_ret = system_info_get_platform_string("http://tizen.org/feature/platform.version", &data);
+ system_ret = system_info_get_platform_string("http://tizen.org/system/build.date", &data);
if (SYSTEM_INFO_ERROR_NONE != system_ret) {
ERR("system_info_get_platform_string() is failed[%d]", system_ret);
}
fmwup_get_data->active_check = get_active_check();
-
-
-
-
- /* TODO: for test - check correct key */
- char *temp_char = NULL;
-
- if (system_info_get_platform_string("http://tizen.org/system/manufacturer", &temp_char)
- != SYSTEM_INFO_ERROR_NONE) {
- ERR("system_info_get_platform_string() is failed");
- } else {
- INFO("http://tizen.org/system/manufacturer[%s]", temp_char);
- G_FREE(temp_char);
- }
-
- if (system_info_get_platform_string("http://tizen.org/system/model_name", &temp_char)
- != SYSTEM_INFO_ERROR_NONE) {
- ERR("system_info_get_platform_string() is failed");
- } else {
- INFO("http://tizen.org/system/model_name[%s]", temp_char);
- G_FREE(temp_char);
- }
-
- if (system_info_get_platform_string("http://tizen.org/system/build.version.release", &temp_char)
- != SYSTEM_INFO_ERROR_NONE) {
- ERR("system_info_get_platform_string() is failed");
- } else {
- INFO("http://tizen.org/system/build.version.release[%s]", temp_char);
- G_FREE(temp_char);
- }
-
- if (system_info_get_platform_string("http://tizen.org/system/platform.name", &temp_char)
- != SYSTEM_INFO_ERROR_NONE) {
- ERR("system_info_get_platform_string() is failed");
- } else {
- INFO("http://tizen.org/system/platform.name[%s]", temp_char);
- G_FREE(temp_char);
- }
-
- if (system_info_get_platform_string("http://tizen.org/feature/platform.version", &temp_char)
- != SYSTEM_INFO_ERROR_NONE) {
- ERR("system_info_get_platform_string() is failed");
- } else {
- INFO("http://tizen.org/feature/platform.version[%s]", temp_char);
- G_FREE(temp_char);
- }
-
- if (system_info_get_platform_string("http://tizen.org/feature/platform.version.name", &temp_char)
- != SYSTEM_INFO_ERROR_NONE) {
- ERR("system_info_get_platform_string() is failed");
- } else {
- INFO("http://tizen.org/feature/platform.version.name[%s]", temp_char);
- G_FREE(temp_char);
- }
-
-
-
-
-
FN_END;
return fmwup_get_data;
}