summaryrefslogtreecommitdiff
path: root/odrefresh/include
AgeCommit message (Collapse)Author
2021-12-02Respect ART_APEX_DATA for default artifact dir Victor Hsieh
This change does not change the default artifact directory. It just makes odrefresh not define the default directory by itself, but relies on GetArtApexData from libartbase instead (which has the same default). Bug: 206468124 Test: Run odrefresh in the VM. No longer seeing files in the hard-coded directory. Test: atest art_standalone_odrefresh_tests Test: atest art_standalone_libartbase_tests Change-Id: I45bcc145dbccb3b953f359f6c10fa186f251600c
2021-10-15Allow odrefresh to write elsewhere than dalvik-cache Alan Stokes
For CompOS we want to be able to generate artifacts in different subdirectories, e.g. /data/misc/apexdata/com.android.art/pending rather than /data/misc/apexdata/com.android.art/dalvik-cache. Add a command line flag to enable this. Bug: 200020887 Test: atest art_standalone_libartbase_tests Test: manual: odrefresh --dalvik-cache=foo --force-compile Change-Id: Id10c9bcc8cb9f810c48727abc1858f5b16b360d2
2021-04-28odrefresh: Add support for uploading stats Orion Hodson
Adds support for loading odrefresh metrics saved to file and uploading them when system_server starts. Bug: 169925964 Test: manual module update with instrumentation showing statsd got data (cherry picked from commit 55ca8ab5216e4c20638f34b44c6bc53866b991ce) Merged-In: Iccc6ede1583235d09dbfd42996eb4ba118b700f8 Change-Id: Iad588f05622864b37d40333d081bd89fbf76051c
2021-03-23odrefresh: make --compile single pass Orion Hodson
Enable single pass use of odrefresh. Using --compile now checks artifacts (performing any necessary cleaning) and compiles them. Bug: 160683548 Test: manual Change-Id: I6293a2d0709e11e475bf20e1b7971e7fbf14b779
2021-03-19odrefresh: failure handling improvements Orion Hodson
Add ExitCode::kCleanupFailed to report issues when removing files and directories. Add WARN_UNUSED to important methods to ensure their return values are checked. Remove LOG(FATAL) use in target code paths. Remove TEMP_FAILURE_RETRY for calls that are not interruptable according to their man page documentation (fchmod, unlink). Bug: 160683548 Test: manual Change-Id: I9681c83d048f4dd7988e9ff7ec1caf25ed02fbec
2021-02-25odrefresh: regenerate artifacts after ART APEX update Orion Hodson
Replaces compile_bcp.sh to check and compile boot class path extensions and system server jars. Enable ART to load those artifacts when present in the ART APEX data directory. Bug: 160683548 Test: art_libartbase_tests Test: adb root && adb odrefresh {--force-check,--force-compile} Test: adb install com.android.art && adb reboot && adb root && \ adb shell odrefresh {--check,--compile} && adb reboot && \ adb shell cat /proc/<zygote>/maps | grep apexdata Change-Id: I81bf520d38f9dc0109c91f192bc6e728099049fd