summaryrefslogtreecommitdiffstats
path: root/partition.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'partition.cpp')
-rw-r--r--partition.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/partition.cpp b/partition.cpp
index df03336c4..354563466 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -2526,6 +2526,17 @@ int TWPartition::Decrypt_Adopted() {
cryptfs_revert_ext_volume(part_guid);
ret = 1;
} else {
+ UnMount(false);
+ Has_Android_Secure = false;
+ Symlink_Path = "";
+ Symlink_Mount_Point = "";
+ Backup_Name = Mount_Point.substr(1);
+ Backup_Path = Mount_Point;
+ TWPartition* sdext = PartitionManager.Find_Partition_By_Path("/sd-ext");
+ if (sdext && sdext->Actual_Block_Device == Adopted_Block_Device) {
+ LOGINFO("Removing /sd-ext from partition list due to adopted storage\n");
+ PartitionManager.Remove_Partition_By_Path("/sd-ext");
+ }
Setup_Data_Media();
Recreate_Media_Folder();
Wipe_Available_in_GUI = true;