Hi folks.
I tried adding http://tizen.org/privilege/system to the manifest.xml, but no luck. In the api docks there are no privilage requirement listed, while in the System Information API Guide there is a http://tizen.org/api/systeminfo privilege prerequisit.
Or is it fails becouse its running on a test device, and it will work on a 'real' device?
The device and sdk is 2.1.
The code i use to get the duid:
String deviceUniqueId;
result r = SystemInfo::GetValue(L"http://tizen.org/system/duid", deviceUniqueId);
if (r != E_SUCCESS)
{
switch (r) {
case E_OBJ_NOT_FOUND:
AppLogDebugTagInternal("Debug", __PRETTY_FUNCTION__, __LINE__, "GetValue - duid failed: E_OBJ_NOT_FOUND"); break;
case E_SYSTEM:
AppLogDebugTagInternal("Debug", __PRETTY_FUNCTION__, __LINE__, "GetValue - duid failed: E_SYSTEM"); break;
default:
AppLogDebugTagInternal("Debug", __PRETTY_FUNCTION__, __LINE__, "GetValue - duid failed: unknown error %X", r); break;
}
id = new std::string("DEFAULT_DEVICE_ID");
}
else
...
Any tips?