summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorDaichi Hirono <hirono@google.com>2015-06-24 15:57:06 +0900
committerDaichi Hirono <hirono@google.com>2015-06-24 15:57:06 +0900
commita2ccb9e43db52a18d088c1d440676335cb4b9e68 (patch)
tree11ee15deaaae9a835781bd38928ef0d459687ba1 /cmds
parent0638a4fac7250e260c0102c770090cb7eefca936 (diff)
downloadframeworks_native-a2ccb9e43db52a18d088c1d440676335cb4b9e68.zip
frameworks_native-a2ccb9e43db52a18d088c1d440676335cb4b9e68.tar.gz
frameworks_native-a2ccb9e43db52a18d088c1d440676335cb4b9e68.tar.bz2
Fix directory path of codecache.
Previously installd removed the normal cache directory when delete_code_cache is called. It should delete the code cache directory. BUG=21206499 Change-Id: I5774430e389e22805fa7984b4c83420c3677ca75
Diffstat (limited to 'cmds')
-rw-r--r--cmds/installd/commands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/installd/commands.cpp b/cmds/installd/commands.cpp
index faf48ef..f2c76d5 100644
--- a/cmds/installd/commands.cpp
+++ b/cmds/installd/commands.cpp
@@ -344,7 +344,7 @@ int delete_cache(const char *uuid, const char *pkgname, userid_t userid)
int delete_code_cache(const char *uuid, const char *pkgname, userid_t userid)
{
std::string _codecachedir(
- create_data_user_package_path(uuid, userid, pkgname) + CACHE_DIR_POSTFIX);
+ create_data_user_package_path(uuid, userid, pkgname) + CODE_CACHE_DIR_POSTFIX);
const char* codecachedir = _codecachedir.c_str();
struct stat s;