Skip to content

OutrageousStorm/android-wakelock-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”‹ Android Wakelock Analyzer

Parse Android bugreports and find what is draining your battery.

Usage

# Collect bugreport (takes ~30 seconds)
adb bugreport bugreport.zip

# Analyze
python3 analyze.py bugreport.zip

# Top 20 wakelock holders
python3 analyze.py bugreport.zip --top 20

# Export to CSV
python3 analyze.py bugreport.zip --csv results.csv

What it finds

  • Top wakelock holders by time
  • Per-app CPU usage
  • Per-app network usage (sent/received)
  • Alarm wakeups per app
  • Total screen-off time vs wakelocked time

Also includes

  • battery_historian.py β€” Generate HTML battery drain report (merged from pixel-battery-historian)

About

πŸ”‹ Python tool to parse Android bugreports and identify battery drain culprits β€” wakelocks, CPU time, network usage.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages