has managed disable animations through code when running espresso tests? i've been trying follow instructions in webpage (linked here):
https://code.google.com/p/android-test-kit/wiki/disablinganimations
unfortunately not appear working, keep seeing permissions error:
04-27 15:48:28.694 303-342/system_process w/packagemanager﹕ not granting permission android.permission.set_animation_scale package com.cookbrite.dev (protectionlevel=50 flags=0x18be46)
i hoping avoid reconfiguring device/emulators. run individual tests locally , annoy me if have keep toggling settings.
i noticed other developers complaining doesn't work, might not alone:
https://groups.google.com/forum/#!msg/android-test-kit-discuss/tcil7kmqrtm/qk1qcjzm6kqj
i got work. here gist listing required steps:
https://gist.github.com/daj/7b48f1b8a92abf960e7b
the key step had missed running adb
grant permission:
adb shell pm grant com.mypackage android.permission.set_animation_scale
adding permission manifest , running reflection steps did not seem enough on own.