Skip to content

Commit

Permalink
Avoid including device name in adb command if it is empty.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 662172728
  • Loading branch information
DeepMind authored and copybara-github committed Aug 12, 2024
1 parent c109b8c commit bb83d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android_env/components/adb_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def command_prefix(self, include_device_name: bool = True) -> list[str]:
'-P',
str(self._config.adb_server_port),
]
if include_device_name:
if include_device_name and self._config.device_name:
command_prefix.extend(['-s', self._config.device_name])
return command_prefix

Expand Down

0 comments on commit bb83d06

Please sign in to comment.