Skip to content

Commit 786d10b

Browse files
committed
Use ANDROID_ADB_SERVER_PORT, if set
1 parent 72c96bc commit 786d10b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/interceptors/android/adb-commands.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export const SYSTEM_CA_PATH = '/system/etc/security/cacerts';
99

1010
export function createAdbClient() {
1111
return adb.createClient({
12+
port: process.env['ANDROID_ADB_SERVER_PORT']
13+
? parseInt(process.env['ANDROID_ADB_SERVER_PORT'], 10)
14+
: 5037,
1215
// The path used to start adb, if it isn't already running:
1316
bin: process.env['ANDROID_HOME']
1417
? path.join(process.env['ANDROID_HOME'], 'platform-tools', 'adb')

0 commit comments

Comments
 (0)