summaryrefslogtreecommitdiff
path: root/cmds/installd/installd.cpp
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2016-03-01 11:46:45 -0800
committer Andreas Gampe <agampe@google.com> 2016-03-03 09:04:08 -0800
commite65b4faa798269ab6ee0d27dab03b8b5caa6f956 (patch)
tree05fdeb021bd41dc66533c4fb5059e4902c12571e /cmds/installd/installd.cpp
parent649449dbb777e58ea5f6f1af61f84022d088190c (diff)
Installd: Add move_ab command
Add a command to move A/B artifacts into the right position. This is used for apps that live in data. Bug: 25612095 Change-Id: I40c3ca54bd0f3b2d646a14b145e733096dabbbb2
Diffstat (limited to 'cmds/installd/installd.cpp')
-rw-r--r--cmds/installd/installd.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmds/installd/installd.cpp b/cmds/installd/installd.cpp
index 63290a9ba8..54d397075e 100644
--- a/cmds/installd/installd.cpp
+++ b/cmds/installd/installd.cpp
@@ -336,6 +336,11 @@ static int do_link_file(char **arg, char reply[REPLY_MAX] ATTRIBUTE_UNUSED)
return link_file(arg[0], arg[1], arg[2]);
}
+static int do_move_ab(char **arg, char reply[REPLY_MAX] ATTRIBUTE_UNUSED) {
+ // apk_path, instruction_set, oat_dir
+ return move_ab(arg[0], arg[1], arg[2]);
+}
+
struct cmdinfo {
const char *name;
unsigned numargs;
@@ -364,6 +369,7 @@ struct cmdinfo cmds[] = {
{ "createoatdir", 2, do_create_oat_dir },
{ "rmpackagedir", 1, do_rm_package_dir },
{ "linkfile", 3, do_link_file },
+ { "move_ab", 3, do_move_ab },
};
static int readx(int s, void *_buf, int count)