BearND has uploaded a new change for review.
https://gerrit.wikimedia.org/r/248286
Change subject: 6.0 backup configuration
......................................................................
6.0 backup configuration
Make sure we don't backup sensitive or device specific data.
I had issues testing this on my two 6.0 devices and the emulator. It
looks like it didn't really restore the backup onto my physical devices.
It did seem to do so on my emulator, but then I had some occasional
crashes after doing so, when it used the theme (colorTheme) shared
preference value. It doesn't make any sense as to why that happened.
It's probably better to just disable the backup for now and then revisit it
later.
Bug: T116232
Change-Id: I12bbf6dea7b366b3da7a6d3707d642e241812169
---
M app/src/main/AndroidManifest.xml
A app/src/main/res/xml/backupscheme.xml
2 files changed, 9 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/apps/android/wikipedia
refs/changes/86/248286/1
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 5ffe37a..c69e8b9 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -30,6 +30,7 @@
<application
android:allowBackup="true"
+ android:fullBackupContent="@xml/backupscheme"
android:supportsRtl="true"
android:icon="@mipmap/launcher"
android:label="@string/app_name"
diff --git a/app/src/main/res/xml/backupscheme.xml
b/app/src/main/res/xml/backupscheme.xml
new file mode 100644
index 0000000..4d67de4
--- /dev/null
+++ b/app/src/main/res/xml/backupscheme.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<full-backup-content>
+ <exclude domain="sharedpref" path="userID"/>
+ <exclude domain="sharedpref" path="password"/>
+ <exclude domain="sharedpref" path="remote-config-refresher-lastrun"/>
+ <exclude domain="sharedpref" path="readingAppInstallID"/>
+ <exclude domain="sharedpref" path="session_data"/>
+</full-backup-content>
\ No newline at end of file
--
To view, visit https://gerrit.wikimedia.org/r/248286
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I12bbf6dea7b366b3da7a6d3707d642e241812169
Gerrit-PatchSet: 1
Gerrit-Project: apps/android/wikipedia
Gerrit-Branch: master
Gerrit-Owner: BearND <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits