diff options
| author | TreeHugger Robot <treehugger-gerrit@google.com> | 2020-11-03 12:51:53 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-11-03 12:51:53 +0000 |
| commit | 5434c0b2dcd889dc55df004aff67b694a899ee26 (patch) | |
| tree | 71a1d403d4a7099c9a0cc1021db0291ca97a3ccc /core/java | |
| parent | aeca70156162dd0f3cdfd1fe37241f02f2d6cca2 (diff) | |
| parent | 18d20709e0a238d3a571dc3d852e682e64706f56 (diff) | |
Merge "Fix the orphan child session after abandoning the parent session"
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/content/pm/PackageInstaller.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/java/android/content/pm/PackageInstaller.java b/core/java/android/content/pm/PackageInstaller.java index 596d39b50848..0fc9fad4d635 100644 --- a/core/java/android/content/pm/PackageInstaller.java +++ b/core/java/android/content/pm/PackageInstaller.java @@ -1356,7 +1356,9 @@ public class PackageInstaller { * Completely abandon this session, destroying all staged data and * rendering it invalid. Abandoned sessions will be reported to * {@link SessionCallback} listeners as failures. This is equivalent to - * opening the session and calling {@link Session#abandon()}. + * {@link #abandonSession(int)}. + * <p>If the parent is abandoned, all children will also be abandoned. Any written data + * would be destroyed and the created {@link Session} information will be discarded.</p> */ public void abandon() { try { @@ -1419,7 +1421,8 @@ public class PackageInstaller { * when this session is committed. * * <p>If the parent is staged or has rollback enabled, all children must have - * the same properties. + * the same properties.</p> + * <p>If the parent is abandoned, all children will also be abandoned.</p> * * @param sessionId the session ID to add to this multi-package session. */ |
