diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2016-02-16 19:30:26 +0100 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2016-02-18 18:38:33 +0100 |
commit | fcf3f24856c599c922880c64b01b7610603f958c (patch) | |
tree | 82aba551f80da8bdd87f3e39359a1a8dff007186 /partition.cpp | |
parent | patternpassword: update large grid password scheme (diff) | |
download | android_bootable_recovery-fcf3f24856c599c922880c64b01b7610603f958c.tar android_bootable_recovery-fcf3f24856c599c922880c64b01b7610603f958c.tar.gz android_bootable_recovery-fcf3f24856c599c922880c64b01b7610603f958c.tar.bz2 android_bootable_recovery-fcf3f24856c599c922880c64b01b7610603f958c.tar.lz android_bootable_recovery-fcf3f24856c599c922880c64b01b7610603f958c.tar.xz android_bootable_recovery-fcf3f24856c599c922880c64b01b7610603f958c.tar.zst android_bootable_recovery-fcf3f24856c599c922880c64b01b7610603f958c.zip |
Diffstat (limited to 'partition.cpp')
-rw-r--r-- | partition.cpp | 11 |
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; |