I have been facing a severe battery drain issue on my official Cyanogenmod custom ROM. After discussing it on community forums, it was suggested that I use logcat for troubleshooting the problem.
Problem:
Every time I disconnect my device after a complete charge, it drains battery rapidly. It loses almost 50% in 15-20 mins. As mentioned above, I am planning to use logcat to try and capture the issue. I am planning to run adb logcat
immediately after unplugging the phone from power. However, I have used logcat in the past and found it very very difficult to extract specific data from the large output. I already went through the official logcat help page and Reading and Writing Logs to see if I could find something useful, but I could not find a solution for my problem.
Question:
- Is there anyway to use filters or some other feature where I can limit the logcat output to the stats which are only related to battery usage?
- Can something like
adb shell dumpsys batterystats > batterystats.txt
be of better use to me? If so, how do I use it to get what I want?
UPDATE:
BatteryStats for my drain can now be found here at Patebin. Also this is my Battery Historian Chart: