Fix up issue during decryption
* Since some devices are unable to decrypt after processing of the fstab,
because of the partition details updation, and after intro of dynamic partitioning
here decryption process was going on after complete processing of the dynamic volumes.
* This patch fix these issue, it process the logical volumes at their time not after all processing fstabs.
This fixes the decryption issue.
Translate more partitions i.e., ODM, Product.
Added more partitions in unmount partitions.
Change-Id: I977c0cf0c40e5311f54a78c98f1fd89f71c6ac57
Signed-off-by: Mohd Faraz <androiabledroid@gmail.com>
diff --git a/partition.cpp b/partition.cpp
index a8a8e45..be01b15 100755
--- a/partition.cpp
+++ b/partition.cpp
@@ -462,6 +462,20 @@
Wipe_Available_in_GUI = true;
Can_Be_Backed_Up = true;
Mount_Read_Only = true;
+ } else if (Mount_Point == "/product") {
+ Display_Name = "Product";
+ Backup_Name = "Product";
+ Backup_Display_Name = Display_Name;
+ Storage_Name = Display_Name;
+ Can_Be_Backed_Up = Wipe_Available_in_GUI = Is_Super ? false : true;
+ Mount_Read_Only = true;
+ } else if (Mount_Point == "/odm") {
+ Display_Name = "ODM";
+ Backup_Name = "ODM";
+ Backup_Display_Name = Display_Name;
+ Storage_Name = Display_Name;
+ Can_Be_Backed_Up = Wipe_Available_in_GUI = Is_Super ? false : true;
+ Mount_Read_Only = true;
} else if (Mount_Point == "/data") {
Display_Name = "Data";
Backup_Display_Name = Display_Name;