mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-09 03:56:09 +01:00
Add a customized auto backup
Starting with Android 6.0 the system may automatically backup app data when a users installs an app on a new device or reinstalls an app on one. After this commit this only affects the $HOME/backup/ folder, so that the user may choose what to backup. See https://developer.android.com/training/backup/autosyncapi.html
This commit is contained in:
parent
a6a83b1fcd
commit
1b36c684d6
2 changed files with 6 additions and 0 deletions
|
|
@ -14,6 +14,7 @@
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:allowBackup="true"
|
android:allowBackup="true"
|
||||||
|
android:fullBackupContent="@xml/backupscheme"
|
||||||
android:icon="@drawable/ic_launcher"
|
android:icon="@drawable/ic_launcher"
|
||||||
android:banner="@drawable/banner"
|
android:banner="@drawable/banner"
|
||||||
android:label="@string/application_name"
|
android:label="@string/application_name"
|
||||||
|
|
|
||||||
5
app/src/main/res/xml/backupscheme.xml
Normal file
5
app/src/main/res/xml/backupscheme.xml
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<full-backup-content>
|
||||||
|
<!-- See https://developer.android.com/training/backup/autosyncapi.html -->
|
||||||
|
<include domain="file" path="home/backup" />
|
||||||
|
</full-backup-content>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue