Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d36c282c authored by Martin Brabham's avatar Martin Brabham Committed by android-build-team Robot
Browse files

Revert "[DO NOT MERGE] btif: Lighter weight file existence check"

This reverts commit 92542d13.
(cherry picked from commit ad8a136116051ca0f43491ec7493baf985d7d7f1)

Change-Id: I737d11b75079a683241eeee5b5f84a49ee42358f
parent 93a4d81f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -604,8 +604,11 @@ static std::string hash_file(const char* filename) {

static std::string read_checksum_file(const char* checksum_filename) {
  // Ensure file exists
  if (access(checksum_filename, R_OK) != 0) {
  FILE* fp = fopen(checksum_filename, "rb");
  if (!fp) {
    return "";
  } else {
    fclose(fp);
  }
  std::string output = btifKeystore.Decrypt(checksum_filename);
  return output;