Jackeagle | 57acbdb | 2019-05-06 19:59:01 +0200 | [diff] [blame^] | 1 | From a6daf6e1568773868ae40be990908ccbb790e982 Mon Sep 17 00:00:00 2001 |
Jon West | 013ef58 | 2018-08-21 20:45:26 -0400 | [diff] [blame] | 2 | From: Pierre-Hugues Husson <phh@phh.me> |
| 3 | Date: Tue, 14 Aug 2018 20:54:08 +0200 |
Jackeagle | 57acbdb | 2019-05-06 19:59:01 +0200 | [diff] [blame^] | 4 | Subject: [PATCH 2/8] Create vendor_de. This is done by /init.rc on |
Jon West | 013ef58 | 2018-08-21 20:45:26 -0400 | [diff] [blame] | 5 | system-as-root device |
| 6 | |
| 7 | --- |
| 8 | Ext4Crypt.cpp | 2 ++ |
| 9 | 1 file changed, 2 insertions(+) |
| 10 | |
| 11 | diff --git a/Ext4Crypt.cpp b/Ext4Crypt.cpp |
Jackeagle | 1cba413 | 2018-12-19 17:08:24 +0100 | [diff] [blame] | 12 | index 3a7b5d4..263648b 100644 |
Jon West | 013ef58 | 2018-08-21 20:45:26 -0400 | [diff] [blame] | 13 | --- a/Ext4Crypt.cpp |
| 14 | +++ b/Ext4Crypt.cpp |
Jackeagle | 1cba413 | 2018-12-19 17:08:24 +0100 | [diff] [blame] | 15 | @@ -803,6 +803,8 @@ bool e4crypt_prepare_user_storage(const std::string& volume_uuid, userid_t user_ |
Jon West | 013ef58 | 2018-08-21 20:45:26 -0400 | [diff] [blame] | 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 | -- |
Jackeagle | 57acbdb | 2019-05-06 19:59:01 +0200 | [diff] [blame^] | 25 | 2.21.0 |
Jon West | 013ef58 | 2018-08-21 20:45:26 -0400 | [diff] [blame] | 26 | |