diff options
| author | Gavin Corkery <gavincorkery@google.com> | 2019-05-29 15:33:35 +0100 |
|---|---|---|
| committer | Gavin Corkery <gavincorkery@google.com> | 2019-05-31 10:26:56 +0100 |
| commit | ab5ee411e5aca124b79b71be53ae772b8f7099da (patch) | |
| tree | 54ce4d0b79bf3f6a613581bdb32d7ccf9913843f /core/java | |
| parent | 3a0a965cded239793fb20250d80b11f1d92a399c (diff) | |
Perform user data back up in post install stage
Currently the backup of user data is done in the enable rollback stage,
during which there is no guarantee that the package being backed up is
not currently running. Moving the backup to the post install stage will
guarantee that the package is not running.
Test: atest RollbackTest
Test: atest StagedRollbackTest
Bug: 124032231
Change-Id: I4b42a0c5ade1645585d1d6f698637df950d05c72
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/content/rollback/IRollbackManager.aidl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/content/rollback/IRollbackManager.aidl b/core/java/android/content/rollback/IRollbackManager.aidl index db9fcb6abdfa..1b84f2987a8f 100644 --- a/core/java/android/content/rollback/IRollbackManager.aidl +++ b/core/java/android/content/rollback/IRollbackManager.aidl @@ -30,9 +30,9 @@ interface IRollbackManager { String callerPackageName, in IntentSender statusReceiver); // Exposed for use from the system server only. Callback from the package - // manager during the install flow when user data can be restored for a given + // manager during the install flow when user data can be backed up and restored for a given // package. - void restoreUserData(String packageName, in int[] userIds, int appId, long ceDataInode, + void snapshotAndRestoreUserData(String packageName, in int[] userIds, int appId, long ceDataInode, String seInfo, int token); // Exposed for test purposes only. |
