Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. dalvik-cache location defined in
  2.  
  3. ./dalvik/libdex/OptInvocation.c
  4.  
  5.  
  6. Cyanogen uses : -
  7.  
  8. /* Build the name of the cache directory.
  9. */
  10.  
  11. /* load paths from the system environment */
  12. cacheRoot = getenv("ANDROID_CACHE");
  13. dataRoot = getenv("ANDROID_DATA");
  14. systemRoot = getenv("ANDROID_ROOT");
  15.  
  16. /* make sure we didn't get any NULL values */
  17. if (cacheRoot == NULL)
  18. cacheRoot = "/cache";
  19.  
  20. if (dataRoot == NULL)
  21. dataRoot = "/data";
  22.  
  23. if (systemRoot == NULL)
  24. systemRoot = "/system";
  25.  
  26. if (dexRoot == NULL)
  27. dexRoot = "/data";
  28.  
  29. /* Cache anything stored on /system in cacheRoot, everything else in dataRoot */
  30. if (!strncmp(absoluteFile, systemRoot, strlen(systemRoot))) {
  31. property_get("dalvik.vm.dexopt-data-only", dexoptDataOnly, "");
  32. if (strcmp(dexoptDataOnly, "1") != 0) {
  33. dexRoot = cacheRoot;
  34.  
  35.  
  36.  
  37.  
  38. Xdandroid uses
  39.  
  40. /* Build the name of the cache directory.
  41. */
  42. dataRoot = getenv("ANDROID_DATA");
  43. if (dataRoot == NULL)
  44. dataRoot = "/data";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement