patches: Update for Bliss 11.2 Stable
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
Change-Id: I6f7c6beee6581a349627f4f449f99f5c894e37e7
diff --git a/patches/system/vold/0001-Create-vendor_de.-This-is-done-by-init.rc-on-system-.patch b/patches/system/vold/0001-Create-vendor_de.-This-is-done-by-init.rc-on-system-.patch
new file mode 100644
index 0000000..289c53f
--- /dev/null
+++ b/patches/system/vold/0001-Create-vendor_de.-This-is-done-by-init.rc-on-system-.patch
@@ -0,0 +1,26 @@
+From 40ca9a2fc137e0c185e3aaedeababb65f1d6cd4e 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 1/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
+