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

Attribute android:allowBackup is deprecated from Android 12 and higher #2

Open
madmiraal opened this issue Oct 10, 2022 · 0 comments
Open
Labels
Help Wanted We don’t know how to address this. Do you? Issue Type: Bug Make it work, please.

Comments

@madmiraal
Copy link
Contributor

To ensure data privacy, we need to disable automatic backups. This is done by setting the android:allowBackup <application> manifest attribute to false:

android:allowBackup="false"

However this setting has been deprecated and needs to be updated:

The attribute android:allowBackup is deprecated from Android 12 and higher and may be removed in future versions. Consider adding the attribute android:dataExtractionRules specifying an @xml resource which configures cloud backups and device transfers on Android 12 and higher.

Furthermore:

If your app is running on a device with Android 12 or higher and your app targets Android 12 (API level 31) or higher, you cannot disable device-to-device migration of your app's files. In this case, the system automatically allows this functionality.

However, you can still disable cloud-based backup and restore of your app's files by setting this attribute to false, even if your app targets Android 12 (API level 31) or higher.

Although we probably do want to allow a user to migrate their data to a new device, we need to ensure that the current setting doesn't allow an unauthorised user to extract and view the private data just by physically connecting another device.

@madmiraal madmiraal added bug Help Wanted We don’t know how to address this. Do you? labels Oct 10, 2022
@madmiraal madmiraal added Issue Type: Bug Make it work, please. Help Wanted We don’t know how to address this. Do you? and removed bug Help Wanted We don’t know how to address this. Do you? labels May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted We don’t know how to address this. Do you? Issue Type: Bug Make it work, please.
Projects
None yet
Development

No branches or pull requests

1 participant