commit | 5c2bfbaea673c8329e3243910401f43f682bbf30 | [log] [tgz] |
---|---|---|
author | JW Wang <wangchun@google.com> | Thu Aug 13 15:26:59 2020 +0800 |
committer | JW Wang <wangchun@google.com> | Thu Aug 13 15:33:40 2020 +0800 |
tree | 44e8375fd10b6cbfb509e00047f6da5e0c20eb14 | |
parent | 63cd0b6097031dc92032a3836acf6a3a4151470b [diff] |
Reject inconsistent rollback/staged settings ASAP (1/n) Inspired by https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/12343143/1/services/core/java/com/android/server/pm/PackageInstallerSession.java#1555 Since the rollback/staged settings won't change after a session is created, we can reject such invalid cases in addChildSessionId() without waiting for it to fail until commit. This also simplify the error handling in later stages how to fail and clean up properly when some of the children fail. Bug: 163976510 Test: N/A, will be added in next CL Change-Id: I1f41355fa6fce5dd1487378c4b8b396c52915e61