Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 1.37 KB

android-backup-rules-android-12.md

File metadata and controls

33 lines (29 loc) · 1.37 KB
author ms.author ms.date ms.topic
lucen-ms
lucen
10/13/2021
include
  1. Open the project’s AndroidManifest.xml file. Add the android:dataExtractionRules attribute to the <application> element. It should point to the appcenter_backup_rule.xml resource file.
android:dataExtractionRules="@xml/appcenter_backup_rule"
  1. Add the following backup rules to the appcenter_backup_rule.xml file:
<data-extraction-rules xmlns:tools="http://schemas.android.com/tools">
    <cloud-backup>
        <exclude domain="sharedpref" path="AppCenter.xml"/>
        <exclude domain="database" path="com.microsoft.appcenter.persistence"/>
        <exclude domain="database" path="com.microsoft.appcenter.persistence-journal"/>
        <exclude domain="file" path="error" tools:ignore="FullBackupContent"/>
        <exclude domain="file" path="appcenter" tools:ignore="FullBackupContent"/>
    </cloud-backup>
    <device-transfer>
        <exclude domain="sharedpref" path="AppCenter.xml"/>
        <exclude domain="database" path="com.microsoft.appcenter.persistence"/>
        <exclude domain="database" path="com.microsoft.appcenter.persistence-journal"/>
        <exclude domain="file" path="error" tools:ignore="FullBackupContent"/>
        <exclude domain="file" path="appcenter" tools:ignore="FullBackupContent"/>
    </device-transfer>
</data-extraction-rules>