Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Want to access iPhone General Settings content in my App

I have iOS 7 jail-broken iPhone and I want to access about info (e.g settings -> General -> About). Actually I want to get IMEI and other stuff in about controller. Any clue guide will highly appreciated.

like image 800
Ahad Khan Avatar asked Apr 10 '14 12:04

Ahad Khan


1 Answers

MobileGestalt Library has a lot of information check it's header here

add this in your MakeFile

xxx_LIBRARIES = MobileGestalt

then declare:

OBJC_EXTERN CFStringRef MGCopyAnswer(CFStringRef key) WEAK_IMPORT_ATTRIBUTE;

in your Header file

then for getting the IMEI number you have to use :

CFStringRef IMEINumber = MGCopyAnswer(CFSTR("InternationalMobileEquipmentIdentity"));
NSLog (@"IMEI Number : %@", IMEINumber);

GoodLuck..

like image 178
iMokhles Avatar answered Sep 21 '22 23:09

iMokhles