How to detect which 3rd sdk use UDID?

核能气质少年 提交于 2019-11-28 01:25:46

问题


We use a lot of third-party SDKs from ad providers, and since Apple will not allow UDID access after May 1st, I want to check which SDKs use the UDID function. Is there a simple way or tool to do that?


回答1:


One simple and naïve method is to run strings and grep on the library files. i.e.

strings libSomething.a | grep uniqueIdentifier

If you see any line that prints exactly uniqueIdentifier there is a risk they call it. This method is not 100% bullet proof. But I'd expect Apple doing a similar check in their automatic validation.




回答2:


You could set a symbolic breakpoint for -[UIDevice uniqueIdentifier]




回答3:


Why don't you try secureudid (secureudid.org)?




回答4:


NSString *uuid = nil;
CFUUIDRef theUUID = CFUUIDCreate(kCFAllocatorDefault);
if (theUUID) {
  uuid = NSMakeCollectable(CFUUIDCreateString(kCFAllocatorDefault, theUUID));
  [uuid autorelease];
 CFRelease(theUUID);
}

try this



来源:https://stackoverflow.com/questions/15997031/how-to-detect-which-3rd-sdk-use-udid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!