platform_frameworks_native/cmds/bugreportz
Stephen Hines c1a72e0031 Merge "NFC: Directly initialize the 's' variable." am: 566c24cf55
am: eb541541f1

Change-Id: If494f60e1d002b2854ba19fda4cbe51b0515fee9
2019-05-09 16:35:53 -07: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 bugreportz: don't write last line when it times out. 2018-08-09 16:40:54 -07:00
bugreportz.h bugreportz: don't write last line when it times out. 2018-08-09 16:40:54 -07:00
bugreportz_test.cpp Added a BEGIN:path message on bugreportz protocol. 2016-08-01 13:00:42 -07:00
main.cpp Merge "NFC: Directly initialize the 's' variable." am: 566c24cf55 2019-05-09 16:35:53 -07: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.