Add the compile reason for the forceDexOpt method.

Change-Id: I4f87b2e4d58ba288b454f4e15768ca84cf807c8c
Merged-In: Ic3cef72627985bb906e87b875c180a7dc32a295f
This commit is contained in:
heqiang1008 thundersoft
2022-04-21 12:57:32 +00:00
committed by Songchun Fan
parent 6e5f312d6f
commit 1a0eb16cbe

View File

@@ -13257,7 +13257,8 @@ public class PackageManagerService extends IPackageManager.Stub
// Don't use profiles since that may cause compilation to be skipped.
final int res = performDexOptInternalWithDependenciesLI(pkg, pkgSetting,
new DexoptOptions(packageName,
getDefaultCompilerFilter(),
REASON_CMDLINE,
getDefaultCompilerFilter(), null /* splitName */,
DexoptOptions.DEXOPT_FORCE | DexoptOptions.DEXOPT_BOOT_COMPLETE));
Trace.traceEnd(TRACE_TAG_PACKAGE_MANAGER);