title: How Do I get Battery Charge Cycles from a connected iOS device?
body: <p>I'm using <code>MobileDevice.framework</code> in an <code>OS X</code> application and I've been able to get how charged the battery of an <code>iOS</code> device connected over <code>USB</code> is using the <code>AMDeviceCopyValue(device, domain, key)</code> function with the arguments <code>"com.apple.mobile.battery"</code> for the <code>domain</code> and <code>"BatteryCurrentCapacity"</code> for the <code>key</code>.</p>
  
  <p>I want to also get the number of Charge Cycles on the battery. I believe it's possible because <a href="http://www.icopybot.com/blog/check-ipad-iphone-battery-charge-cycle-count-without-jailbreaking.htm">iBackupBot</a> is able to fetch that data. Does anyone know how it does this? I downloaded the free copy of the program and tested it on an <code>iPhone 3GS</code>, <code>iPhone 4S</code>, and an <code>iPhone 5</code>. It was able to grab the data for all three devices.</p>
  
  <p>I have run iBackupBot through LLDB and logged its every usage of <code>AMDeviceCopyValue()</code>. In doing so, I determined that it isn't getting the Charge Cycles count from that.</p>