-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[UiAutomator] Permission denied when taking screen shot. #14
Comments
Thanks for the feedback. Will file a bug on your behalf so we can investigate. |
Hi @otw, Can you let me know where to track the permission issue ? Thanks, |
Hi @otw
Do you have any suggestion to solve this problem, or the higher library has already solved this issue? |
I have the same problem |
I have the same problem, Thanks |
Hi. I found a decision.
adb shell pm grant com.example.android.testing.uiautomator.your_app android.permission.READ_EXTERNAL_STORAGE adb shell pm grant com.example.android.testing.uiautomator.your_app android.permission.WRITE_EXTERNAL_STORAGE |
all above i have done .but can't slove the problem |
I have the same problem |
do we have a fix for this issue |
I'd recommend saving the file via TestStorage. Check out the Screenshotsample for an example |
Hi,
I presume that with UiAutomator 2.0 the only way to invoke UI testing is using gradle (
$ ./gradlew connectedCheck
), however it seems like it doesn't have enough privilege to create new file.But if you create the file via adb shell (
$ adb shell touch /data/local/tmp/uiautomator.png
) first then everything will works fine.Could you please have a look on the gradle permission issue ?
Thanks,
Dino
The text was updated successfully, but these errors were encountered: