Retrieve deviceID

Retrieve deviceID

Hello, our mobile application needs to retrieve the deviceID (from MobiControl) and I wanted to know the best / easiest way to do it. Is there a way to request this information directly from the agent installed on the device or do we have to use the API ? 

Thank you ! (server version 14.3.3 / Android Enterprise DO)

5 Answers

Order By:   Standard | Newest | Votes
HKMOD@SOTI | posted this 30 September 2019

Hello Yoan,

 

If you have lockdown on your devices, you can change the html template of the device to show the device id using Macro "%DeviceID%, if your application can retrieve the device id from lockdown mode, else using API would be the other way to retrieve the device id.

 

Please let us know, if that helps.

 

 

Kind Regards, Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |

  • 0
  • 0
Yoan R | posted this 01 October 2019

Hello, thank you for you anwser.

Have you got an example or a code sample to retrieve the device ID from lockdown mode ?

Also, can you tell me how / where MobiControl retrieves the device ID ? Is this information retrieved with the TelephonyManager Android library by using the getDeviceId() function ? I mean, if I use this library / function, will I get the right device ID (the one displayed in the management console) ?

Thank you !

  • 1
  • 0
Yoan R | posted this 29 October 2019

Hello, Any update on this topic ? How MobiControl retrieve the deviceID on Android devices ?

Thank you

  • 0
  • 0
Scott | posted this 31 October 2019

Not sure I understand your request.  Do you mean you have an application that is running on the device and it needs to obtain the MobiControl specific (and generated) deviceID?  

"or do we have to use the API?"
To what API are you referring?  The Android API on the device or the MobiControl REST API?

The native Android "getDeviceID" just returns the IMEI and is actually deprecated.  MobiControl's "deviceID" has changed over time and varies depending on version and device.  AE vs A+ also appear to be a factor.  I have a server where A+ clients have a deviceID that is a combination of self generated numbers combined with device hardware serial number.  Another server that has AE clients (same device type) shows the IMEI as the deviceID.

So, exactly what piece of information are you looking for and what are you trying to do with it?

  • 0
  • 0
Yoan R | posted this 04 November 2019

Hello Scott, thank you for your detailed answer.

As requests to the MobiControl API use the device ID to identify the device, I just wanted to retrieve this device ID on the device in order to be able to execute calls to the MobiControl API. 

Thank you.

  • 0
  • 0

Give us your feedback
Give us your feedback
Feedback