diff options
| author | 2017-11-17 16:38:17 -0800 | |
|---|---|---|
| committer | 2017-11-17 16:38:17 -0800 | |
| commit | b3591f68c560f9fe71fd69ffdd9cabe1d320360e (patch) | |
| tree | 9abe8b70530fc224d9e10348b39e7dee87624865 | |
| parent | 7d3665f98ea4f35f0b04c7ea948ba51fdd6e8507 (diff) | |
Add extra logging for A/B dexopt
Log the packages for which we skip dex2oat because they are already
preopted.
Bug: 68949006
Test: make
Change-Id: Ia8983886bd130405dedeec79f7ad03aeab7090a6
| -rw-r--r-- | cmds/installd/otapreopt.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/installd/otapreopt.cpp b/cmds/installd/otapreopt.cpp index e0d23da34c..0c2d341a16 100644 --- a/cmds/installd/otapreopt.cpp +++ b/cmds/installd/otapreopt.cpp @@ -889,6 +889,7 @@ private: CHECK(EndsWith(path, "/")); path = path + "oat"; if (access(path.c_str(), F_OK) == 0) { + LOG(INFO) << "Skipping A/B OTA preopt of already preopted package " << apk_path; return true; } } @@ -900,7 +901,7 @@ private: // this tool will wipe the OTA artifact cache and try again (for robustness after // a failed OTA with remaining cache artifacts). if (access(apk_path, F_OK) != 0) { - LOG(WARNING) << "Skipping preopt of non-existing package " << apk_path; + LOG(WARNING) << "Skipping A/B OTA preopt of non-existing package " << apk_path; return true; } |