blob: 4bb1f923a71c9e4074cbc3d1603d67679628fe34 [file] [log] [blame]
Pierre-Hugues Husson5d5d68a2018-10-02 16:41:21 +02001From e3d4f144c3322ef7910c4f61dc8cbfc1f17c9455 Mon Sep 17 00:00:00 2001
Jon West013ef582018-08-21 20:45:26 -04002From: Pierre-Hugues Husson <phh@phh.me>
3Date: Tue, 14 Aug 2018 20:54:08 +0200
4Subject: [PATCH 3/5] Create vendor_de. This is done by /init.rc on
5 system-as-root device
6
7---
8 Ext4Crypt.cpp | 2 ++
9 1 file changed, 2 insertions(+)
10
11diff --git a/Ext4Crypt.cpp b/Ext4Crypt.cpp
12index 99a63b4..090532f 100644
13--- a/Ext4Crypt.cpp
14+++ b/Ext4Crypt.cpp
15@@ -667,6 +667,8 @@ bool e4crypt_prepare_user_storage(const std::string& volume_uuid, userid_t user_
16 auto vendor_de_path = android::vold::BuildDataVendorDePath(user_id);
17 auto user_de_path = android::vold::BuildDataUserDePath(volume_uuid, user_id);
18
19+ prepare_dir(android::vold::BuildDataPath("") + "/vendor_de", 0771, 0, 0);
20+
21 if (volume_uuid.empty()) {
22 if (!prepare_dir(system_legacy_path, 0700, AID_SYSTEM, AID_SYSTEM)) return false;
23 #if MANAGE_MISC_DIRS
24--
252.7.4
26