summaryrefslogtreecommitdiffstats
path: root/twrp-functions.cpp
diff options
context:
space:
mode:
authorVojtech Bocek <vbocek@gmail.com>2013-09-17 17:05:10 +0200
committerVojtech Bocek <vbocek@gmail.com>2013-09-17 17:06:09 +0200
commita2e7016ee1381bfab4d6090879eb0d85f1de7af3 (patch)
treeab600d9a90f498b868ae5e6c167181c0e79a202f /twrp-functions.cpp
parent2.6.3.0 (diff)
downloadandroid_bootable_recovery-a2e7016ee1381bfab4d6090879eb0d85f1de7af3.tar
android_bootable_recovery-a2e7016ee1381bfab4d6090879eb0d85f1de7af3.tar.gz
android_bootable_recovery-a2e7016ee1381bfab4d6090879eb0d85f1de7af3.tar.bz2
android_bootable_recovery-a2e7016ee1381bfab4d6090879eb0d85f1de7af3.tar.lz
android_bootable_recovery-a2e7016ee1381bfab4d6090879eb0d85f1de7af3.tar.xz
android_bootable_recovery-a2e7016ee1381bfab4d6090879eb0d85f1de7af3.tar.zst
android_bootable_recovery-a2e7016ee1381bfab4d6090879eb0d85f1de7af3.zip
Diffstat (limited to '')
-rw-r--r--twrp-functions.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index e468655a6..50df2ed9b 100644
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -987,7 +987,7 @@ void TWFunc::Auto_Generate_Backup_Name() {
}
if (TWFunc::read_file("/system/build.prop", buildprop) != 0) {
LOGINFO("Unable to open /system/build.prop for getting backup name.\n");
- DataManager::SetValue(TW_BACKUP_NAME, "");
+ DataManager::SetValue(TW_BACKUP_NAME, Get_Current_Date());
if (!mount_state)
PartitionManager.UnMount_By_Path("/system", false);
return;
@@ -1011,6 +1011,7 @@ void TWFunc::Auto_Generate_Backup_Name() {
}
if (propvalue.empty()) {
LOGINFO("ro.build.display.id not found in build.prop\n");
+ DataManager::SetValue(TW_BACKUP_NAME, Get_Current_Date());
}
if (!mount_state)
PartitionManager.UnMount_By_Path("/system", false);