title: Appium does not start the test on Expo App on Android
body: <p>My goal is to run end-to-end tests with Appium on an App built with Expo (turtle-cli).</p>
  
  <p>I try to start a test session with Appium-Desktop with this parameters:</p>
  
  <pre><code>{
    "platformName": "android",
    "deviceName": "ENU7N15B0300...",
    "app": "path-to-apk",
    "automationName": "UiAutomator2"
  }
  </code></pre>
  
  <p>The app launches on the smartphone, but I get a timeout error from Appium:</p>
  
  <pre><code>[MJSONWP] Encountered internal error running command: Error: Cannot start the 'com.example.testetoeapplauda' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Error executing adbExec. Original error: 'Command 'adb -P 5037 -s ENU7N15B03007818 shell am start -W -n com.example.testetoeapplauda/host.exp.exponent.MainActivity -S' timed out after 20000ms'. Try to increase the 20000ms adb execution timeout represented by 'adbExecTimeout' capability
  </code></pre>
  
  <p>The interesting part is the adb shell command. When I run this command manually, the app launches, but the command does not finish - it just hangs forever.</p>
  
  <pre><code>$ adb -P 5037 -s ENU7N15B03007818 shell am start -W -n com.example.testetoeapplauda/host.exp.exponent.MainActivity -S
  Stopping: com.example.testetoeapplauda
  Starting: Intent { cmp=com.example.testetoeapplauda/host.exp.exponent.MainActivity }
  </code></pre>
  
  <p>When I remove the parameter <code>-W</code> it is not blocking.</p>
  
  <p>Do you have advice on how to start Appium tests on an Expo app <strong>OR</strong> do you have any idea how I can change Appium to don't use the <code>-W</code> flag?</p>
  
  <p>Here is the apk, if you want to test it: <a href="https://drive.google.com/open?id=19KtkEqIM5XfhVeUgKAOk9W40e3dpVKiG" rel="nofollow noreferrer">expo-app-test apk file</a></p>