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

Not working on some Androids #3

Open
vganin opened this issue Oct 29, 2020 · 0 comments
Open

Not working on some Androids #3

vganin opened this issue Oct 29, 2020 · 0 comments

Comments

@vganin
Copy link

vganin commented Oct 29, 2020

I tested on AVDs with API 21 and 29 and this method didn't work for me.

The issue is that the test runs under the permissions of your app under test. And it requires android.permission.SET_ANIMATION_SCALE to make such changes to global settings. And this permission is signature and system which means that only system apps can have it. That's why it works when using adb shell and rooted device (or emulator).

On API 21 the additional issue is present. adb shell settings put global requires device reboot. So even if you make such change to settings, you still need to kill all processes to reboot.

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

No branches or pull requests

1 participant