diff options
| author | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2013-07-26 18:40:21 +0100 |
|---|---|---|
| committer | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2013-07-26 18:46:02 +0100 |
| commit | 59e79c413311dc6796683dc34ce00e5842e7f3cc (patch) | |
| tree | ff1143fe3d7d2838ed59754e9f9f1d0bf60bfded /libdex/OptInvocation.cpp | |
| parent | 692e1ca87effa2be064094572900f13d15d4f48a (diff) | |
Disable /cache/dalvik-cache (temporarily?)
When writing to /cache, processes are inheriting their own ownership
permissions instead of the system/metagroup abstraction used in /data,
which makes writing to this dalvik-cache fail.
Go back to using only /data until this is identified and fixed
Change-Id: I9ae19321f158ac86a9c5dd4d2db1268eec278c11
Diffstat (limited to 'libdex/OptInvocation.cpp')
| -rw-r--r-- | libdex/OptInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdex/OptInvocation.cpp b/libdex/OptInvocation.cpp index 5014f4795..7524abbd6 100644 --- a/libdex/OptInvocation.cpp +++ b/libdex/OptInvocation.cpp @@ -119,12 +119,14 @@ char* dexOptGenerateCacheFileName(const char* fileName, const char* subFileName) dexRoot = dataRoot; /* Cache anything stored on /system in cacheRoot, everything else in dataRoot */ +#if 0 if (!strncmp(absoluteFile, systemRoot, strlen(systemRoot))) { property_get("dalvik.vm.dexopt-data-only", dexoptDataOnly, ""); if (strcmp(dexoptDataOnly, "1") != 0) { dexRoot = cacheRoot; } } +#endif snprintf(nameBuf, kBufLen, "%s/%s", dexRoot, kCacheDirectoryName); |
