I need to get a unique ID for the device. I originally thought I'd use the device's imei, but that doesn't seem to return anything:
import QtSystemInfo 5.0
DeviceInfo {
id: device
}
Component.onCompleted {
console.log(device.imei(0)) // Returns nothing
}
That may or may not be a bug: https://bugs.launchpad.net/ubuntu/+source/qtsystems-opensource-src/+bug/1197542 but since there haven't been any updates for a year, I'm hoping that maybe I can use some other piece of information.
So, does anyone know how I can get a unique ID for the device? It has to be persistent, but it can be totally meaningless other than as an identifier.