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

Tests won't record screenshots on API 29+ #272

Open
tuliopereirazup opened this issue Nov 18, 2020 · 6 comments
Open

Tests won't record screenshots on API 29+ #272

tuliopereirazup opened this issue Nov 18, 2020 · 6 comments

Comments

@tuliopereirazup
Copy link

I'm trying to run tests on emulator using API 29+ and it won't work, I suppose that is because the new Scoped storage.

@malkes
Copy link

malkes commented Dec 10, 2020

I face the same issue.
Have you tried an emulator with API 24? It's working for me.

@TimoPtr
Copy link
Contributor

TimoPtr commented Jan 12, 2021

On API 30 Scoped storage is enable by default, I found a workaround and open a PR #273 for this

@liweijian
Copy link

@TimoPtr It seems that half a year since you PR #273 being kicked off, just wondering why not fix the conflicts and merge it?

@TimoPtr
Copy link
Contributor

TimoPtr commented Jul 2, 2021

Conflict has been solved, but it's not my call to merge this.

@liweijian
Copy link

Hi @tdrhq , I know you left Facebook for a while and kickoff a great project , but it seems that this project not response the community right now as you were working for facebook.

Do you know the background of the API 29+ Scoped storage issue? It should be a paint point for most of the developers in the community :)

@tdrhq
Copy link
Contributor

tdrhq commented Jul 5, 2021

@liweijian I haven't been keeping track of the scoped storage issue (haven't kept up with the latest Android changes). I wonder if the right solution is to use the getDataDirectory(). I think the assumptions based on which we chose to use the external directory may not be true anymore. (We're talking Gingerbread days, those days the emulator /data directory on default emulator images weren't big enough to store enough images for our tests.)

We don't really need the directory to be shareable by apps, we just need it to be downloadable with adb pull (or more realistically, adb shell with run-as or something of the sort).

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

5 participants