summaryrefslogtreecommitdiff
path: root/libartservice
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2024-10-31 10:47:32 +0000
committer Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-10-31 15:17:13 +0000
commit5b8cb4477aa0cd80e668a18f245cd2e88b43b2f5 (patch)
tree2baf8c4e9223dc7e6ae90c903124ccdbb0a5e61b /libartservice
parent56950b0c1c2a2dafd59a5836c65fa56f68731174 (diff)
Update ART Service README.md
- Add a warning that ART Service does not perform dexopt operations on running apps. - Clarify that the background dexopt job is triggered daily. Change-Id: Ic4c4c9e3982291d80f3237b5aca6f4bbffa31351
Diffstat (limited to 'libartservice')
-rw-r--r--libartservice/service/README.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/libartservice/service/README.md b/libartservice/service/README.md
index 04cd83dbe8..b7363ee184 100644
--- a/libartservice/service/README.md
+++ b/libartservice/service/README.md
@@ -108,6 +108,9 @@ At a high level, ART Service dexopts apps in the following scenarios:
`inactive`)
- requested through commandline (Compilation reason: `cmdline`)
+Warning: The execution or scheduling of dexopt operations by ART Service is
+**not** triggered by an app's running or launch status.
+
Warning: The sections below describe the default behavior in each scenario. Note
that the list of apps to dexopt and the compiler filter, as well as other
options, can be customized by partners through system properties, APIs, etc.
@@ -176,9 +179,9 @@ Note: There is no secondary dex file present during installation.
### When the device is idle and charging
ART Service has a job called *background dexopt job* managed by Job Scheduler.
-It is triggered when the device is idle and charging. During the job execution,
-it dexopts primary dex files and secondary dex files of all apps with the
-"speed-profile" compiler filter.
+It is triggered daily when the device is idle and charging. During the job
+execution, it dexopts primary dex files and secondary dex files of all apps with
+the "speed-profile" compiler filter.
If `pm.dexopt.downgrade_after_inactive_days` is set, ART Service only dexopts
apps used within the last given number of days, and it downgrades other apps