Private unique device identifier in iOS

前端 未结 8 1289
不知归路
不知归路 2021-01-30 01:57

We\'re working on a project with my colleagues which involves using a lot of private and non official code. This is not intended for AppStore use.

The f

8条回答
  •  無奈伤痛
    2021-01-30 02:16

    You could try accessing lockdownd API directly, via libMobileGestalt.dylib.

    Header here. The basic code to access the UDID should be: (you still need to load the dylib)

    CFStringRef udid = (CFStringRef)MGCopyAnswer(kMGUniqueDeviceID);
    

    taken (&slightly modified) from here.

    For further information on libMobileGestalt , look here.

    If this fails you could still try communicating with lockdownd via an SSL Socket( see here ), no idea how that works though, but you might figure it out.

    As you may have noticed though, all stuff on this is years old. Still worth a try i guess.

提交回复
热议问题