开发者

How can I get UDID using liblockdown.dylib?

开发者 https://www.devze.com 2023-02-08 08:13 出处:网络
I try to get the UDI开发者_如何学GoD without using the UIDevice class but directly from implementing the dynamic library liblockdown.dylib on iOs 4.2. I don\'t find any documentation. All I need is to

I try to get the UDI开发者_如何学GoD without using the UIDevice class but directly from implementing the dynamic library liblockdown.dylib on iOs 4.2. I don't find any documentation. All I need is to get the kLockdownUniqueDeviceIDKey, what should I do ?


I don't know about iOS 4, but I know that the UDID can also be retrieved on iOS 5, 6 and 7 using the libMobileGestalt.dylib. More information about this library can be found on the iPhone Development Wiki.


Here is the header for the liblockdown.dylib


here implementation: https://github.com/theiostream/lockdown-uiduid/blob/master/main.mm

This code work on iOS 6.1.3 but it does not work on iOS 7b2 :(

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号