From 3345d5df43f728a52f98aa3ee6e067b9894c8c4f Mon Sep 17 00:00:00 2001 From: saikrishna321 Date: Mon, 10 Jun 2024 22:37:11 +0530 Subject: [PATCH] increase adbExec timeout --- src/device-managers/AndroidDeviceManager.ts | 2 +- src/modules | 2 +- src/plugin.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/device-managers/AndroidDeviceManager.ts b/src/device-managers/AndroidDeviceManager.ts index ee6c124e4..bc36e7e61 100644 --- a/src/device-managers/AndroidDeviceManager.ts +++ b/src/device-managers/AndroidDeviceManager.ts @@ -224,7 +224,7 @@ export default class AndroidDeviceManager implements IDeviceManager { private async getAdb(): Promise { try { if (!this.adb) { - this.adb = await ADB.createADB({}); + this.adb = await ADB.createADB({ adbExecTimeout: 60000 }); const client = Adb.createClient(); this.tracker = await client.trackDevices(); const originalADBTracking = this.createLocalAdbTracker(client, this.tracker, this.adb); diff --git a/src/modules b/src/modules index 7b0d31166..af4c594a5 160000 --- a/src/modules +++ b/src/modules @@ -1 +1 @@ -Subproject commit 7b0d311666b1a6f0e116001b94fbcd257053a7b5 +Subproject commit af4c594a5156a2d0f0f787805f4abecbd0dd48b0 diff --git a/src/plugin.ts b/src/plugin.ts index 0edae2d1f..a0f27cc53 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -150,7 +150,7 @@ class DevicePlugin extends BasePlugin { pluginArgs.platform.toLowerCase() === 'android' || pluginArgs.platform.toLowerCase() == 'both' ) { - DevicePlugin.adbInstance = await ADB.createADB({}); + DevicePlugin.adbInstance = await ADB.createADB({ adbExecTimeout: 60000 }); } externalModule.onPluginLoaded( cliArgs, @@ -187,7 +187,7 @@ class DevicePlugin extends BasePlugin { externalModule.updateServer(expressApp, httpServer); if (hasEmulators && pluginArgs.platform.toLowerCase() === 'android') { log.info('Emulators will be booted!!'); - const adb = await ADB.createADB({}); + const adb = await ADB.createADB({ adbExecTimeout: 60000 }); const array = pluginArgs.emulators || []; const promiseArray = array.map(async (arr: any) => { await Promise.all([await adb.launchAVD(arr.avdName, arr)]);