Merge "Fix checking for file_contexts in updater" into twrp2.7
diff --git a/res/images/dummyfile2 b/res/images/dummyfile2
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/res/images/dummyfile2
diff --git a/res/images/erasing_text.png b/res/images/erasing_text.png
deleted file mode 100644
index 441768a..0000000
--- a/res/images/erasing_text.png
+++ /dev/null
Binary files differ
diff --git a/res/images/error_text.png b/res/images/error_text.png
deleted file mode 100644
index 4ac6391..0000000
--- a/res/images/error_text.png
+++ /dev/null
Binary files differ
diff --git a/res/images/installing_text.png b/res/images/installing_text.png
deleted file mode 100644
index e1ac819..0000000
--- a/res/images/installing_text.png
+++ /dev/null
Binary files differ
diff --git a/res/images/no_command_text.png b/res/images/no_command_text.png
deleted file mode 100644
index a688f09..0000000
--- a/res/images/no_command_text.png
+++ /dev/null
Binary files differ
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index e468655..50df2ed 100644
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -987,7 +987,7 @@
 	}
 	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 @@
 	}
 	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);