Skip to content

Commit

Permalink
Add Android 12 data extraction rules
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumBadger committed Mar 15, 2023
1 parent d1c8d10 commit fb373b9
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 12 deletions.
12 changes: 0 additions & 12 deletions config/lint/lint-baseline.xml
@@ -1,15 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 7.3.1" type="baseline" client="gradle" dependencies="false" name="AGP (7.3.1)" variant="all" version="7.3.1">

<issue
id="DataExtractionRules"
message="The attribute `android:fullBackupContent` is deprecated from Android 12 and higher and may be removed in future versions. Consider adding the attribute `android:dataExtractionRules` specifying an `@xml` resource which configures cloud backups and device transfers on Android 12 and higher."
errorLine1=" android:fullBackupContent=&quot;@xml/backup_rules&quot;"
errorLine2=" ~~~~~~~~~~~~~~~~~">
<location
file="src/main/AndroidManifest.xml"
line="47"
column="33"/>
</issue>

</issues>
1 change: 1 addition & 0 deletions src/main/AndroidManifest.xml
Expand Up @@ -45,6 +45,7 @@
android:hardwareAccelerated="true"
android:allowBackup="true"
android:fullBackupContent="@xml/backup_rules"
android:dataExtractionRules="@xml/data_extraction_rules"
android:supportsRtl="true"
android:usesCleartextTraffic="true"
tools:ignore="UnusedAttribute">
Expand Down
25 changes: 25 additions & 0 deletions src/main/res/xml/data_extraction_rules.xml
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
~ This file is part of RedReader.
~
~ RedReader is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ RedReader is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with RedReader. If not, see <http://www.gnu.org/licenses/>.
-->

<data-extraction-rules>
<cloud-backup disableIfNoEncryptionCapabilities="true">
<include domain="sharedpref" path="."/>
<include domain="database" path="accounts_oauth2.db"/>
</cloud-backup>>
</data-extraction-rules>

0 comments on commit fb373b9

Please sign in to comment.