Detect SIM change OR find IMSI of the SIM using official iOS SDK?

orak picture orak · Aug 3, 2012 · Viewed 15k times · Source

I am developing an app for a mobile carrier. First I wanted to find any of the things (IMSI, ICCID, IMEI, MSISDN) so that I can detect if the SIM is related to my mobile carrier. But I guess Apple doesn't allow that.

Now as a workaround I will ask the user to register his phone number with my app. But then again bad things will happen if user changes the SIM.

Is there any way for me to detect SIM change using the official iOS SDK?

Answer

Igor picture Igor · Aug 30, 2012

You can get access only on jailbroken device.

Find file on path /private/var/root/Library/Lockdown/data_ark.plist

the key is InternationalMobileSubscriberIdenti