4 ms·
It's available on iOS: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice_Class/#//apple_ref/occ/instp/UIDevice/batteryLevel https:
by tomkinstinch 12y ago
It's available on iOS:
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIDevice_Class/#//apple_ref/occ/instp/UIDevice/batteryLevel https://developer.apple.com/library/ios/documentation/UIKit/...
- feld 12y agoNo it's not. That does not expose voltage and current. The research paper says they're doing this ... ... by repeatedly reading the following two files: /sys/class/power_supply/battery/voltage_now /sys/class/power_supply/battery/current_now
- tomkinstinch 12y agoNot at a simplistic level, no, but voltage you could derive from the discharge curve of a characterized battery (since we know fraction of charge remaining), and current could probably be approximated by looking at the rate of discharge.