From f39614449d6431ab5d6892d96342600f8faca8f6 Mon Sep 17 00:00:00 2001 From: Jin Qian Date: Thu, 19 Oct 2017 14:44:37 -0700 Subject: [PATCH] Create subdirectories in misc_ce/misc_de for storaged Test: Boot device, check directories created Bug: 63740245 Change-Id: Ie3f593e2cceb99ea7e86614d6b0d7b34f8c7034c --- vold_prepare_subdirs.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vold_prepare_subdirs.cpp b/vold_prepare_subdirs.cpp index 6dba5b3..02bedde 100644 --- a/vold_prepare_subdirs.cpp +++ b/vold_prepare_subdirs.cpp @@ -124,10 +124,12 @@ static bool prepare_subdirs(const std::string& volume_uuid, int user_id, int fla if (flags & android::os::IVold::STORAGE_FLAG_DE) { auto misc_de_path = android::vold::BuildDataMiscDePath(user_id); if (!prepare_dir(sehandle, 0700, 0, 0, misc_de_path + "/vold")) return false; + if (!prepare_dir(sehandle, 0700, 0, 0, misc_de_path + "/storaged")) return false; } if (flags & android::os::IVold::STORAGE_FLAG_CE) { auto misc_ce_path = android::vold::BuildDataMiscCePath(user_id); if (!prepare_dir(sehandle, 0700, 0, 0, misc_ce_path + "/vold")) return false; + if (!prepare_dir(sehandle, 0700, 0, 0, misc_ce_path + "/storaged")) return false; } } return true;