| From a6daf6e1568773868ae40be990908ccbb790e982 Mon Sep 17 00:00:00 2001 |
| From: Pierre-Hugues Husson <phh@phh.me> |
| Date: Tue, 14 Aug 2018 20:54:08 +0200 |
| Subject: [PATCH 2/8] Create vendor_de. This is done by /init.rc on |
| system-as-root device |
| |
| --- |
| Ext4Crypt.cpp | 2 ++ |
| 1 file changed, 2 insertions(+) |
| |
| diff --git a/Ext4Crypt.cpp b/Ext4Crypt.cpp |
| index 3a7b5d4..263648b 100644 |
| --- a/Ext4Crypt.cpp |
| +++ b/Ext4Crypt.cpp |
| @@ -803,6 +803,8 @@ bool e4crypt_prepare_user_storage(const std::string& volume_uuid, userid_t user_ |
| auto vendor_de_path = android::vold::BuildDataVendorDePath(user_id); |
| auto user_de_path = android::vold::BuildDataUserDePath(volume_uuid, user_id); |
| |
| + prepare_dir(android::vold::BuildDataPath("") + "/vendor_de", 0771, 0, 0); |
| + |
| if (volume_uuid.empty()) { |
| if (!prepare_dir(system_legacy_path, 0700, AID_SYSTEM, AID_SYSTEM)) return false; |
| #if MANAGE_MISC_DIRS |
| -- |
| 2.21.0 |
| |