tizen dudi 추출

tizen dudi 추출

BY 22 Jun 2016 Native Application Development

안녕하세요 gear s2의 duid를 얻기 위해

#include <system_info.h>
 
char *duid = NULL;
int ret;
 
ret = system_info_get_platform_string(“http://tizen.org/system/duid”, &duid);
 
if(ret == SYSTEM_INFO_ERROR_NONE){
        dlog_print(DLOG_INFO, “QQ”, “Successful”);
    } else if(ret == SYSTEM_INFO_ERROR_OUT_OF_MEMORY){
        dlog_print(DLOG_INFO, “QQ”, “Out of memory”);
    } else if(ret == SYSTEM_INFO_ERROR_INVALID_PARAMETER){
        dlog_print(DLOG_INFO, “QQ”, “Cannot find the @a key in the model config file”);
    } else if(ret == SYSTEM_INFO_ERROR_IO_ERROR){
        dlog_print(DLOG_INFO, “QQ”, “input/output error occurred while reading the @a value from the model config file”);
    } else if(ret == SYSTEM_INFO_ERROR_PERMISSION_DENIED){
        dlog_print(DLOG_INFO, “QQ”, “No permission to use the API”);
    }
 
    dlog_print(DLOG_INFO, “QQ”, duid);
 
와 같이 소스를 구성하였습니다.
 
하지만 system_info_error_invalid_parameter 에러가 발생하여 duid를 추출할 수 없네요.
 
duid를 추출할 수 있는 다른 방안이 있을까요??
 
참고 사이트 : https://www.tizen.org/ko/system
Written by