Has anybody managed to disable animations through code when running Espresso tests? I\'ve been trying to follow the instructions in this webpage (linked to from he
I finally got this to work. Here is a Gist listing the required steps:
https://gist.github.com/daj/7b48f1b8a92abf960e7b
The key step that I had missed was running adb
to grant the permission:
adb shell pm grant com.mypackage android.permission.SET_ANIMATION_SCALE
Adding the permission to the manifest and running the reflection steps did not seem to be enough on their own.