aboutsummaryrefslogtreecommitdiff
path: root/libdex/OptInvocation.cpp
diff options
context:
space:
mode:
authorRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-12-18 22:15:13 +0000
committerWhitehawkx <xxwhitehawk@gmail.com>2013-12-19 21:53:49 -0800
commit2127a29c138a16bcb858d3efca9f706d12613cd8 (patch)
treeef9b547e367980d8628d10d0f144c981ddad008f /libdex/OptInvocation.cpp
parent37d6510cbc5295df2b15c7f42ffc2bf11361665f (diff)
libdex: Invert the default for dexopt-on-cache
The growth of /system apps and total /data space are making this device-breaking (insufficient space to dexopt everything to /cache), pointless (/data has more than enough room to hold the cache), and in some cases, both. The default behavior is now the same as mainline Android's: dexopt everything to /data. Set dalvik.vm.dexopt-data-only=0 to change that and dexopt /system apps to /cache. If you do that, make sure your /cache can accomodate double the size of the dex classes in system, since in some extreme cases that has been observed during dex2oat Change-Id: Ia99655731c882e54bdc85293c467288fb4dc65df
Diffstat (limited to 'libdex/OptInvocation.cpp')
-rw-r--r--libdex/OptInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdex/OptInvocation.cpp b/libdex/OptInvocation.cpp
index ad69a9efa..32f8a3fd6 100644
--- a/libdex/OptInvocation.cpp
+++ b/libdex/OptInvocation.cpp
@@ -127,7 +127,7 @@ char* dexOptGenerateCacheFileName(const char* fileName, const char* subFileName)
#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, "");
+ property_get("dalvik.vm.dexopt-data-only", dexoptDataOnly, "1");
if (strcmp(dexoptDataOnly, "1") != 0) {
dexRoot = cacheRoot;
}