Skip to content

Commit 23e012f

Browse files
z80020100cocool97
authored andcommitted
docs: note transport id volatility in adb_cli --transport-id help
1 parent 30f785d commit 23e012f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

adb_cli/src/models/opts.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ pub struct ServerCommand<T: Subcommand> {
4141
#[clap(short = 's', long = "serial")]
4242
pub serial: Option<String>,
4343
/// Transport id of a specific device (as shown by `adb devices -l`). Use this to
44-
/// disambiguate devices that share the same serial number.
44+
/// disambiguate devices that share the same serial number. Transport ids are
45+
/// reassigned on device reconnect or adb-server restart and should not be cached.
4546
#[clap(short = 't', long = "transport-id", conflicts_with = "serial")]
4647
pub transport_id: Option<u32>,
4748
#[clap(subcommand)]

0 commit comments

Comments
 (0)