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.cpp b/cmds/dumpstate/DumpstateService.cpp
index 49a78e7..260ea4b 100644
--- a/cmds/dumpstate/DumpstateService.cpp
+++ b/cmds/dumpstate/DumpstateService.cpp
@@ -77,6 +77,13 @@
return binder::Status::ok();
}
+binder::Status DumpstateService::startBugreport(int, const sp<IDumpstateListener>&,
+ const DumpstateOptions&, int32_t* returned_id) {
+ // TODO: fork to handle the bugreport request and return the process id or a request id here.
+ *returned_id = -1;
+ return binder::Status::ok();
+}
+
status_t DumpstateService::dump(int fd, const Vector<String16>&) {
dprintf(fd, "id: %d\n", ds_.id_);
dprintf(fd, "pid: %d\n", ds_.pid_);