feat: discover ADB devices from agent management

This commit is contained in:
tongtong committed 2026-11-12 22:30:05 +08:00
1 parent 8ecfe880cc
commit 3a7bb071f0
12 files changed
+132 -5

No files matched your search

+3
View File
@@ -65,6 +65,8 @@ enum Agents {
}
#[derive(Subcommand, Clone)]
enum Devices {
/// Discover devices already known to the Agent host ADB server
Discover,
List,
Add {
#[arg(long)]
@@ -308,6 +310,7 @@ async fn main() -> Result<()> {
Command::Restart => Request::Restart,
Command::Devices { command } => match command {
Devices::List => Request::DevicesList,
Devices::Discover => Request::DevicesDiscover,
Devices::Add {
id,
target,