I'm looking to measure the contribution of the network card to the power consumption or battery drain of an Android phone.
I'm running an application through a computer that is tethered to the phone, which is then sending the packets through to the mobile network. In other words, I'm using the phone as a proxy but not running any application on the phone to help me do this. So far I've tried using ADB with the following command: $ adb shell dumpsys batterystats This provides output like the following after sending ~100K packets over 20 minutes: Estimated power use (mAh): Capacity: 2600, Computed drain: 20.4, actual drain: 0 Uid 0: 6.93 ( cpu=0.387 wake=5.53 radio=1.01 wifi=0.0000309 ) ... Compared to the phone sitting idle for 20 minutes: Estimated power use (mAh): Capacity: 2600, Computed drain: 5.55, actual drain: 0 Uid 0: 1.72 ( cpu=0.0408 wake=0.0406 radio=1.64 wifi=0.0000161 ) ... There's a big difference in the battery drain, but I'm unsure how representative these measurements are for the NIC specifically. Is the change in the drain from Uid 0 representative of the network card being used? Or are there more accurate ways of measuring the contribution of the NIC to the battery drain? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/bd5a6acf-90a9-42a5-a215-6f08389024aa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.