Merge "Automatically restore app data at install time"

This commit is contained in:
Chris Tate
2010-02-19 18:23:45 -08:00
committed by Android (Google) Code Review
7 changed files with 221 additions and 64 deletions

View File

@@ -61,6 +61,12 @@ interface IBackupManager {
*/
void agentDisconnected(String packageName);
/**
* Notify the Backup Manager Service that an application being installed will
* need a data-restore pass. This method is only invoked by the Package Manager.
*/
void restoreAtInstall(String packageName, int token);
/**
* Enable/disable the backup service entirely. When disabled, no backup
* or restore operations will take place. Data-changed notifications will

View File

@@ -68,8 +68,6 @@ public class ApplicationInfo extends PackageItemInfo implements Parcelable {
* will be null if the application does not specify it in its manifest.
*
* <p>If android:allowBackup is set to false, this attribute is ignored.
*
* {@hide}
*/
public String backupAgentName;

View File

@@ -154,6 +154,8 @@ interface IPackageManager {
void installPackage(in Uri packageURI, IPackageInstallObserver observer, int flags,
in String installerPackageName);
void finishPackageInstall(int token);
/**
* Delete a package.
*