Search code examples
androidandroid-manifestandroid-backup-service

How does a BackupAgent work?


I'm looking at AndroidManifest files and I see entries for android:backupAgent and according to the Documentation android:backupAgent is

The name of the class implementing BackupAgent to manage backup and restore of the application's settings to external storage.

But I can't find a BackupAgent interface or any other documentation. Can someone point me in the right direction?


Solution

  • BackupAgent's API is not solidified yet, so it's a hidden class. You can check it out on Android's git, where there is this comment:

    /**
     * This is the central interface between an application and Android's
     * settings backup mechanism.
     * 
     * @hide pending API solidification
     */