Privacy in Android 11
Android 11 builds upon earlier versions of Android, adding features and updates to keep users secure and increase transparency and control. All developers should review the privacy features and test their apps. Impacts can vary based on each app's core functionality, targeting, and other factors.
To learn more about the key changes that take effect in Android 11, look through the following sections.
Top privacy changes
This table summarizes the key changes related to privacy that are taking effect in Android 11.
Privacy change | Apps affected | Mitigation strategy | |
---|---|---|---|
Scoped storage enforcement Apps that target Android 11 or higher are always subject to scoped storage behaviors |
Apps that target Android 11 or higher, as well as apps that target Android 10 and
haven't set requestLegacyExternalStorage to true to opt out of
scoped storage |
Update your app to work with scoped storage Learn more about the scoped storage changes |
|
One-time permissions Users can grant temporary access to location, microphone, and camera using one-time permissions |
Apps that run on Android 11 or higher and request location, microphone, or camera permissions | Check that your app has a permission before attempting to access data that's guarded
by that permission Follow best practices for requesting permissions |
|
Permissions auto-reset If users haven't interacted with an app for a few months on Android 11 or higher, the system auto-resets the app's sensitive permissions |
Apps that target Android 11 or higher and perform most of their work in the background | Ask the user to prevent the system from resetting your app's permissions Learn more about permissions auto-reset |
|
Background location access Android 11 changes how users can grant the background location permission to apps |
Apps that target Android 11 or higher and need access to background location | Request foreground (coarse or fine) and background location permissions incrementally
in separate calls to the permission request method. When necessary, explain the benefits
that users receive for granting that permission
Learn more about background location access in Android 11 |
|
Package visibility Android 11 changes how apps query and interact with other installed apps on the same device |
Apps that target Android 11 or higher and interact with other installed apps on a device | Add the <queries>
element to your app's manifestLearn more about package visibility |
|
Foreground services Android 11 changes how foreground services can access location, camera, and microphone data |
Apps that run on Android 11 or higher and access location, the camera, or the microphone in a foreground service | Declare the camera and microphone foreground service types
for the foreground services that require access to the camera and microphone,
respectively. Be aware, however, that foreground services that start while the app is in
the background usually cannot access location, camera, or microphone.Learn more about the changes to foreground services |
Get started with privacy updates
- Review the privacy features: Assess your app. Look for how your app stores files and user data, requests permissions, requests location. In addition, look for ways that your app interacts with other apps, consider performing an audit of the data that your app accesses, and determine whether your app needs to update how it uses foreground services.
- Test your app on Android 11: Run your app on Android 11. Use app compatibility tools to evaluate how individual system changes affect your app.
- Update your app: Targeting Android 11 if possible, test with users and publish an update.
Android 11 news and videos
Adapting your apps for Android 11 privacy changes
Privacy continues to be a priority in Android 11. This presentation will help you understand privacy related changes and how to make your app compatible. This includes changes to permissions including one-time permission, storage, package visibility,
Now in Android: 25 - Android 11 released, Jetpack DataStore, Android GPU Inspector, and more!
Welcome to Now in Android, your ongoing guide to what’s new and notable in the world of Android development. In this episode, Chet Haase covers an update on the release of Android 11, Jetpack DataStore, privacy changes, Android GPU Inspector, and
Turning it up to 11: Android 11 for developers
Android 11 is here! Today we’re pushing the source to the Android Open Source Project (AOSP) and officially releasing the newest version of Android. We built Android 11 with a focus on three themes: a People -centric approach to communication,
Android 11 final Beta update, official release coming soon!
It’s already August and the official Android 11 release is coming very soon! As we put the finishing touches on the new platform, today we’re bringing you Beta 3, our last update in this year’s preview cycle. For developers, now is the time to make
Now in Android: 21 - A Reddit AMA, articles, videos, and samples, AndroidX releases, and more!
Welcome to Now in Android, your ongoing guide to what’s new and notable in the world of Android development. In this episode, Chet Haase covers an update on 11 Weeks of Android featuring ML, Privacy, and Compatibility; a Reddit AMA with the Android
Android 11 Beta 2 and Platform Stability
A few weeks ago we unwrapped the first Beta of Android 11 with a focus on people, controls, and privacy. As we highlighted in the #Android11Beta Launch, we’re making Android more people-centric and expressive, helping users control their smart