diff options
| author | 2023-08-02 17:54:27 +0100 | |
|---|---|---|
| committer | 2023-08-02 20:59:55 +0100 | |
| commit | 877d087af7ad0a435b27d36068bd0d0162a91f45 (patch) | |
| tree | f94f167946ff1a11d26e19afce2d6c85efe958aa | |
| parent | 2aea00b81119465788a0526bd07ebf389ea7a25f (diff) | |
Remove 1s sleep between each package in the A/B OTA postinstall dexopt process.
This sleep makes OTA dexopt runs take significantly longer, but even so
it's not sufficient to avoid jank (cf. b/237017087).
If this process takes too much resources then it can be tuned through
the `OtaProfiles` task profile, `dalvik.vm.background-dex2oat-cpu-set`
and/or `dalvik.vm.background-dex2oat-threads`. It's also possible to
cut down the work done before the OTA reboot with `MAXIMUM_PACKAGES`.
Test: Manual OTA update
Bug: 199756868
Bug: 237017087
Change-Id: Id2b460a99da19d42238d3aa0165c1792fe303398
| -rw-r--r-- | cmds/installd/otapreopt_script.sh | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/cmds/installd/otapreopt_script.sh b/cmds/installd/otapreopt_script.sh index db5c34edc2..e483d54a2a 100644 --- a/cmds/installd/otapreopt_script.sh +++ b/cmds/installd/otapreopt_script.sh @@ -72,7 +72,6 @@ while ((i<MAXIMUM_PACKAGES)) ; do PROGRESS=$(cmd otadexopt progress) print -u${STATUS_FD} "global_progress $PROGRESS" - sleep 1 i=$((i+1)) done |