title: How to disable animations in code when running Espresso tests
body: <p>Has anybody managed to disable animations <em>through code</em> when running Espresso tests?  I've been trying to follow the instructions in this webpage (linked to from <a href="https://code.google.com/p/android-test-kit/wiki/EspressoSetupInstructions#Setup_your_test_environment">here</a>):<br>
  <a href="https://code.google.com/p/android-test-kit/wiki/DisablingAnimations">https://code.google.com/p/android-test-kit/wiki/DisablingAnimations</a>     </p>
  
  <p>Unfortunately it does not appear to be working, as I keep seeing this permissions error:</p>
  
  <pre><code>04-27 15:48:28.694      303-342/system_process W/PackageManager﹕ Not granting permission android.permission.SET_ANIMATION_SCALE to package com.cookbrite.dev (protectionLevel=50 flags=0x18be46)
  </code></pre>
  
  <p>I was really hoping to avoid reconfiguring my device/emulators.  We frequently run individual tests locally and it will annoy me if I have to keep toggling settings.</p>
  
  <p>I noticed some other developers complaining that this doesn't work, so I might not be alone:<br>
  <a href="https://groups.google.com/forum/#!msg/android-test-kit-discuss/TCil7kMQRTM/QK1qCjzM6KQJ">https://groups.google.com/forum/#!msg/android-test-kit-discuss/TCil7kMQRTM/QK1qCjzM6KQJ</a></p>