Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5e038b00 authored by Jiakai Zhang's avatar Jiakai Zhang
Browse files

Allow users to specify a compiler filter when installing through adb.

This change adds an adb install flag '--dexopt-compiler-filter FILTER'.
If specified, it overrides the default compiler filter for dexopt
during installation.

Also, this change makes the package manager call dexopt even if the
compiler filter is "skip".

Bug: 323082746
Test: atest CtsCompilationTestCases
Test: "adb install" a non-debuggable app: Dexopt is performed with
  the "speed-profile" filter.
Test: "adb install" a debuggable app: Dexopt is skipped.
Test: "adb install" a debuggable app with "--dexopt-compiler-filter
  verify": Dexopt is performed with the "verify" filter.
Test: "adb install" an app with "--dexopt-compiler-filter bogus": Dexopt
  fails. The installation succeeds with a warning about the dexopt
  failure.
Change-Id: I0385f40ebe3cc77cf998c880889576623683388a
parent d30e9888
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment