mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-10-04 23:28:45 +00:00
Execute adb start-server
This does nothing if the adb daemon is already started, but allows to print any output/errors to the console. Otherwise, the daemon starting would occur during `adb devices`, which does not output to the console because the result is parsed. PR #3005 <https://github.com/Genymobile/scrcpy/pull/3005>
This commit is contained in:
parent
9c545e8c29
commit
5ed13ef477
3 changed files with 20 additions and 1 deletions
|
@ -194,6 +194,14 @@ sc_adb_execute(const char *const argv[], unsigned flags) {
|
|||
return sc_adb_execute_p(argv, flags, NULL);
|
||||
}
|
||||
|
||||
bool
|
||||
sc_adb_start_server(struct sc_intr *intr, unsigned flags) {
|
||||
const char *const argv[] = SC_ADB_COMMAND("start-server");
|
||||
|
||||
sc_pid pid = sc_adb_execute(argv, flags);
|
||||
return process_check_success_intr(intr, pid, "adb start-server", flags);
|
||||
}
|
||||
|
||||
bool
|
||||
sc_adb_forward(struct sc_intr *intr, const char *serial, uint16_t local_port,
|
||||
const char *device_socket_name, unsigned flags) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue