summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-27 02:05:28 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-27 02:05:28 +0200
commit2c50e18ca3a21d7531746fd4792c031422085661 (patch)
treeddbca21f480eea41d5da51594a6071e50b29e09d /partitionmanager.cpp
parentAdd option to wipe android secure (diff)
downloadandroid_bootable_recovery-2c50e18ca3a21d7531746fd4792c031422085661.tar
android_bootable_recovery-2c50e18ca3a21d7531746fd4792c031422085661.tar.gz
android_bootable_recovery-2c50e18ca3a21d7531746fd4792c031422085661.tar.bz2
android_bootable_recovery-2c50e18ca3a21d7531746fd4792c031422085661.tar.lz
android_bootable_recovery-2c50e18ca3a21d7531746fd4792c031422085661.tar.xz
android_bootable_recovery-2c50e18ca3a21d7531746fd4792c031422085661.tar.zst
android_bootable_recovery-2c50e18ca3a21d7531746fd4792c031422085661.zip
Diffstat (limited to '')
-rw-r--r--partitionmanager.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 98151b43c..b267b8b6f 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -1380,6 +1380,14 @@ void TWPartitionManager::Update_System_Details(void) {
DataManager::SetValue(TW_BACKUP_ANDSEC_VAR, 0);
} else
DataManager::SetValue(TW_HAS_ANDROID_SECURE, 1);
+ } else if ((*iter)->Mount_Point == "/boot") {
+ int backup_display_size = (int)((*iter)->Backup_Size / 1048576LLU);
+ DataManager::SetValue(TW_BACKUP_BOOT_SIZE, backup_display_size);
+ if ((*iter)->Backup_Size == 0) {
+ DataManager::SetValue("tw_has_boot_partition", 0);
+ DataManager::SetValue(TW_BACKUP_BOOT_VAR, 0);
+ } else
+ DataManager::SetValue("tw_has_boot_partition", 1);
}
#ifdef SP1_NAME
if ((*iter)->Backup_Name == EXPAND(SP1_NAME)) {
@@ -1623,4 +1631,4 @@ void TWPartitionManager::Mount_All_Storage(void) {
if ((*iter)->Is_Storage)
(*iter)->Mount(false);
}
-} \ No newline at end of file
+}