From 842a9bbd5595fc4901836f396f4b68047d6d99f4 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 24 Aug 2022 19:03:29 +0200 Subject: [PATCH] Add dataExtractionRules, applicable to Android 12. Exclude everything from being backed up. Also properly support Android 11. --- tools/lint/lint.xml | 1 + vector/src/main/AndroidManifest.xml | 10 +++++----- vector/src/main/res/xml/backup_rules.xml | 18 ++++++++++++++++++ .../src/main/res/xml/data_extraction_rules.xml | 17 +++++++++++++++++ 4 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 vector/src/main/res/xml/backup_rules.xml create mode 100644 vector/src/main/res/xml/data_extraction_rules.xml diff --git a/tools/lint/lint.xml b/tools/lint/lint.xml index b4b6ebc12f..1776bd341f 100644 --- a/tools/lint/lint.xml +++ b/tools/lint/lint.xml @@ -87,6 +87,7 @@ + diff --git a/vector/src/main/AndroidManifest.xml b/vector/src/main/AndroidManifest.xml index d60620dddf..c7c0d40dd7 100644 --- a/vector/src/main/AndroidManifest.xml +++ b/vector/src/main/AndroidManifest.xml @@ -318,12 +318,12 @@ - + - - - - + + + + diff --git a/vector/src/main/res/xml/backup_rules.xml b/vector/src/main/res/xml/backup_rules.xml new file mode 100644 index 0000000000..fe10b316ed --- /dev/null +++ b/vector/src/main/res/xml/backup_rules.xml @@ -0,0 +1,18 @@ + + + + + + + + diff --git a/vector/src/main/res/xml/data_extraction_rules.xml b/vector/src/main/res/xml/data_extraction_rules.xml new file mode 100644 index 0000000000..fe61eb717c --- /dev/null +++ b/vector/src/main/res/xml/data_extraction_rules.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + +