From cdd4228eebf1360ffc8fae5f0b1598835ac9d0e2 Mon Sep 17 00:00:00 2001 From: Kevin Chyn Date: Tue, 20 Nov 2018 19:09:15 +0000 Subject: [PATCH] Revert "Revert "Revert "Revert "vold now prepares a subdirectory for face data."""" Bug: 116528212 This reverts commit 8973e2d5d098f08b1a26110a4b67d3f8aea2c6ee. Reason for revert: Will submit after selinux issues are resolved Change-Id: Ie2df91b33be70629e8c08fdbcc6e7ad0faea13a9 --- vold_prepare_subdirs.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vold_prepare_subdirs.cpp b/vold_prepare_subdirs.cpp index 8c3df30..b8e5cb6 100644 --- a/vold_prepare_subdirs.cpp +++ b/vold_prepare_subdirs.cpp @@ -133,6 +133,10 @@ static bool prepare_subdirs(const std::string& volume_uuid, int user_id, int fla if (!prepare_dir(sehandle, 0700, AID_SYSTEM, AID_SYSTEM, vendor_de_path + "/fpdata")) { return false; } + auto facedata_path = vendor_de_path + "/facedata"; + if (!prepare_dir(sehandle, 0700, AID_SYSTEM, AID_SYSTEM, facedata_path)) { + return false; + } } if (flags & android::os::IVold::STORAGE_FLAG_CE) { auto misc_ce_path = android::vold::BuildDataMiscCePath(user_id);