get_device_identifier


Description:

[ Version ( since = "1.0" ) ]
public unowned string get_device_identifier ()

Gets a best-effort device identifier based on various device information like model name, firmware revision, USB/PCI/PCMCIA IDs, and other properties.

This ID is not guaranteed to be unique and may be shared between identical devices with the same firmware, but is intended to be "unique enough" for use as a casual device identifier for various user experience operations.

This is not the device's IMEI or ESN since those may not be available before unlocking the device via a PIN.

Warning:

The returned value is only valid until the property changes so it is only safe to use this function on the thread where this was constructed. Use dup_device_identifier if on another thread.

Parameters:

this

A Modem.

Returns:

The device identifier, or null if none available. Do not free the returned value, it belongs to this.