Do not check digest on mapped installs

Change-Id: I2d57eba354e4ec88f418208183f53c12e8548fcb
This commit is contained in:
Ethan Yonker
2019-04-09 15:29:51 -05:00
parent 1ecb6df370
commit 1da568fab4
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -353,9 +353,9 @@ int TWinstall_zip(const char* path, int* wipe_cache) {
gui_msg("check_for_digest=Checking for Digest file...");
if (!twrpDigestDriver::Check_File_Digest(Full_Filename)) {
LOGERR("Aborting zip install: Digest verification failed\n");
return INSTALL_CORRUPT;
if (*path != '@' && !twrpDigestDriver::Check_File_Digest(Full_Filename)) {
LOGERR("Aborting zip install: Digest verification failed\n");
return INSTALL_CORRUPT;
}
}
+1 -1
View File
@@ -70,7 +70,7 @@ bool twrpDigestDriver::Check_File_Digest(const string& Filename) {
if (!TWFunc::Path_Exists(digestfile)) {
delete digest;
if (Filename.find(".zip") == std::string::npos) {
if (Filename.find(".zip") == std::string::npos && Filename.find(".map") == std::string::npos) {
gui_msg(Msg(msg::kError, "no_digest_found=No digest file found for '{1}'. Please unselect Enable Digest verification to restore.")(Filename));
} else {
return true;