• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Logcat for battery drain tests

For my battery drain tests, I would like to capture logcat logs via adb shell. When I plug USB cable, it's charging my HTC ADP2 Android phone.

Duroing capturing logs, I don't want charging my battery, so that I can find out any code needs to be optmized for improving battery life.

Any tips are greatly appreciated for this scenario..
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones