Streaming bugreport content to stdout 2/2
- Stream compressed content via the socket from dumpstate - Remove do_zip_file, do_add_data vars in dumpstate - getopt '-d' and '-z' options are now no-op - Rename use_control_socket -> progress_updates_to_socket - Rename use_socket -> stream_to_socket do_zip_file and do_add_data are now default behaviors. Also adding a function interface to hook dumpstate `open_socket` function that would make it easy to do integration tests of streaming zipped bugreport via socket. Stub the function and capture data from target file to verify content. Bug: 162910469 Test: adb bugreport --stream > test.zip; 7z t test.zip Test: adb shell bugreportz -s > test.zip; 7z t test.zip Test: atest dumpstate_test Test: atest dumpstate_test:ZippedBugReportStreamTest Test: atest dumpstate_smoke_test Test: manually test combo keys voldown+volup+power to trigger bugreport verify logcat kernel buffer shows "Starting service 'bugreport' from keychord 114 115 116" and device viberated as expected Change-Id: Icf79bbc42a5616e85625bd604e543fbf973911da
Loading
Please register or sign in to comment