Skip to content

Commit db9a1ca

Browse files
committed
Read ANDROID_ADB_SERVER_PORT environment variable to set adb PORT
- Version 4.50 - This variable is set by Jenkins Android Emulator plugin.
1 parent 24fd66f commit db9a1ca

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

AndroidViewClient/src/com/dtmilano/android/adb/adbclient.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@author: Diego Torres Milano
1818
'''
1919

20-
__version__ = '4.4.3'
20+
__version__ = '4.5.0'
2121

2222
import sys
2323
import warnings
@@ -37,10 +37,13 @@
3737
import types
3838
import platform
3939

40-
DEBUG = False
40+
DEBUG = True
4141

4242
HOSTNAME = 'localhost'
43-
PORT = 5037
43+
try:
44+
PORT = int(os.environ['ANDROID_ADB_SERVER_PORT'])
45+
except KeyError:
46+
PORT = 5037
4447

4548
OKAY = 'OKAY'
4649
FAIL = 'FAIL'

0 commit comments

Comments
 (0)