当前位置: 首页 > 工具软件 > BeUp > 使用案例 >

On SDK version 23 and up, your app data will be automatically backed up 解决办法

须志新
2023-12-01

On SDK version 23 and up, your app data will be automatically backed up and restored on app install. Consider adding the attribute android:fullBackupContent to specify an @xml resource which configures which files to backup. More info: https://developer.android.com/training/backup/autosyncapi.html 

翻译:在SDK版本23及更高版本上,应用程序数据将在应用程序安装时自动备份和还原。考虑添加属性android:fullBackupContent到指定一个@xml资源来配置要备份的文件。更多信息:https://developer.android.com/training/backup/autosyncapi.html 

 

 

Android Api   Level 8  及其以上Android提供了为应用数据备份和恢复的功能,其决定于AndroidManif est.xml文件中allowBackup的属性值,属性值为:true .任何人都可以通过adb backup和adb  restore   进行应用数据的备份和复制,从而对一些金融类app造成危害

所以建议:把allowBackup的在文件AndroidManif est.xml修改属性值设置为:false

android:allowBackup="true"改为

android:allowBackup="false"

 

 

 

 

 类似资料: