Android android:allowBackup waiting for backup

在Google settings 中,有个backup 选项,在里面选择开启

如果开启vpn,还是在setting里面还是waiting for backup, 就通过手机链接电脑,安装android sdk。通过adb backup

1 adb shell bmgr backupnow --all

通过android 开发文档查看:backup的文件包含:

By default, Auto Backup includes files in most of the directories that are assigned to your app by the system:

Auto Backup excludes files in directories returned by getCacheDir()getCodeCacheDir(), or getNoBackupFilesDir(). The files saved in these locations are only needed temporarily, or are intentionally excluded from backup operations.

You can configure your app to include and exclude particular files. For more information, see the Include and exclude files section.

Note: https://developer.android.com/guide/topics/data/autobackup

在android manifest中:

Apps that target Android 6.0 (API level 23) or higher automatically participate in Auto Backup. In your app manifest file, set the boolean value android:allowBackup to enable or disable backup. The default value is true

1 <manifest ... >
2     ...
3     <application android:allowBackup="true" ... >
4         ...
5     </application>
6 </manifest>

为防止其他第三方库的默认设置,最好加上tools:replace在application节点上:

1 tools:replace="android:theme,android:allowBackup"

 

转载于:https://www.cnblogs.com/CharlesGrant/p/11540180.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值