title: How to disable the new Autofill feature from Android Oreo for espresso tests
body: <p>Running tests on android devices with <code>sdk 26</code> causes them to fail because of the new <a href="https://developer.android.com/guide/topics/text/autofill.html" rel="noreferrer">Autofill</a> feature that hides the fields when espresso are trying to click them.</p>
  
  <p>Im running my tests on firebase test lab so I cannot disable them manually on my tests devices.</p>
  
  <p>Some images:</p>
  
  <h1>1. Password is visible before clicking username field.</h1>
  
  <p><a href="https://i.stack.imgur.com/xpnmH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/xpnmH.png" alt="enter image description here"></a></p>
  
  <h1>2. After clicking username field password field is hidden by this Autofill dialog:</h1>
  
  <p><a href="https://i.stack.imgur.com/6FCsf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6FCsf.png" alt="enter image description here"></a></p>
  
  <h1>3. After login it shows another Fill dialog:</h1>
  
  <p><a href="https://i.stack.imgur.com/I5Dsq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/I5Dsq.png" alt="enter image description here"></a></p>
  
  <p>Espresso cant click now password field since the autofill dialog is hiding my field and <code>fail</code>.</p>
  
  <p>Using <code>AutofillManager#disableAutofillServices()</code> only disabled the #2. dialog but #3. is still there.</p>
  
  <p>How to disable Autofill on test devices?</p>