Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Using Google's Battery Historian 2.0
#Start battery historian
cd $GOPATH/src/
go run cmd/battery-historian/battery-historian.go
#Setup device for data collection
./adb shell dumpsys batterystats --enable full-wake-history
./adb shell dumpsys batterystats --reset
#Capture bugreport
./adb bugreport > ./bugreports/android_device_bugreport.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment