commit | c6e1e1059779a8aaa49f336c9ffca429fd0609d2 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Wed Mar 25 18:49:13 2020 -0600 |
committer | Jeff Sharkey <jsharkey@android.com> | Wed Mar 25 21:56:49 2020 -0600 |
tree | 434c6f04e3014f55e64e8fce7a2fe9c92a2b6846 | |
parent | b5b843f5c1c199272c9c540e24816c5bf697d688 [diff] |
Align databases with migration lifecycle. We've seen evidence of the remote caller attempting multiple migrations, so adjust the logic to ensure that we always have a valid database while an active migration is taking place. Also protect the Mainline code from a legacy provided that is having trouble with lifecycle events. Bug: 151960212 Test: atest --test-mapping packages/providers/MediaProvider Change-Id: I3920bb652352ca3a08d2004fb5e3e135cbc0ce82