Many midlets programmers are faced to the problem of getting the phone's IMEI.
Well, some phones support this through getting system properties or using a legacy api. Other's (e.g. Nokia S60) don't support this.
I think the only usefull thing you can do with the IMEI is for registering a midlet so that a registration key is bound to a single phone.
One idea that came to mind is:
If the phone supports bluetooth (JSR-82) you can use the local bluetooth address.
String address = LocalDevice.getLocalDevice().getBluetoothAddress();
This address should be unique. The only problem is that this only works on phones supporting JSR-82.
On Nokia S40 3rd Edition devices you can query a system property:
com.nokia.mid.imeie.g.
String imei = System.getProperty("com.nokia.mid.imei");Only available on S40 3rd Edition devices. (Not in 6270 and 6101).
Returns the device’s IMEI code.
Note: The MIDlet must be signed, otherwise this value is NULL.