google / battery-historian

Battery Historian is a tool to analyze battery consumers using Android "bugreport" files.
Other
5.3k stars 953 forks source link

Getting Error message: bugreport.zip does not contain a valid bugreport file #143

Open ranjjose-chaz opened 6 years ago

ranjjose-chaz commented 6 years ago

Details: ADB Version Details: Android Debug Bridge version 1.0.39 Revision 3db08f2c6889-android

Docker Version Details: Latest community Edition

OS: MacOS High Sierra, Version 10.13.1

Phone: One Plus 3T Android Version: 7.1.1

Edit: This is happening after upgrading to Android 8.0. too

ranjjose-chaz commented 6 years ago

Some help is really appreciated. We are facing a huge battery drain under Google Play Service. I'm pretty sure it has something to do with my app as this issue happens once my app has run. Would like to see if I can see anything from the battery historian tool as the battery section doesn't show drain for my app (all drain is shown under Google Play Services)

gkbiswas commented 6 years ago

Am also facing the same issue. Can someone update if there's been any resolution to this issue?

megataps commented 6 years ago

Please check here #147

IgorGanapolsky commented 5 years ago

Same issue here:

bugreport.zip does not contain a valid bugreport file

hoseinkord commented 4 years ago

just unzip bugreport.zip and upload bugreport.txt .

kcstrom commented 3 years ago

Nearly 3 years later this is still an issue!

The tool doesn't even work with the officially documented process! That even despite its name being "battery" historian.

I've moved from older Android 6 based platform development to Android 10 and am so disappointed in what it takes to view battery logs now. I used to just have to run a python script and then I could open the generated html in my browser. Super simple. Trivial to ask testers to dump battery stats. Now I have have a docker container that takes up hundreds of megabytes, figure out what the docker IP address is (localhost as documentation says to use doesn't work), and then find out I can even view the batterystats generated by dumpsys. This is a massive over-engineering just to use Golang instead of python IMO.

VinayKrishnaReddy commented 2 years ago

Hi , i am using samsung galaxy f62 model and i am trying to fetch my battery logs and the bugreport.zip file will be downloaded when i am trying to open it in battery historian it will shown the error like bugreport.zip does not contain a valid bugreport file. and my bugreport file size should be in less than 30kb i am trying it neary 20 times but facing the same every time.can you please help me out on this. bugreport.zip