使用CoreTelephony框架在iOS 7上获取IMEI和IMSI [英] Using CoreTelephony framework to get IMEI and IMSI on iOS 7

查看:164
本文介绍了使用CoreTelephony框架在iOS 7上获取IMEI和IMSI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

世界各地的开发人员,我正在制作的应用程序是内部发布,我们使用Apple的一些小秘密来让应用程序正常工作:比如使用此处描述的方法获取IMEI和IMSI:使用CoreTelephony在iPhone上使用IMEI?

Hi developers around the world, the app I am making is for in house distribution, we used some Apple's little secrets to get the app working as we want: like getting the IMEI and IMSI with methods described here: get IMEI on iPhone with CoreTelephony?

它在过去的两年里运行良好,但由于公司越来越多的人转向iOS 7,我们发现这种方法不再适合我们的需要 - 它只是在iOS 7中返回一个零。整个系统设计用于保持IMEI和IMSI信息,修改它需要相当大的努力,所以我们宁愿专注于从设备中获取IMEI和IMSI信息。

It worked fine for last 2 years, but since more and more people in the company moved to iOS 7, we found this method no longer suits our need - it simply returns a nil in iOS 7. The whole system is designed to hold IMEI and IMSI info, modifying it would require a considerable amount of effort, so we would rather focus on getting the IMEI and IMSI info out of the device.

我的研究请转到本文: https:// code。 google.com/p/iphone-wireless/source/browse/wiki/CoreTelepho nyFunctions.wiki ,它描述了一个名为__CTGetIMEI的私有方法。但是,我不知道如何使用此方法,因为它看起来像C级方法。如果是这样,我可以给我一个例子,请帮忙。

My research has lead me to this article: https://code.google.com/p/iphone-wireless/source/browse/wiki/CoreTelephonyFunctions.wiki , which described a private method called __CTGetIMEI. However, I don't know how to use this method since it looks like a C level method. If so one could point me to an example, please help.

推荐答案

iOS7 CoreTelephony框架中没有这样的功能。在iOS 4.0中有,但是自4.3以后就丢失了。

There is no such function in iOS7 CoreTelephony framework. There was in iOS 4.0 but it missing since 4.3 or so.

有很多方法可以获得IMEI 如何在iPhone 5上获取IMEI 但是自iOS7起,它们受到权利保护 com.apple.coretelephony.Identity。获得。因此,这些API仅适用于越狱设备。这同样适用于IMSI。

There are many ways to get IMEI How to get IMEI on iPhone 5 but since iOS7 they are protected with entitlement com.apple.coretelephony.Identity.get. Therefore these APIs will only work on jailbroken devices. The same applies to IMSI.

这篇关于使用CoreTelephony框架在iOS 7上获取IMEI和IMSI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆