We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c568f17 commit 8df5877Copy full SHA for 8df5877
staging/host/commands/host_bugreport/main.cc
@@ -78,6 +78,14 @@ Result<void> CreateDeviceBugreport(
78
std::string adb_bin_path = HostBinaryPath("adb");
79
CF_EXPECT(FileExists(adb_bin_path),
80
"adb binary not found at: " << adb_bin_path);
81
+ Command connect_cmd("timeout");
82
+ connect_cmd.SetWorkingDirectory(
83
+ "/"); // Use a deterministic working directory
84
+ connect_cmd.AddParameter("30s")
85
+ .AddParameter(adb_bin_path)
86
+ .AddParameter("connect")
87
+ .AddParameter(ins.adb_ip_and_port());
88
+ CF_EXPECT_EQ(connect_cmd.Start().Wait(), 0, "adb connect failed");
89
Command wait_for_device_cmd("timeout");
90
wait_for_device_cmd.SetWorkingDirectory(
91
"/"); // Use a deterministic working directory
0 commit comments