There is a lot of information in the MobileGestalt library, check its title here
add this to your makefile
xxx_LIBRARIES = MobileGestalt
then declare:
OBJC_EXTERN CFStringRef MGCopyAnswer(CFStringRef key) WEAK_IMPORT_ATTRIBUTE;
in the header file
then to get the IMEI number you must use:
CFStringRef IMEINumber = MGCopyAnswer(CFSTR("InternationalMobileEquipmentIdentity")); NSLog (@"IMEI Number : %@", IMEINumber);
GoodLuck ..
source share