title: How to get IMEI for SIM locked iPhone programmatically by using libimobiledevice or any other solution?
body: <p>I'm using <strong>libimobiledevice</strong> (C++, Windows, <a href="http://www.libimobiledevice.org/" rel="nofollow">http://www.libimobiledevice.org/</a>) and trying to get iPhone device info. I can obtain <strong>IMEI</strong> for iPhone (without SIM or with unlocked SIM) by using:</p>
  
  <ul>
  <li><em>lockdownd_client_new_with_handshake</em></li>
  </ul>
  
  <p>and then</p>
  
  <ul>
  <li><em>lockdown_get_value</em></li>
  </ul>
  
  <p>for device with default NULL domain and enumerating all keys (or just by getting correct plist with key "<strong>InternationalMobileEquipmentIdentity</strong>")</p>
  
  <p>but I can't get exactly this one value if iPhone is SIM locked. I mean the phone with "<strong>SIMStatus</strong>" = "<strong>kCTSIMSupportSIMStatusPINLocked</strong>". There is no such key returned by lockdown. I'm looking for advice [or explanation] how I can get IMEI in that case. I think, it is possible. But how? Why it ain't returning for SIM locked iPhone?..</p>
  
  <p>Any help would be appreciated. Thanks.</p>