From bd7492de28963b7e74e8e5d3f17ec9a5a287d9c3 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 7 Dec 2016 13:55:01 -0600 Subject: Support File Based Encryption Change-Id: Ib688ddd0c32d3999590cacd86b6d9b18eac336e9 --- partitions.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'partitions.hpp') diff --git a/partitions.hpp b/partitions.hpp index a6af5b1a4..450e8815b 100644 --- a/partitions.hpp +++ b/partitions.hpp @@ -166,6 +166,7 @@ private: bool Is_Sparse_Image(const string& Filename); // Determines if a file is in sparse image format bool Flash_Sparse_Image(const string& Filename); // Flashes a sparse image using simg2img bool Flash_Image_FI(const string& Filename, ProgressTracking *progress); // Flashes an image to the partition using flash_image for mtd nand + void ExcludeAll(const string& path); // Adds an exclusion for path to both the backup and wipe exclusion lists private: bool Can_Be_Mounted; // Indicates that the partition can be mounted @@ -194,6 +195,7 @@ private: bool Can_Be_Encrypted; // This partition might be encrypted, affects error handling, can only be true if crypto support is compiled in bool Is_Encrypted; // This partition is thought to be encrypted -- it wouldn't mount for some reason, only avialble with crypto support bool Is_Decrypted; // This partition has successfully been decrypted + bool Is_FBE; // File Based Encryption is present bool Mount_To_Decrypt; // Mount this partition during decrypt (/vendor, /firmware, etc in case we need proprietary libs or firmware files) string Display_Name; // Display name for the GUI string Backup_Name; // Backup name -- used for backup filenames @@ -304,6 +306,7 @@ private: bool Add_Remove_MTP_Storage(TWPartition* Part, int message_type); // Adds or removes an MTP Storage partition TWPartition* Find_Next_Storage(string Path, bool Exclude_Data_Media); int Open_Lun_File(string Partition_Path, string Lun_File); + void Post_Decrypt(const string& Block_Device); // Completes various post-decrypt tasks pid_t mtppid; bool mtp_was_enabled; int mtp_write_fd; -- cgit v1.2.3