Skip to content

Commit 5052b91

Browse files
authored
Merge pull request #2 from MadeAgents/fix
Specify adb server port
2 parents 7c09946 + 84eadd2 commit 5052b91

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

android_world/env/android_world_controller.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,10 @@ def get_controller(
321321
adb_port=console_port + 1,
322322
grpc_port=grpc_port,
323323
),
324-
adb_controller=config_classes.AdbControllerConfig(adb_path=adb_path),
324+
adb_controller=config_classes.AdbControllerConfig(
325+
adb_path=adb_path,
326+
adb_server_port=int(os.environ.get('ANDROID_ADB_SERVER_PORT', '5037'))
327+
),
325328
),
326329
)
327330
android_env_instance = loader.load(config)

0 commit comments

Comments
 (0)