summaryrefslogtreecommitdiffstats
path: root/partition.cpp
diff options
context:
space:
mode:
authornailyk <nailyk_launchpad@nailyk.fr>2016-11-11 21:41:28 +0100
committerDees Troy <dees_troy@teamw.in>2017-01-18 17:02:56 +0100
commita083dc68c6789a68ec0c0ede3cf40358e49b026c (patch)
tree1f4b5875a108020f67c33edac4c0a1ee61015350 /partition.cpp
parentInclude symlink size (path length) in Get_Folder_Size() (diff)
downloadandroid_bootable_recovery-a083dc68c6789a68ec0c0ede3cf40358e49b026c.tar
android_bootable_recovery-a083dc68c6789a68ec0c0ede3cf40358e49b026c.tar.gz
android_bootable_recovery-a083dc68c6789a68ec0c0ede3cf40358e49b026c.tar.bz2
android_bootable_recovery-a083dc68c6789a68ec0c0ede3cf40358e49b026c.tar.lz
android_bootable_recovery-a083dc68c6789a68ec0c0ede3cf40358e49b026c.tar.xz
android_bootable_recovery-a083dc68c6789a68ec0c0ede3cf40358e49b026c.tar.zst
android_bootable_recovery-a083dc68c6789a68ec0c0ede3cf40358e49b026c.zip
Diffstat (limited to '')
-rw-r--r--partition.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/partition.cpp b/partition.cpp
index 5a53d619a..ae27fd0cc 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -2340,6 +2340,12 @@ bool TWPartition::Raw_Read_Write(PartitionSettings *part_settings) {
if (part_settings->progress)
part_settings->progress->UpdateDisplayDetails(true);
fsync(dest_fd);
+
+ if (!part_settings->adbbackup && part_settings->PM_Method == PM_BACKUP) {
+ tw_set_default_metadata(destfn.c_str());
+ LOGINFO("Restored default metadata for %s\n", destfn.c_str());
+ }
+
ret = true;
exit:
if (src_fd >= 0)