News for hackers. Stuff that matters.
Re:Facebook iOS App Battery Explanation by matsur on Thursday October 22, 2015 @07:17PM (#10435828)
We (Spire, building breath tracking wearables) have an unfortunate amount of experience troubleshooting these issues. The developer tooling around measuring battery drain/energy usage is not useful for debugging this sort of thing.

We ended up wiring a disassembled iPhone to battery simulation hardware and are now able to measure battery drain while stepping through a debugger/pushing the phone through an integration test to identify power usage regressions.

Curious how other folks handle these issues.

Re:Facebook iOS App Battery Explanation by X-Istence on Thursday October 22, 2015 @08:03PM (#10436029)
This is actually really neat, do you guys have a blog post detailing how you do this?
Re:Facebook iOS App Battery Explanation by barkingcat on Thursday October 22, 2015 @10:22PM (#10436464)
At mozilla - for B2G battery drain issues there is a project for building battery harnesses - the work of one man working in low level power measurements

https://hacks.mozilla.org/2014/04/measuring-power-consumptio...

Re:Facebook iOS App Battery Explanation by CamperBob2 on Friday October 23, 2015 @12:52AM (#10436868)
Curious how other folks handle these issues.

One approach might be to use a thermometer or IR camera to keep track of the phone's temperature relative to ambient. If something is causing unusual amounts of battery drain, the phone is going to get (much) hotter.

Re:Facebook iOS App Battery Explanation by mey on Thursday October 22, 2015 @08:13PM (#10436062)
I remember a presentation by Amazon at AnDevCon describing a similar setup they use internally as part of their validation. The built in Android battery profile wasn't sufficiently accurate to what was actually causing drain (most OEMs don't modify the default AOP power profile to represent what their system components actually consume in power). They actually went to the point to connecting into the battery electronics on the battery side to monitor drain. Unfortunately I don't see the presentation available online and this was at least 4 years ago.
Re:Facebook iOS App Battery Explanation by cma on Thursday October 22, 2015 @08:23PM (#10436089)
Recent talk by John Carmack mentioned the same, in their case they hooked up a measured DC power supply in place of the battery to measure power usage for GearVR