Revert "Revert "keymaster restore: warn when pin, password or pattern is enabled""

This reverts commit 59a8bd388e.
This commit is contained in:
Konsta
2022-01-12 16:55:18 +02:00
parent 59a8bd388e
commit 88d598c8c3
6 changed files with 436 additions and 1 deletions
+3
View File
@@ -1269,6 +1269,9 @@ int TWPartitionManager::Run_Restore(const string& Restore_Name) {
UnMount_Main_Partitions();
time(&rStop);
gui_msg(Msg(msg::kHighlight, "restore_completed=[RESTORE COMPLETED IN {1} SECONDS]")((int)difftime(rStop,rStart)));
TWPartition* Decrypt_Data = Find_Partition_By_Path("/data");
if (Decrypt_Data && Decrypt_Data->Is_Encrypted)
gui_msg(Msg(msg::kWarning, "reboot_after_restore=It is recommended to reboot Android once after first boot."));
DataManager::SetValue("tw_file_progress", "");
return true;