summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornkk71 <nkk71x@gmail.com>2017-06-04 22:12:16 +0200
committernkk71 <nkk71x@gmail.com>2017-06-04 22:15:05 +0200
commitffb02bdfc470f890af566d24765037b0e4c2a2b3 (patch)
tree30441bd8dd120635f8fda379832bd2abe349cbb8
parentadbbackup: write smaller reads less than 512 bytes (diff)
downloadandroid_bootable_recovery-ffb02bdfc470f890af566d24765037b0e4c2a2b3.tar
android_bootable_recovery-ffb02bdfc470f890af566d24765037b0e4c2a2b3.tar.gz
android_bootable_recovery-ffb02bdfc470f890af566d24765037b0e4c2a2b3.tar.bz2
android_bootable_recovery-ffb02bdfc470f890af566d24765037b0e4c2a2b3.tar.lz
android_bootable_recovery-ffb02bdfc470f890af566d24765037b0e4c2a2b3.tar.xz
android_bootable_recovery-ffb02bdfc470f890af566d24765037b0e4c2a2b3.tar.zst
android_bootable_recovery-ffb02bdfc470f890af566d24765037b0e4c2a2b3.zip
Diffstat (limited to '')
-rw-r--r--partitionmanager.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 0b9918d53..f53c2ae6e 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -1510,9 +1510,9 @@ void TWPartitionManager::Post_Decrypt(const string& Block_Device) {
DataManager::SetValue("tw_storage_path", "/data/media/0");
DataManager::SetValue("tw_settings_path", "/data/media/0");
dat->UnMount(false);
- Output_Partition(dat);
}
Update_System_Details();
+ Output_Partition(dat);
UnMount_Main_Partitions();
} else
LOGERR("Unable to locate data partition.\n");
@@ -2509,7 +2509,7 @@ void TWPartitionManager::Decrypt_Adopted() {
if (strcasecmp(GUID.c_str(), guid->value()) == 0) {
xml_attribute<>* attr = volume->first_attribute("nickname");
- if (attr) {
+ if (attr && attr->value() && strlen(attr->value()) > 0) {
(*adopt)->Storage_Name = attr->value();
(*adopt)->Display_Name = (*adopt)->Storage_Name;
(*adopt)->Backup_Display_Name = (*adopt)->Storage_Name;
@@ -2528,7 +2528,6 @@ void TWPartitionManager::Decrypt_Adopted() {
Dat->Mount(false);
(*adopt)->UnMount(false);
(*adopt)->Mount(false);
- Output_Partition((*adopt));
}
}
break;
@@ -2537,6 +2536,8 @@ void TWPartitionManager::Decrypt_Adopted() {
volume = volume->next_sibling("volume");
}
}
+ Update_System_Details();
+ Output_Partition((*adopt));
}
}
}