Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling Animations instructions on wiki don't work #109

Open
GoogleCodeExporter opened this issue May 26, 2015 · 4 comments
Open

Disabling Animations instructions on wiki don't work #109

GoogleCodeExporter opened this issue May 26, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 17 Dec 2014 at 11:33

@GoogleCodeExporter
Copy link
Author

Same here. Just to add one point:
* The generated manifest file for the test app contains the SET_ANIMATION_SCALE 
permission:
    <uses-permission android:name="android.permission.SET_ANIMATION_SCALE" />
* Looking at the granted permissions of the respective package does not contain 
the permission.

OS: Ubuntu, Emulator is based on Android 5.0.1 / Nexus 5

Original comment by [email protected] on 3 Apr 2015 at 11:59

@GoogleCodeExporter
Copy link
Author

Same issue for me I've tried this on Genymotion instances on 4.1,4.3,4.4 and 
5.0 emulators.Also I've copy pasted SET_ANIMATION_SCALE permission in manifest 
file under androidTest folder.

Original comment by [email protected] on 7 Apr 2015 at 7:43

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 5 May 2015 at 5:51

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 5 May 2015 at 5:51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant