3 ms·
So what makes this specific to Android phones? Developers can't (get permission to) access this information on other platforms?
by egeozcan 12y ago
So what makes this specific to Android phones? Developers can't (get permission to) access this information on other platforms?
- psykovsky 12y agoI think it's their research that makes it Android specific, as in, they only researched Android.
- tomkinstinch 12y agoIt'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.