[Android] Re-enable backup with medialibrary excluded

Geoffrey Métais git at videolan.org
Thu Feb 1 15:33:28 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb  1 15:27:19 2018 +0100| [7aebd9f9ea66759db058946509ba0df32b8ac84d] | committer: Geoffrey Métais

Re-enable backup with medialibrary excluded

> https://code.videolan.org/videolan/vlc-android/commit/7aebd9f9ea66759db058946509ba0df32b8ac84d
---

 vlc-android/AndroidManifest.xml      | 3 ++-
 vlc-android/res/xml/backup_rules.xml | 8 ++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/vlc-android/AndroidManifest.xml b/vlc-android/AndroidManifest.xml
index 39af27937..49b6ef652 100644
--- a/vlc-android/AndroidManifest.xml
+++ b/vlc-android/AndroidManifest.xml
@@ -49,7 +49,8 @@
     <application
         android:name="org.videolan.vlc.VLCApplication"
         android:hardwareAccelerated="true"
-        android:allowBackup="false"
+        android:allowBackup="true"
+        android:fullBackupContent="@xml/backup_rules"
         android:largeHeap="true"
         android:icon="@drawable/icon"
         android:roundIcon="@drawable/roundicon"
diff --git a/vlc-android/res/xml/backup_rules.xml b/vlc-android/res/xml/backup_rules.xml
new file mode 100644
index 000000000..9adb8745f
--- /dev/null
+++ b/vlc-android/res/xml/backup_rules.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<full-backup-content>
+    <exclude domain="root" path="db"/>
+    <exclude domain="root" path="app_db"/>
+    <exclude domain="root" path="keystore"/>
+    <exclude domain="root" path="app_keystore"/>
+</full-backup-content>
+



More information about the Android mailing list