diff options
| author | 2020-10-21 12:04:38 +0000 | |
|---|---|---|
| committer | 2020-10-21 12:04:38 +0000 | |
| commit | f865665653d8f73f86ac43f8118733d16fd958f2 (patch) | |
| tree | 6e0a56193bcae2e3ea67ee51b29e9d80f569228e /cmds/dumpstate/dumpstate.cpp | |
| parent | 0c88b54c2d3d5d20c74dd8db6fc031646ef5d4da (diff) | |
| parent | 6f5ddce79411d17b2d69646cbc1188449bceab57 (diff) | |
Remove a redundant call of starting DumpstateService am: 6f5ddce794
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1441348
Change-Id: I0c7384b38f7578cab1cfc5636af35bd9031673fc
Diffstat (limited to 'cmds/dumpstate/dumpstate.cpp')
| -rw-r--r-- | cmds/dumpstate/dumpstate.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp index 331b10a499..0fba40e2e7 100644 --- a/cmds/dumpstate/dumpstate.cpp +++ b/cmds/dumpstate/dumpstate.cpp @@ -2516,7 +2516,6 @@ static void SetOptionsFromMode(Dumpstate::BugreportMode mode, Dumpstate::DumpOpt break; case Dumpstate::BugreportMode::BUGREPORT_INTERACTIVE: // Currently, the dumpstate binder is only used by Shell to update progress. - options->do_start_service = true; options->do_progress_updates = true; options->do_screenshot = is_screenshot_requested; options->dumpstate_hal_mode = DumpstateMode::INTERACTIVE; @@ -2528,7 +2527,6 @@ static void SetOptionsFromMode(Dumpstate::BugreportMode mode, Dumpstate::DumpOpt options->dumpstate_hal_mode = DumpstateMode::REMOTE; break; case Dumpstate::BugreportMode::BUGREPORT_WEAR: - options->do_start_service = true; options->do_progress_updates = true; options->do_zip_file = true; options->do_screenshot = is_screenshot_requested; @@ -2555,12 +2553,12 @@ static void SetOptionsFromMode(Dumpstate::BugreportMode mode, Dumpstate::DumpOpt static void LogDumpOptions(const Dumpstate::DumpOptions& options) { MYLOGI( "do_zip_file: %d do_vibrate: %d use_socket: %d use_control_socket: %d do_screenshot: %d " - "is_remote_mode: %d show_header_only: %d do_start_service: %d telephony_only: %d " + "is_remote_mode: %d show_header_only: %d telephony_only: %d " "wifi_only: %d do_progress_updates: %d fd: %d bugreport_mode: %s dumpstate_hal_mode: %s " "limited_only: %d args: %s\n", options.do_zip_file, options.do_vibrate, options.use_socket, options.use_control_socket, options.do_screenshot, options.is_remote_mode, options.show_header_only, - options.do_start_service, options.telephony_only, options.wifi_only, + options.telephony_only, options.wifi_only, options.do_progress_updates, options.bugreport_fd.get(), options.bugreport_mode.c_str(), toString(options.dumpstate_hal_mode).c_str(), options.limited_only, options.args.c_str()); } @@ -2776,15 +2774,6 @@ Dumpstate::RunStatus Dumpstate::RunInternal(int32_t calling_uid, register_sig_handler(); - // TODO(b/111441001): maybe skip if already started? - if (options_->do_start_service) { - MYLOGI("Starting 'dumpstate' service\n"); - android::status_t ret; - if ((ret = android::os::DumpstateService::Start()) != android::OK) { - MYLOGE("Unable to start DumpstateService: %d\n", ret); - } - } - if (PropertiesHelper::IsDryRun()) { MYLOGI("Running on dry-run mode (to disable it, call 'setprop dumpstate.dry_run false')\n"); } |