For more information, see Files that are backed up. This section shows you how to define custom XML rules to control what gets backed up. If your app targets Android 12 (API level 31) or higher, you must specify an additional set of XML backup rules to support the changes to backup restore that were introduced for devices running Android 12 or higher.