Blog

Testing File Access, Sharing and the Photo Picker in a Google Play Closed Test

Testing File Access, Sharing and the Photo Picker in a Google Play Closed Test

If your app opens a photo, imports a document, exports a PDF or shares something to another app, it touches the part of Android that behaves most differently from phone to phone. Your emulator has one gallery app and a tidy Downloads folder. Real testers have cloud-synced photos, SD cards, a file manager from their phone maker and a Downloads folder full of files with odd names.

This post covers what to check in file access and sharing during your 14-day closed test, and how to ask testers to exercise it. Details of Android storage rules change between versions, so treat the specifics below as a starting point and confirm them in the official docs.

Why file and sharing bugs slip through

Most of these bugs are not logic errors. They come from assumptions that hold on your device and fail on someone else's:

  • You assume a picked file has a real path. It usually has a content:// URI instead.
  • You assume the file is on the device. It may be a cloud-backed photo that has to download first.
  • You assume access lasts. Permission to a picked URI can disappear after a restart if you did not persist it correctly.
  • You assume the user always picks something. They often back out.

None of these crash on a clean emulator, which is why a real-device closed test is a good place to find them.

1. Picking images and videos

Use the system photo picker where you can

The Android photo picker lets users choose media without you requesting broad storage permissions. Availability on older Android versions depends on how it is backported, so check the current guidance on developer.android.com for your minimum SDK. If you still request media permissions, remember that they changed in Android 13 and again in Android 14, where users can grant access to only selected photos. Also check Play Console Help for the current policy on photo and video permissions, since requirements can change and may affect your review.

What to test

  • Cancel the picker. Back out without choosing anything. The app should return to where it was, with no crash and no empty-state glitch.
  • Pick several items if you allow multiple selection, including more than you expect anyone to pick.
  • Pick a large photo. A full-resolution image from a recent phone camera can cause out-of-memory errors if you decode it at full size.
  • Pick a cloud-backed image with a slow connection. Does your app show a loading state, or freeze?
  • Grant only partial access on Android 14 and later, if you use media permissions. Does the app handle seeing fewer photos than expected?

2. Importing documents and other files

When you use the system file picker (the Storage Access Framework), you get a URI from whatever provider the user chose: Downloads, Google Drive, an SD card, another app. Each provider can behave a little differently.

Ask testers to try:

  1. A file from the Downloads folder.
  2. A file from a cloud provider such as Drive, if they use one.
  3. A file with spaces, accents, emoji or non-Latin characters in its name.
  4. An empty file, and a file that is too big for your stated limit.
  5. A file of the wrong type. If you accept only PDFs, what happens when someone picks a ZIP?

Your error messages matter here. "Something went wrong" gives a tester nothing to report. "This file type isn't supported. Choose a PDF" gets you a useful note.

Does access survive a restart?

If your app remembers a file or folder the user picked, you generally need to persist the permission, and the grant can still be lost in some situations. Have a tester pick a file, close the app, restart the phone, and reopen. If the app tries to read the old URI and fails, it should ask the user to pick again instead of crashing.

3. Exporting and saving files

Saving a report, backup or image is another place where phones differ. Check:

  • Where the file actually ends up, and whether the user is told.
  • That the file opens in another app afterward, not just in yours.
  • What happens if the user picks a destination and cancels the save dialog.
  • What happens if the device is nearly out of storage. A tester with a full phone will find this one for you, even if you never ask.

4. Sharing out of your app

When you share a file with another app, you should hand it over through a FileProvider content URI with a temporary read grant. Sharing a raw file path is a common cause of crashes on newer Android versions.

Test sharing to a few different destinations:

  • A messaging app.
  • An email app, with the file as an attachment.
  • Save to Drive or another cloud app.
  • Copy to clipboard, if you offer it.

For each one, check that the receiving app can actually open the file. A share sheet that appears is not the same as a share that worked. Also check that the shared file has a sensible name and the right MIME type, since some apps reject or mislabel files with the wrong type.

5. Receiving shares from other apps

If your manifest declares that your app accepts shared content, testers should try sending things to it from outside:

  • Share a photo from the gallery.
  • Share text or a link from a browser.
  • Share while your app is already open, and while it is closed.
  • Share several items at once if you declare multiple-item support.

Check that your app does not appear in the share sheet for content it cannot handle. That usually points to an overly broad intent filter.

How to run this in your closed test

Do not just tell testers to "try file features". Give them a short, concrete list. For example:

Please import one photo, one PDF and one file with a long or unusual name. Cancel the picker once. Export a report and open it in another app. Tell me your phone model and where the file came from (Downloads, Drive, SD card).

The last line matters. Knowing the source of the file and the phone model turns a vague complaint into something you can reproduce. If you want more on structuring requests like this, see our post on collecting useful feedback from closed testers on the blog.

Where TesterMob fits

The 12-tester requirement is partly about getting varied real devices into your test. On TesterMob, testers use their own Android phones, spend about 20 minutes a day in your app and write feedback, so you tend to get a mix of gallery apps, file managers and storage setups that you would not have on your desk. That is useful for file handling, but it does not replace your own testing, and it cannot guarantee that Google will approve production access. You can see how the process works on the FAQ page.

A quick checklist before you ship the build

  • Picker cancelled: no crash, no broken state.
  • Large images downscaled before decoding.
  • Cloud-backed files show a loading or error state.
  • Odd filenames and wrong file types handled with a clear message.
  • Persisted file access checked across an app restart and a device reboot.
  • Shared files use FileProvider and open correctly in the receiving app.
  • Incoming share intents tested with the app open and closed.
  • Permissions requested match what the feature really needs, and match your Data safety answers.

File access bugs are rarely dramatic, but they are the kind that make a first-time user uninstall quietly. Fixing them during the closed test, and shipping an update that says so in your release notes, is a good use of those 14 days.

Your 14 days start today.

Set up your closed test in minutes, or join as a tester and start earning.