Romain Vimont
9c545e8c29
Remove sc_adb_get_serialno()
...
The device serial is now retrieved from `adb devices -l`, `adb
get-serialno` is not called anymore.
PR #3005 <https://github.com/Genymobile/scrcpy/pull/3005 >
2022-02-09 09:56:26 +01:00
Romain Vimont
4692d13179
Expose simple API to select a single adb device
...
Select an adb device from the output of `adb device -l`.
PR #3005 <https://github.com/Genymobile/scrcpy/pull/3005 >
2022-02-09 09:56:26 +01:00
Romain Vimont
02d46b2262
Expose function to test if a serial is TCP/IP
...
In practice, it just tests if the serial contains a ':', which is
sufficient to distinguish ip:port from a real USB serial.
PR #3005 <https://github.com/Genymobile/scrcpy/pull/3005 >
2022-02-09 09:56:25 +01:00
Romain Vimont
386cf7d7ac
Build adb argv statically
...
Now that providing a serial is mandatory for adb commands where it is
relevant, the whole argv array may be built statically, without
allocations at runtime.
2022-02-05 10:56:58 +01:00
Romain Vimont
5e2bfccab4
Expose adb executable path publicly
...
This will allow the caller to build the argv array directly.
2022-02-05 10:56:58 +01:00
Romain Vimont
9e3902f30c
Use sc_ prefix for adb
2022-02-04 08:39:10 +01:00
Romain Vimont
7810ca61b0
Move ADB code to adb/
2022-02-04 08:39:10 +01:00