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
Loading
Please register or sign in to comment