41 Commits

Author SHA1 Message Date
LIAUD Corentin
11d8621934 feat: clippy + bump deps v1.0.2 2024-06-29 12:56:34 +02:00
LIAUD Corentin
787b7b02fd fix: split get_body_length() into two methods 2024-06-29 12:37:22 +02:00
Daerckdev
b9b5c57f9d fix: get_body_length needs to handle hex length too 2024-06-20 14:28:49 +02:00
Daerckdev
84431f169f remove duplicate code 2024-06-20 14:02:54 +02:00
Daerckdev
08e9f4f512 fix: get_body_lenght method did not read bytes correctly 2024-06-20 13:16:38 +02:00
LIAUD Corentin
e0a7c9653c fix: Fix devices parsing in devices subcomand 1.0.1 2024-04-10 22:03:53 +02:00
LIAUD Corentin
5d971e2256 Release 1.0.0 2023-10-03 21:02:12 +02:00
Spedoske
ac1ce8caef return the shell command output from shell_command (#18)
* return the shell command output from shell_command

* fix exception when executing multiple shell commands

* Minor test fix

---------

Co-authored-by: LIAUD Corentin <corentin.liaud@orange.fr>
2023-10-03 20:52:10 +02:00
cocool97
ec7c4b2732 Fixes spelling (#14)
- AdbTcpConnexion -> AdbTcpConnection
- occured -> ocurred
2023-08-16 21:01:12 +02:00
LIAUD Corentin
c7ffe0f40b Release 0.7.0 2023-08-15 21:11:53 +02:00
jagenheim
fff8bd0c20 Sync functionality (#11)
* Sync functionality

Added the following sync commands:
SEND - Working as intended
RECV - Working as intended
STAT - Only checks if file exist
LIST - Untested due to device issues
---------

Co-authored-by: Fredrik Jagenheim <fjagenheim@jabra.com>
Co-authored-by: LIAUD Corentin <corentin.liaud@orange.fr>
2023-08-15 21:07:41 +02:00
cocool97
fc98bdc5a8 Merge pull request #13 from cocool97:fn-devices
Adb devices changes
2023-08-14 21:30:03 +02:00
LIAUD Corentin
7bf108e4c5 Adb devices changes
- Changes `track_devices` prototype to take impl Fn (issue #12)
- Adds "authorizing" state for device
- Bump dependencies
2023-08-14 21:28:13 +02:00
LIAUD Corentin
e13c0cb21b Releases 0.5.0 2023-04-07 09:13:48 +02:00
cocool97
7c6e618929 Merge pull request #8 from jagenheim/main
Allow host-feature to accept serial number of adb connection
2023-04-07 09:04:36 +02:00
Fredrik Jagenheim
7bc5a9ee49 Use references in API instead of Clone trait 2023-04-03 11:41:09 +02:00
Fredrik Jagenheim
129c855f2b Allow host-feature to accept serial number of adb connection 2023-03-30 14:46:50 +02:00
cocool97
b68d9f85e3 Merge pull request #6 from UserIsntAvailable/into-iterator
`shell_command` takes `IntoIterator` instead of `Vec`.
2023-02-21 21:33:42 +01:00
UserIsntAvailable
f22ebdfa69 refactor(shell_command): Vec<S> -> IntoIterator<Item = S>. 2023-02-21 13:59:07 -05:00
LIAUD Corentin
3aed5c19b3 Adds reboot subcommand 2023-02-09 17:39:44 +01:00
LIAUD Corentin
a31b9b9c38 Separates bin and lib 2023-02-09 16:59:02 +01:00
LIAUD Corentin
0dfb6e53ba Separates binary and crate
- Improves shell command with "host-features"
- Minor improvments
2022-05-20 21:53:51 +02:00
LIAUD Corentin
4ad16ecaff Modifies README.md 2022-05-20 10:59:15 +02:00
LIAUD Corentin
fa9dc1edd3 Adds host:features command
- Adds missing_debug_impl lint
2022-05-19 16:42:12 +02:00
LIAUD Corentin
bfd6cba97d New internal file architecture 2022-05-18 12:24:35 +02:00
LIAUD Corentin
73dc01963f Fixes doc tests + bump dependencies 2022-05-16 18:16:11 +02:00
cocool97
f03b0234d3 Merge pull request #2 from r-e-l-z/multiple_device_support
Multiple device support
2022-05-16 18:10:08 +02:00
LIAUD Corentin
7e25d4c830 Clarifies serial number doc message 2022-05-16 17:55:05 +02:00
Ariel Zentner
9c66a5c3cd add shell command support for multiple attached devices 2022-05-16 17:54:56 +02:00
LIAUD Corentin
a65f58c6c5 Fixes missing dependency in adb_client bin 2022-05-16 17:45:00 +02:00
LIAUD Corentin
2267768533 Removed useless AdbCommandProvider trait
- Also bump clap, anyhow & regex crates
2022-04-08 22:19:08 +02:00
cocool97
35e6b33f93 Merge pull request #1 from r-e-l-z/devices_regex_fixes
Fix regex for the devices-long command
2022-04-08 21:55:41 +02:00
LIAUD Corentin
6708c4b045 Minor improvments
- Fixes tests
- Minor changes in PR
2022-04-08 21:54:11 +02:00
Ariel Zentner
3c2366751b devices_long command, fix regex parsing for offline devices
When an adb device is offline, the `devices-ls` command output does not contain
product, model, or device attributes (besides the state being
`offline` of course).
e.g.
<IDENTIFIER>            offline usb:1-10 transport_id:14911
<IDENTIFIER>            device usb:1-9 product:<product> model:<MODEL> device:<device> transport_id:14703

In order to support both formats, the regex has changed to use
named groups, with the group of all these three being optional. When
creating the DeviceLong struct, if these fields are unknown they are
set to "Unk".
2022-03-24 14:31:35 +02:00
Ariel Zentner
f799c8074a fix regex whitespace for devices_long
In some setups the exact number of spaces didn't match, made it more
generic using the 'whitespace class' (\s)
2022-03-23 15:29:19 +02:00
LIAUD Corentin
c5541f385a Adds adb shell command 2022-01-23 21:25:05 +01:00
LIAUD Corentin
418a01ec93 WIP ADB shell 2022-01-12 21:45:49 +01:00
LIAUD Corentin
c0738ca9cc Exports missing structures
- AdbVersion
- DeviceLong
2022-01-08 11:36:30 +01:00
LIAUD Corentin
a912cd6e53 Minor changes in parsing
- Now using regexes to increase performances (+ reliability)
2022-01-07 21:48:50 +01:00
LIAUD Corentin
33ecd8a80a Adds host:track-devices command
- Also clean code and TCP socket reading
2022-01-05 20:42:14 +01:00
LIAUD Corentin
7670c1f0a0 Initial commit 2022-01-05 11:08:11 +01:00