feat: autodetect an ADB device when no vendor or product ID is specified (#44)

* feat: autodetect an ADB device when no vendor or product ID is specified

### Changes

- Added methods `autodetect` to `autodetect_with_custom_private_key` to
`ADBUSBDevice`
- Added private functions to check if a usb device has the signature of
an ADB device
- Made the `vendor_id` and `product_id` USB arguments optional and
default to aforementioned methods

* fix: improve github actions workflows

---------

Co-authored-by: LIAUD Corentin <corentinliaud26@gmail.com>
This commit is contained in:
Himadri Bhattacharjee
2024-10-31 15:00:13 +00:00
committed by GitHub
parent 266265ca35
commit cff0e68f46
5 changed files with 104 additions and 27 deletions

View File

@@ -1,6 +1,6 @@
name: Rust - Build
on: [push]
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always

View File

@@ -1,6 +1,6 @@
name: Rust - Quality
on: [push]
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always