summaryrefslogtreecommitdiff
path: root/cmds/installd/installd.cpp
diff options
context:
space:
mode:
author Calin Juravle <calin@google.com> 2016-03-25 16:56:20 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-03-25 16:56:21 +0000
commitd1a6a2495ff82893728571136f4f080164c8dae5 (patch)
tree9c339340eb11f04ce0c093210c96417a8de4b435 /cmds/installd/installd.cpp
parent830f5004da53a83e23b4102ba9b72e4cb366cb34 (diff)
parentedae669f18eb99b9316891fdde627e2f385c3c64 (diff)
Merge "Do not clean profiles unconditonally during app data clean up" into nyc-dev
Diffstat (limited to 'cmds/installd/installd.cpp')
-rw-r--r--cmds/installd/installd.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/cmds/installd/installd.cpp b/cmds/installd/installd.cpp
index dc3418a6a3..de3f54ab6d 100644
--- a/cmds/installd/installd.cpp
+++ b/cmds/installd/installd.cpp
@@ -358,10 +358,16 @@ static int do_rm_package_dir(char **arg, char reply[REPLY_MAX] ATTRIBUTE_UNUSED)
return rm_package_dir(arg[0]);
}
-static int do_rm_profiles(char **arg, char reply[REPLY_MAX] ATTRIBUTE_UNUSED)
+static int do_clear_app_profiles(char **arg, char reply[REPLY_MAX] ATTRIBUTE_UNUSED)
{
/* package_name */
- return rm_profiles(arg[0]);
+ return clear_app_profiles(arg[0]);
+}
+
+static int do_destroy_app_profiles(char **arg, char reply[REPLY_MAX] ATTRIBUTE_UNUSED)
+{
+ /* package_name */
+ return destroy_app_profiles(arg[0]);
}
static int do_link_file(char **arg, char reply[REPLY_MAX] ATTRIBUTE_UNUSED)
@@ -402,7 +408,8 @@ struct cmdinfo cmds[] = {
{ "idmap", 3, do_idmap },
{ "createoatdir", 2, do_create_oat_dir },
{ "rmpackagedir", 1, do_rm_package_dir },
- { "rmprofiles", 1, do_rm_profiles },
+ { "clear_app_profiles", 1, do_clear_app_profiles },
+ { "destroy_app_profiles", 1, do_destroy_app_profiles },
{ "linkfile", 3, do_link_file },
{ "move_ab", 3, do_move_ab },
{ "merge_profiles", 2, do_merge_profiles },