platform_frameworks_native/cmds/bugreportz
Dieter Hsu 031c957e55 Streaming bugreport content to stdout 1/2
Add a -s option to bugreportz to support streaming data.

Bug: 162910469
Test: adb bugreport --stream > test.txt
Test: adb shell bugreportz -s > test2.txt
Test: atest dumpstate_test
Test: atest bugreportz_test

Change-Id: I33d68bf742c92a7359a925838827a0033ee68658
2020-11-19 17:11:13 +08:00
..
.clang-format Added unit tests to bugreportz. 2016-07-26 13:39:47 -07:00
Android.bp Convert bugreportz, cmd and performanced to Android.bp 2018-11-16 16:44:26 -08:00
AndroidTest.xml Add test config to bugreportz, dumpstate_test_fixture and surfaceFlinger_test 2017-03-27 22:59:50 -07:00
bugreportz.cpp Streaming bugreport content to stdout 1/2 2020-11-19 17:11:13 +08:00
bugreportz.h Streaming bugreport content to stdout 1/2 2020-11-19 17:11:13 +08:00
bugreportz_test.cpp Added a BEGIN:path message on bugreportz protocol. 2016-08-01 13:00:42 -07:00
main.cpp Streaming bugreport content to stdout 1/2 2020-11-19 17:11:13 +08:00
OWNERS Added OWNERS to moar bugreport-related projects... 2018-09-26 14:00:25 -07:00
readme.md Small change for testing. 2017-03-04 17:48:00 -07:00

bugreportz protocol

bugreportz is used to generate a zippped bugreport whose path is passed back to adb, using the simple protocol defined below.

Version 1.1

On version 1.1, in addition to the OK and FAILURE lines, when bugreportz is invoked with -p, it outputs the following lines:

  • BEGIN:<path_to_bugreport_file> right away.
  • PROGRESS:<progress>/<total> as dumpstate progresses (where <progress> is the current progress units out of a max of <total>).

Version 1.0

On version 1.0, bugreportz does not generate any output on stdout until the bugreport is finished, when it then prints one line with the result:

  • OK:<path_to_bugreport_file> in case of success.
  • FAIL:<error message> in case of failure.