Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Documentation is incorrect, leading to confusion #147

Open
Claytonious opened this issue Feb 26, 2018 · 18 comments
Open

Documentation is incorrect, leading to confusion #147

Claytonious opened this issue Feb 26, 2018 · 18 comments

Comments

@Claytonious
Copy link

Claytonious commented Feb 26, 2018

The docs at https://developer.android.com/studio/profile/battery-historian.html say to run this for Android 7.0 and newer:

adb bugreport > [path/]bugreport.zip

But that is incorrect. That will give you a file with a .zip extension which is the text output from adb, but you won't realize.

The correct command would be more like:

adb bugreport [path/]bugreport.zip

@ghost
Copy link

ghost commented Mar 17, 2019

bugreport.txt does not contain a valid bugreport file

@littleariel
Copy link

Confirmed on my side as well - documentation is wrong. Correct command is indeed adb bugreport [path/]bugreport.zip as reported by @Claytonious

@saumalik
Copy link

saumalik commented Oct 7, 2019

The above comment from @Claytonious is absolutely correct. The wrong command is mentioned on Android's official page correct is one which I just used and working:

adb bugreport [path/]bugreport.zip

@PierreCapo
Copy link

Still an issue as of March 2020

@magnusoplenskedal
Copy link

Still an issue as of April 2020

@dnat112
Copy link

dnat112 commented Jun 15, 2020

Still an issue as of June 2020

@michael172849
Copy link

Still an issue as of Aug 2020

@ninh-huynh
Copy link

Still an issue as of Nov 2020

@BBBOND
Copy link

BBBOND commented Dec 17, 2020

Still an issue as of Dec 2020

@liviu-timar
Copy link

Still an issue on 22 jan 2021 :)

@PierreCapo
Copy link

We made it to 2021 guys!

@liviu-timar
Copy link

liviu-timar commented Jan 22, 2021

Also, I don't quite understand why we need to dump batterystats.txt and also bugreport.zip... Do we need batterystats.txt? The docs say to upload bugreport.zip in Battery Historian... and it works without batterystats.txt. You cannot just upload batterystats.txt.

@J-Siu
Copy link

J-Siu commented Apr 21, 2021

OP is correct.
After 3yrs the instruction on https://developer.android.com/topic/performance/power/setup-battery-historian is still wrong.

@tobbelindberg
Copy link

@mrasyidg Not sure what your referring to, documentation is correct now.

@mrasyidg
Copy link

mrasyidg commented Dec 20, 2021

Ah didn't see the versioning.

But still not quite, at least for the 6.0 and lower ON the documentation web page, I think.

Check out the page?

@tobbelindberg
Copy link

I haven't tried on a 6.0 and lower but I would be surprised if it is not correct. However what seems wrong is what @liviu-timar is referring to. The documentation tells us to make a batterystats.txt that we later don't use at all.

@FYSong
Copy link

FYSong commented Jan 12, 2022

it works, thx @Claytonious

@EfimovALni
Copy link

EfimovALni commented Mar 24, 2022

Hi,
it works in 24.03.2022

adb shell bugreport > C:\Users\efimov\Desktop\bugRepSamsungS9.txt

Battery histiran

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests