diff --git a/lib/uiautomator2.js b/lib/uiautomator2.js
index <HASH>..<HASH> 100644
--- a/lib/uiautomator2.js
+++ b/lib/uiautomator2.js
@@ -155,10 +155,10 @@ class UiAutomator2Server {
     const maxRetries = 2;
     const delayBetweenRetries = 3000;
     while (retries < maxRetries) {
-      let didProcessExit = false;
       log.info(`Waiting up to ${timeout}ms for UiAutomator2 to be online...`);
+      let didProcessExit = false;
       try {
-        await this.startInstrumentationProcess(timeout, () => {
+        await this.startInstrumentationProcess(() => {
           didProcessExit = true;
         });
       } catch (e) {
@@ -208,7 +208,7 @@ class UiAutomator2Server {
     await this.jwproxy.command('/session', 'POST', {desiredCapabilities: caps});
   }
 
-  async startInstrumentationProcess (startupTimeout, onExit = null) {
+  async startInstrumentationProcess (onExit = null) {
     const cmd = ['am', 'instrument', '-w'];
     if (this.disableWindowAnimation) {
       cmd.push('--no-window-animation');
@@ -227,7 +227,7 @@ class UiAutomator2Server {
         onExit();
       }
     });
-    await instrumentationProcess.start(startupTimeout);
+    await instrumentationProcess.start(3000);
   }
 
   async deleteSession () {
Hardcode instrumentation wind up time interval (#<I>)