summaryrefslogtreecommitdiffstats
path: root/cmds/installd/installd.c
diff options
context:
space:
mode:
authorDave Allison <dallison@google.com>2014-01-30 14:19:23 -0800
committerDave Allison <dallison@google.com>2014-03-07 12:35:52 -0800
commitd93707342a61e66bc3eb2145628158452f577f42 (patch)
tree5dc8a2798f16730810f8c8cc5b002742871d80bf /cmds/installd/installd.c
parent3c39e03c08094ce65608cae8a45dd726cf10b5c3 (diff)
downloadframeworks_native-d93707342a61e66bc3eb2145628158452f577f42.zip
frameworks_native-d93707342a61e66bc3eb2145628158452f577f42.tar.gz
frameworks_native-d93707342a61e66bc3eb2145628158452f577f42.tar.bz2
ART profiler
Add args to the installd commands for profiler usage. Make installd create the profile files and allow apps to write to them. The profile files are in /data/dalvik-cache/profiles. This central location is needed due to permissions issues with dex2oat reading from an app's data directory. The solution is to put the profile file in a directory owned by the install user and make the file writeable by the shared group id of for the app. The app can read and write to these files only in the profiles directory. The 'system' user also needs to be able to read the files in order to determine the amount of change to the file over time. Bug: 12877748 Change-Id: I9b8e59e3bd7df8a1bf60fa7ffd376a24ba0eb42f Conflicts: cmds/installd/commands.c
Diffstat (limited to 'cmds/installd/installd.c')
-rw-r--r--cmds/installd/installd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds/installd/installd.c b/cmds/installd/installd.c
index 549aaab..b4df3a3 100644
--- a/cmds/installd/installd.c
+++ b/cmds/installd/installd.c
@@ -38,8 +38,8 @@ static int do_install(char **arg, char reply[REPLY_MAX])
static int do_dexopt(char **arg, char reply[REPLY_MAX])
{
- /* apk_path, uid, is_public */
- return dexopt(arg[0], atoi(arg[1]), atoi(arg[2]));
+ /* apk_path, uid, is_public, pkgname */
+ return dexopt(arg[0], atoi(arg[1]), atoi(arg[2]), arg[3]);
}
static int do_move_dex(char **arg, char reply[REPLY_MAX])
@@ -138,7 +138,7 @@ struct cmdinfo {
struct cmdinfo cmds[] = {
{ "ping", 0, do_ping },
{ "install", 4, do_install },
- { "dexopt", 3, do_dexopt },
+ { "dexopt", 4, do_dexopt },
{ "movedex", 2, do_move_dex },
{ "rmdex", 1, do_rm_dex },
{ "remove", 2, do_remove },