Missing data extraction rules
Missing data extraction rules
Before Android 12, the attributes android:allowBackup
and android:fullBackupContent
were used to configure all forms of backup, including cloud backups, device-to-device transfers and adb backup.
In Android 12 and higher, these attributes have been deprecated and will only apply to cloud backups. You should instead use the attribute android:dataExtractionRules
, specifying an @xml
resource that configures which files to back up, for cloud backups and for device-to-device transfers, separately. If your minSdkVersion
supports older versions, you'll still want to specify an android:fullBackupContent
resource if the default behavior is not right for your app.
Issue id: DataExtractionRules
https://developer.android.com/about/versions/12/backup-restore#xml-changes
https://goo.gle/DataExtractionRules
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3 |
Plugin: | Android, 2022.3.1 Beta 2 |