-1

I'm a developing an application for the Tizen wearable devices. I need to have a unique ID for each device to uniquely represent each device. Currently, I'm only able to get the Tizen ID with tizen.systeminfo.getCapability("http://tizen.org/system/tizenid") API. But this is only a randomly generated string and seems to be changing every time the device is reset. Each device has a unique ID in the form of DUID (See this answer here). But it looks like there are no APIs available to get this one programmatically. So is there any way I could access this DUID by an API or anything or is there any other unique ID which I could access programmatically?

Aldrin Joe Mathew
  • 472
  • 1
  • 4
  • 13

2 Answers2

0

You can get imei(meid) numbers from telephony and use them as a unique ID. IMEI stands for International Mobile Equipment Identity and is a unique identifier for a mobile device.

Here are links for native and web documentation related how to get imei

p.s. as I know, imei(meid) number is available only if wearable is able to connect to cellular

miradham
  • 2,285
  • 16
  • 26
0

Since Tizen 2.3 You can use system_info_get_platform_string() with "http://tizen.org/system/tizenid" key:

char* tizen_id;
int error = system_info_get_platform_string("http://tizen.org/system/tizenid", tizen_id_str);
Andrii Omelchenko
  • 13,183
  • 12
  • 43
  • 79