【发布时间】:2022-07-25 07:49:02
【问题描述】:
我当前的 android 应用程序面向 12 或更高版本。
我不想允许任何类型的备份,并且目前有这些清单设置
android:allowBackup="false"
android:fullBackupContent="false"
但是android:allowBackup="false" 设置现在给出以下警告
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.
我查看了 android:dataExtractionRules xml 的示例,但没有一个显示如何配置 allowBackup="false" 的等效项。
我错过了什么?
使用android:dataExtractionRules xml是否可以实现allowBackup="false"
【问题讨论】: