| From 2cd6ffdbaf28cd0742842a88a26a4a63cfcee3b9 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/4] 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 99a63b4..090532f 100644 |
| --- a/Ext4Crypt.cpp |
| +++ b/Ext4Crypt.cpp |
| @@ -667,6 +667,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.17.1 |
| |