From 78be158ce4b95fa537c6cb60a55dbc9161e53ef1 Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Mon, 29 Aug 2011 14:02:27 -0700 Subject: [PATCH] Un-hide the new BackupAgent.onFullBackup() API This is intended to be new public API for ICS, and unbundled app development needs access to it. Change-Id: I091b31ae9ec319850a93efc3d5860b87b68d355e --- api/current.txt | 1 + core/java/android/app/backup/BackupAgent.java | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/api/current.txt b/api/current.txt index 40b63b118fe58..2c3a28de67152 100644 --- a/api/current.txt +++ b/api/current.txt @@ -4034,6 +4034,7 @@ package android.app.backup { public abstract class BackupAgent extends android.content.ContextWrapper { ctor public BackupAgent(); + method public final void fullBackupFile(java.io.File, android.app.backup.FullBackupDataOutput); method public abstract void onBackup(android.os.ParcelFileDescriptor, android.app.backup.BackupDataOutput, android.os.ParcelFileDescriptor) throws java.io.IOException; method public void onCreate(); method public void onDestroy(); diff --git a/core/java/android/app/backup/BackupAgent.java b/core/java/android/app/backup/BackupAgent.java index 58ea0c34e4220..9542874902cac 100644 --- a/core/java/android/app/backup/BackupAgent.java +++ b/core/java/android/app/backup/BackupAgent.java @@ -255,10 +255,7 @@ public abstract class BackupAgent extends ContextWrapper { * will be delivered to the backup destination along with the metadata necessary * to place it with the proper location and permissions on the device where the * data is restored. - * @hide * - * @param context The BackupAgent that is calling this method. It is an error to - * call it from something other than a running BackupAgent instance. * @param file The file to be backed up. The file must exist and be readable by * the caller. * @param output The destination to which the backed-up file data will be sent.