6

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.

2
  • I am not sure but Apple does not allow for privacy things to be used in app Apr 10, 2014 at 12:55
  • @Macrosoft-Dev, Actually I m developing this app for cydia not for Appstore.
    – Ahad Khan
    Apr 10, 2014 at 12:57

1 Answer 1

3

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..

23
  • I have added header in my project when I compile code give me error that is Undefined symbols for architecture armv7: "_MGCopyAnswer", referenced from: . I m working on iOS 7 and Xcode 5.0
    – Ahad Khan
    Apr 11, 2014 at 8:45
  • did you add xxx_LIBRARIES = MobileGestalt to your makefile ? [ xxx ] is your tweak name ;)
    – iMokhles
    Apr 11, 2014 at 8:46
  • Could you please explain what do you means by "xxx_LIBRARIES = MobileGestalt".
    – Ahad Khan
    Apr 11, 2014 at 8:52
  • if you are using theos you should get MakeFile with the created project open it and add YOURTWEAKNAME_LIBRARIES = MobileGestalt
    – iMokhles
    Apr 11, 2014 at 8:58
  • I m not using theos. i have modified Xcode settings. Is there any alternative to resolve this error " Undefined symbols for architecture armv7: "_MGCopyAnswer", referenced from"
    – Ahad Khan
    Apr 11, 2014 at 9:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.