}
+ // Device name
+ value = vconf_get_str(VCONFKEY_SETAPPL_DEVICE_NAME_STR);
+ if(value) {
+ snprintf(g_capabilities.device_name, sizeof(g_capabilities.device_name),
+ "%s", value);
+ if (value != NULL) {
+ free(value);
+ }
+ } else {
+ snprintf(g_capabilities.device_name, sizeof(g_capabilities.device_name),
+ "%s", UNKNOWN);
+ D("fail to get the Device name:%d\n", errno);
+ }
+
+
// Platform version
ret = system_info_get_platform_string("http://tizen.org/feature/platform.version", &value);
if (ret != SYSTEM_INFO_ERROR_NONE) {
char vendor_name[CAPBUF_ITEMSIZE]; // vendor name (ex. Tizen)
char sdk_toolpath[CAPBUF_L_ITEMSIZE]; // sdk tool path
char can_launch[CAPBUF_L_ITEMSIZE]; // target name
+ char device_name[CAPBUF_ITEMSIZE]; // device name
char platform_version[CAPBUF_ITEMSIZE]; // platform version (ex. 2.3.0)
char product_version[CAPBUF_ITEMSIZE]; // product version (ex. 1.0)
offset += put_key_value_string(cap_buffer, offset, CAPBUF_SIZE,
"can_launch", g_capabilities.can_launch);
+ // Device name
+ char* value = NULL;
+ value = vconf_get_str(VCONFKEY_SETAPPL_DEVICE_NAME_STR);
+ if(value) {
+ snprintf(g_capabilities.device_name, sizeof(g_capabilities.device_name),
+ "%s", value);
+ if (value != NULL) {
+ free(value);
+ }
+ } else {
+ snprintf(g_capabilities.device_name, sizeof(g_capabilities.device_name),
+ "%s", UNKNOWN);
+ D("fail to get the Device name:%d\n", errno);
+ }
+ offset += put_key_value_string(cap_buffer, offset, CAPBUF_SIZE,
+ "device_name", g_capabilities.device_name);
+
// Platform version
offset += put_key_value_string(cap_buffer, offset, CAPBUF_SIZE,
"platform_version", g_capabilities.platform_version);