summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Calin Juravle <calin@google.com> 2021-02-02 01:46:03 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2021-02-02 01:46:03 +0000
commitee6edd1102f12c389d5436c92ccc1549b3a54984 (patch)
treecdfc57d7d5f4169c45795b50031429e143bb9e94
parent444ea081f9b2db2148e3e504f25074686058b8b0 (diff)
parent1fe4c9f19e4355c0410d46abf339b4addb2b55c3 (diff)
Merge "Remove unused update_out_oat_access_times." am: 1fe4c9f19e
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1557663 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I167dabc60ae5ee995f322daf3ea508eaa890112b
-rw-r--r--cmds/installd/dexopt.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/cmds/installd/dexopt.cpp b/cmds/installd/dexopt.cpp
index 65fc46ecaf..4dfd1d03ea 100644
--- a/cmds/installd/dexopt.cpp
+++ b/cmds/installd/dexopt.cpp
@@ -1130,23 +1130,6 @@ bool maybe_open_oat_and_vdex_file(const std::string& apk_path,
return true;
}
-// Updates the access times of out_oat_path based on those from apk_path.
-void update_out_oat_access_times(const char* apk_path, const char* out_oat_path) {
- struct stat input_stat;
- memset(&input_stat, 0, sizeof(input_stat));
- if (stat(apk_path, &input_stat) != 0) {
- PLOG(ERROR) << "Could not stat " << apk_path << " during dexopt";
- return;
- }
-
- struct utimbuf ut;
- ut.actime = input_stat.st_atime;
- ut.modtime = input_stat.st_mtime;
- if (utime(out_oat_path, &ut) != 0) {
- PLOG(WARNING) << "Could not update access times for " << apk_path << " during dexopt";
- }
-}
-
// Runs (execv) dexoptanalyzer on the given arguments.
// The analyzer will check if the dex_file needs to be (re)compiled to match the compiler_filter.
// If this is for a profile guided compilation, profile_was_updated will tell whether or not
@@ -1843,8 +1826,6 @@ int dexopt(const char* dex_path, uid_t uid, const char* pkgname, const char* ins
}
}
- update_out_oat_access_times(dex_path, out_oat.path().c_str());
-
// We've been successful, don't delete output.
out_oat.DisableCleanup();
out_vdex.DisableCleanup();