zhangmengvv / android-test-kit

Automatically exported from code.google.com/p/android-test-kit
0 stars 0 forks source link

Disabling Animations instructions on wiki don't work #109

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Follow the guide on the wiki page "Disabling Animations". 
https://code.google.com/p/android-test-kit/wiki/DisablingAnimations
2. Set the test runner and run a test

What is the expected output? What do you see instead?

Expected: Log should show that animations were disabled and the test should run 
without animations.
Actual: Log shows permission was denied and tests run with animations.

What version of the product are you using? On what operating system?

v1.1 on osx

Please provide any additional information below.

1. I tried setting the permission using `adb shell pm grant _mypackage_ 
android.permission.SET_ANIMATION_SCALE` and it didn't work. Then I checked if 
there was such a permission: `adb shell pm list permissions | grep ANIM`. No 
such permission exists on the emulator or my device (Nexus 4). In fact there 
are lots of permissions listed at 
http://developer.android.com/reference/android/Manifest.permission.html that 
aren't returned by pm list permissions.

2. Disabling animations manually in the emulator (settings|dev options| {window 
animation scale, transition animation scale, animator duration scale} = off) 
has no effect. The same settings on my device do have an effect.

Original issue reported on code.google.com by jer...@loftinspace.com.au on 17 Dec 2014 at 11:33