summaryrefslogtreecommitdiff
path: root/cmds/installd/installd.cpp
diff options
context:
space:
mode:
author Todd Kennedy <toddke@google.com> 2015-12-07 15:33:03 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2015-12-07 15:33:03 +0000
commit32717f851ec39e44b43dcd2053b091daff5e1753 (patch)
tree315761c09a686038167eeb83febca92f864445f3 /cmds/installd/installd.cpp
parentd348e0add54ea2dd585f910bf4ebb63021a54d5f (diff)
parent5c1a910e6a2d2c42002dc6ed88ff770336afcb3f (diff)
Merge "Create new ephemeral app directory"
Diffstat (limited to 'cmds/installd/installd.cpp')
-rw-r--r--cmds/installd/installd.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/cmds/installd/installd.cpp b/cmds/installd/installd.cpp
index 8dfab6b969..a7202b63db 100644
--- a/cmds/installd/installd.cpp
+++ b/cmds/installd/installd.cpp
@@ -346,6 +346,11 @@ int initialize_globals() {
return -1;
}
+ // Get the android ephemeral app directory.
+ if (copy_and_append(&android_app_ephemeral_dir, &android_data_dir, EPHEMERAL_APP_SUBDIR) < 0) {
+ return -1;
+ }
+
// Get the android app native library directory.
if (copy_and_append(&android_app_lib_dir, &android_data_dir, APP_LIB_SUBDIR) < 0) {
return -1;
@@ -367,7 +372,7 @@ int initialize_globals() {
}
// Take note of the system and vendor directories.
- android_system_dirs.count = 4;
+ android_system_dirs.count = 5;
android_system_dirs.dirs = (dir_rec_t*) calloc(android_system_dirs.count, sizeof(dir_rec_t));
if (android_system_dirs.dirs == NULL) {
@@ -393,6 +398,9 @@ int initialize_globals() {
android_system_dirs.dirs[3].path = strdup("/oem/app/");
android_system_dirs.dirs[3].len = strlen(android_system_dirs.dirs[3].path);
+ android_system_dirs.dirs[4].path = build_string2(android_root_dir.path, EPHEMERAL_APP_SUBDIR);
+ android_system_dirs.dirs[4].len = strlen(android_system_dirs.dirs[4].path);
+
return 0;
}