Refactor options parsing in dumpstate
Dumpstate binder service is currently used only in the interactive
mode. It needs to be a proper binder service to support the new
bugreporting API. To do that the code needs to be more modular
and reusable.
BUG: 111441001
Test: mmm -j frameworks/native/cmds/dumpstate/ && \
adb push ${OUT}/data/nativetest64/dumpstate_test* \
/data/nativetest64 && \
adb shell /data/nativetest64/dumpstate_test/dumpstate_test
Test: adb shell /data/nativetest64/dumpstate_smoke_test/dumpstate_smoke_test
Test: adb bugreport
Change-Id: Iebee8bfb533dc1d7c152d82fca1bbf9cc105bf34
4 files changed