Preparing for scoped storage (Android Dev Summit '19)

Channel:Android Developers · Length:35:42 · Published:2019-10-24 · Views:84706

Watch on YouTube

Summary

A 2019 Android Dev Summit session on the scoped storage model in Android 10. It gives a plan overview and best practices for apps adapting to the new restrictions.

Why HN recommends it

Cited as the official explanation of Google's scoped storage changes and its intent to limit broad file access.

This official video is actually a pretty good summary of some the changes made and what the goal is — HN, 2020

Software (other) · Operating systems & kernels

Subtitles (excerpt)

[MUSIC PLAYING] ROXANNA ALIBADI: Hi. My name is Roxanna, and I'm a product manager on the Android Framework team. And I'm joined by Zim and Yacine. So last year, we introduced a new way of thinking about storage on Android with Android 10. We call this change Scope Storage. And so today, we're going to talk more about those changes, and we're going to talk about some new things that we're thinking about to make these changes easier for developers to adopt. And at the end, Yacine is going to go through some practical examples and best practices. So first, I want to clarify what's meant by shared storage. Every app has their own private directory in internal storage. This is what you find at android/data/ your package name. And this is not visible to any other app with the storage permission. Then everything else is considered shared storage. This includes the media collections and external app directories on the SD card. We find that about half of apps today request the storage permission. But in fact, the majority of these apps don't really need such a broad view of storage. They're trying to do simple things like select an image file for a user to pick a profile picture for a social app, or maybe to download an image

On Hacker News

I'm guessing it was back ported to Android 4.4, so it probably hasn't been available quite that long. (Update: Nevermind, looks like it was in the initial 4.4 release: [LINK] ) But they've definitely been warning about the pending API change since at least 2019: [VIDEO] The devs in the comments of that video do have some valid complaints about the added complexity of not being able to use the sta… — Ajedi32, 2025-05
This is a bit surprising in 2024 (well almost 2025). Android has a really nice API for reducing the need for this permission, and most of it has been around sicnce android 10. [VIDEO] Maybe the author is not aware of these? How about opening an issue? — daghamm, 2024-12
syncthing is an incredible piece of software. It should be noted that: * "Security" changes in recent versions of Android seem designed to kill use cases like syncthing. See links below. * There is no iOS version, as near as I can tell because iOS is already where Android is headed. The crux of the problem is syncthing is a single golang binary, but the only way to manage filesystem permissions o… — anderspitman, 2020-06
Disclaimer: I'm not really an Android developer. I was considering implementing a service I'm working on for Android and after many hours of research determined it's not a suitable operating system for my purposes. Personally I no longer consider Android a viable computing platform. As a developer you simply don't have the tools available to give your users control over their data and experience.… — anderspitman, 2020-05

Related videos