support data extraction rules

Data Extraction Rules have replaced Backup Content on Android 12
This commit is contained in:
Daniel Gultsch 2023-10-15 08:48:09 +02:00
parent 55551610ec
commit 01b44948c1
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2
2 changed files with 15 additions and 2 deletions

View file

@ -78,6 +78,7 @@
android:allowBackup="true"
android:appCategory="social"
android:fullBackupContent="@xml/backup_content"
android:dataExtractionRules="@xml/data_extraction_rules"
android:hardwareAccelerated="true"
android:icon="@mipmap/new_launcher"
android:label="@string/app_name"
@ -88,7 +89,7 @@
android:theme="@style/ConversationsTheme"
tools:replace="android:label"
android:localeConfig="@xml/locales_config"
tools:targetApi="q">
tools:targetApi="tiramisu">
<meta-data
android:name="com.google.android.gms.car.application"
@ -101,7 +102,8 @@
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
<action android:name="android.net.conn.CONNECTIVITY_CHANGE"
tools:ignore="BatteryLife" />
<action android:name="android.intent.action.ACTION_SHUTDOWN" />
<action android:name="android.media.RINGER_MODE_CHANGED" />
</intent-filter>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<data-extraction-rules>
<cloud-backup disableIfNoEncryptionCapabilities="true">
<include domain="sharedpref" />
<include domain="database" />
</cloud-backup>
<device-transfer>
<include domain="sharedpref" />
<include domain="database" />
</device-transfer>
</data-extraction-rules>