summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2013-01-07 19:06:44 +0100
committerGerrit Code Review <gerrit@5.9.244.119>2013-01-07 19:06:44 +0100
commit558132c8ffc4328ab36b7d010be04687a5d86402 (patch)
tree79595a43a7f4219ffceca358e89f80fabf02afb3 /partitionmanager.cpp
parentMerge "Reset partition flags when the partition is wiped" into jb-wip (diff)
parentImprove handling of undecrypted encrypted /data (diff)
downloadandroid_bootable_recovery-558132c8ffc4328ab36b7d010be04687a5d86402.tar
android_bootable_recovery-558132c8ffc4328ab36b7d010be04687a5d86402.tar.gz
android_bootable_recovery-558132c8ffc4328ab36b7d010be04687a5d86402.tar.bz2
android_bootable_recovery-558132c8ffc4328ab36b7d010be04687a5d86402.tar.lz
android_bootable_recovery-558132c8ffc4328ab36b7d010be04687a5d86402.tar.xz
android_bootable_recovery-558132c8ffc4328ab36b7d010be04687a5d86402.tar.zst
android_bootable_recovery-558132c8ffc4328ab36b7d010be04687a5d86402.zip
Diffstat (limited to 'partitionmanager.cpp')
-rw-r--r--partitionmanager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 536e86780..95f010093 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -1483,6 +1483,8 @@ void TWPartitionManager::Update_System_Details(void) {
DataManager::SetValue(TW_BACKUP_RECOVERY_VAR, 0);
} else
DataManager::SetValue(TW_HAS_RECOVERY_PARTITION, 1);
+ } else if ((*iter)->Mount_Point == "/data") {
+ data_size += (int)((*iter)->Backup_Size / 1048576LLU);
}
#ifdef SP1_NAME
if ((*iter)->Backup_Name == EXPAND(SP1_NAME)) {
@@ -1581,6 +1583,7 @@ int TWPartitionManager::Decrypt_Device(string Password) {
DataManager::SetValue(TW_IS_DECRYPTED, 1);
dat->Is_Decrypted = true;
dat->Decrypted_Block_Device = crypto_blkdev;
+ dat->Setup_File_System(false);
ui_print("Data successfully decrypted, new block device: '%s'\n", crypto_blkdev);
// Sleep for a bit so that the device will be ready
sleep(1);