summaryrefslogtreecommitdiff
path: root/cmds/installd/commands.c
diff options
context:
space:
mode:
author Dianne Hackborn <hackbod@google.com> 2013-05-02 22:11:17 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2013-05-02 22:11:17 +0000
commit4fc27d79c29646b08ff059abc19cc4a7bccaa316 (patch)
treeac29b5913a2695213578efce9f4d05a79f343a81 /cmds/installd/commands.c
parentc86393510c8747519fe34e5aa38ce5218593c19c (diff)
parent8b41780d73930b37b6254cc1dac5607c843839c0 (diff)
Merge "Fix issue #8768456: Settings > App Info under reports..." into jb-mr2-dev
Diffstat (limited to 'cmds/installd/commands.c')
-rw-r--r--cmds/installd/commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds/installd/commands.c b/cmds/installd/commands.c
index e544be722e..8e14a2c086 100644
--- a/cmds/installd/commands.c
+++ b/cmds/installd/commands.c
@@ -421,7 +421,7 @@ int rm_dex(const char *path)
}
int get_size(const char *pkgname, int persona, const char *apkpath,
- const char *fwdlock_apkpath, const char *asecpath,
+ const char *libdirpath, const char *fwdlock_apkpath, const char *asecpath,
int64_t *_codesize, int64_t *_datasize, int64_t *_cachesize,
int64_t* _asecsize)
{
@@ -460,8 +460,8 @@ int get_size(const char *pkgname, int persona, const char *apkpath,
}
/* add in size of any libraries */
- if (!create_pkg_path_in_dir(path, &android_app_lib_dir, pkgname, PKG_DIR_POSTFIX)) {
- d = opendir(path);
+ if (libdirpath != NULL && libdirpath[0] != '!') {
+ d = opendir(libdirpath);
if (d != NULL) {
dfd = dirfd(d);
codesize += calculate_dir_size(dfd);