OSDN Git Service

Split app move into separate copy/delete steps.
authorJeff Sharkey <jsharkey@android.com>
Tue, 7 Jul 2015 20:31:37 +0000 (13:31 -0700)
committerJeff Sharkey <jsharkey@android.com>
Tue, 7 Jul 2015 20:31:53 +0000 (13:31 -0700)
commit31f08986f83fa6f2dcf55523b2cf706460aeed7c
treebae076be99e59307a1f2591910058cdc0b7c74dc
parent56105b2f72761dec62699db5d61570971fdf6580
Split app move into separate copy/delete steps.

App movement now has three distinct stages: copying, scanning, and
cleanup.  Previously, a battery pull late in the move process would
end up with packages.xml pointing at the old location which had been
torn down.  Now, we update packages.xml to point at the new location
as the "source of truth" before we start deleting the old location.

Bug: 21831336
Change-Id: I62b8916c673265c240e2574ea968cdce5a7a0074
cmds/installd/commands.cpp
cmds/installd/installd.cpp
cmds/installd/installd.h