Exclude subdirectories when pruning the dex cache.

This requires a companion package manager change to prune
each instruction specific dex cache individually.

bug: 15677279

Change-Id: I5891981512bde20e49bff65b1842c28886f2b177
diff --git a/cmds/installd/installd.c b/cmds/installd/installd.c
index 4368a9e..45cc2b2 100644
--- a/cmds/installd/installd.c
+++ b/cmds/installd/installd.c
@@ -143,7 +143,7 @@
 static int do_prune_dex_cache(char **arg __attribute__((unused)),
                               char reply[REPLY_MAX] __attribute__((unused)))
 {
-    return prune_dex_cache();
+    return prune_dex_cache(arg[0] /* subdirectory name */);
 }
 
 struct cmdinfo {
@@ -172,7 +172,7 @@
     { "rmuser",               1, do_rm_user },
     { "idmap",                3, do_idmap },
     { "restorecondata",       3, do_restorecon_data },
-    { "prunedexcache",        0, do_prune_dex_cache },
+    { "prunedexcache",        1, do_prune_dex_cache },
 };
 
 static int readx(int s, void *_buf, int count)