aboutsummaryrefslogtreecommitdiff
path: root/libdex/OptInvocation.cpp
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2013-10-22 10:08:55 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2013-10-23 00:55:46 +0000
commit3518b1a7dfc54c6db5078ac8f695dd9d6a60860d (patch)
tree24bcff18662cf08ae8b981a389751e1a53a0eff1 /libdex/OptInvocation.cpp
parenta2247a6d16f037544ee032e52ca2ea0fbaa514f0 (diff)
libdex: Skip the dexroot-on-cache stuff for user builds
Change-Id: I432b96ae3e25977ea17558b4a3f8ca90903cb5b5
Diffstat (limited to 'libdex/OptInvocation.cpp')
-rw-r--r--libdex/OptInvocation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdex/OptInvocation.cpp b/libdex/OptInvocation.cpp
index 5014f4795..77a72b34e 100644
--- a/libdex/OptInvocation.cpp
+++ b/libdex/OptInvocation.cpp
@@ -118,6 +118,7 @@ char* dexOptGenerateCacheFileName(const char* fileName, const char* subFileName)
if (dexRoot == NULL)
dexRoot = dataRoot;
+#ifdef ALLOW_DEXROOT_ON_CACHE
/* Cache anything stored on /system in cacheRoot, everything else in dataRoot */
if (!strncmp(absoluteFile, systemRoot, strlen(systemRoot))) {
property_get("dalvik.vm.dexopt-data-only", dexoptDataOnly, "");
@@ -125,6 +126,7 @@ char* dexOptGenerateCacheFileName(const char* fileName, const char* subFileName)
dexRoot = cacheRoot;
}
}
+#endif
snprintf(nameBuf, kBufLen, "%s/%s", dexRoot, kCacheDirectoryName);