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

Commit ce4dccad authored by Songchun Fan's avatar Songchun Fan
Browse files

Add the compile reason for the forceDexOpt method

Cherry-picks aosp/2071188

BUG: 220991268
Test: builds
Change-Id: Ic0084c3233e0b05c38420e7679e1a61e4d0d15be
parent 714d59fa
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -432,8 +432,8 @@ final class DexOptHelper {
        // Whoever is calling forceDexOpt wants a compiled package.
        // Don't use profiles since that may cause compilation to be skipped.
        final int res = performDexOptInternalWithDependenciesLI(pkg, packageState,
                new DexoptOptions(packageName,
                        getDefaultCompilerFilter(),
                new DexoptOptions(packageName, REASON_CMDLINE,
                        getDefaultCompilerFilter(), null /* splitName */,
                        DexoptOptions.DEXOPT_FORCE | DexoptOptions.DEXOPT_BOOT_COMPLETE));

        Trace.traceEnd(TRACE_TAG_PACKAGE_MANAGER);