Add a function to Dumpstate service to trigger a bugreport
Add startBugreport() to Dumpstate interface. This is part of
proper binderization of Dumpstate.
The function is not implemented yet.
BUG: 111441001
Test: m -j dumpstate
Test: adb shell /data/nativetest64/dumpstate_test/dumpstate_test
Change-Id: I484215067e5653d2e2f4e34bd9a9b569d426f411
diff --git a/cmds/dumpstate/DumpstateService.h b/cmds/dumpstate/DumpstateService.h
index 7bca24a..131aff3 100644
--- a/cmds/dumpstate/DumpstateService.h
+++ b/cmds/dumpstate/DumpstateService.h
@@ -41,6 +41,9 @@
bool getSectionDetails,
sp<IDumpstateToken>* returned_token) override;
+ binder::Status startBugreport(int fd, const sp<IDumpstateListener>& listener,
+ const DumpstateOptions& options, int32_t* returned_id) override;
+
private:
Dumpstate& ds_;
std::mutex lock_;