Following what @xnox said, ubuntu-system-settings uses the QtMobility APIs to fetch the IMEI number. This in turn seems to use NetworkManager's DBus API to find the first GSM device and return its IMEI:
http://www.qt.gitorious.org/qt-mobility/qt-mobility/blobs/master/src/systeminfo/linux/qsysteminfo_linux.cpp#line471
« Back to merge proposal
Following what @xnox said, ubuntu- system- settings uses the QtMobility APIs to fetch the IMEI number. This in turn seems to use NetworkManager's DBus API to find the first GSM device and return its IMEI:
http:// www.qt. gitorious. org/qt- mobility/ qt-mobility/ blobs/master/ src/systeminfo/ linux/qsystemin fo_linux. cpp#line471