summaryrefslogtreecommitdiffstats
path: root/cmds/installd/installd.h
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2015-07-07 13:31:37 -0700
committerJeff Sharkey <jsharkey@android.com>2015-07-07 13:31:53 -0700
commit31f08986f83fa6f2dcf55523b2cf706460aeed7c (patch)
treebae076be99e59307a1f2591910058cdc0b7c74dc /cmds/installd/installd.h
parent56105b2f72761dec62699db5d61570971fdf6580 (diff)
downloadframeworks_native-31f08986f83fa6f2dcf55523b2cf706460aeed7c.zip
frameworks_native-31f08986f83fa6f2dcf55523b2cf706460aeed7c.tar.gz
frameworks_native-31f08986f83fa6f2dcf55523b2cf706460aeed7c.tar.bz2
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
Diffstat (limited to 'cmds/installd/installd.h')
-rw-r--r--cmds/installd/installd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/installd/installd.h b/cmds/installd/installd.h
index 744ed3a..7ec5793 100644
--- a/cmds/installd/installd.h
+++ b/cmds/installd/installd.h
@@ -225,7 +225,7 @@ int fix_uid(const char *uuid, const char *pkgname, uid_t uid, gid_t gid);
int delete_user_data(const char *uuid, const char *pkgname, userid_t userid);
int make_user_data(const char *uuid, const char *pkgname, uid_t uid,
userid_t userid, const char* seinfo);
-int move_complete_app(const char* from_uuid, const char *to_uuid,
+int copy_complete_app(const char* from_uuid, const char *to_uuid,
const char *package_name, const char *data_app_name, appid_t appid,
const char* seinfo);
int make_user_config(userid_t userid);