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

Commit c9f6ad64 authored by lpeter's avatar lpeter
Browse files

Add trace to measure "addForInitLI" method in installPackagesFromDir

Bug: 259133666
Test: build pass and boot success
Change-Id: Ia46c4b3589b23db86350f815d91621446a019817
parent 97d0644e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3712,12 +3712,15 @@ final class InstallPackageHelper {

            if (throwable == null) {
                try {
                    Trace.traceBegin(TRACE_TAG_PACKAGE_MANAGER, "addForInitLI");
                    addForInitLI(parseResult.parsedPackage, parseFlags, scanFlags,
                            new UserHandle(UserHandle.USER_SYSTEM), apexInfo);
                } catch (PackageManagerException e) {
                    errorCode = e.error;
                    errorMsg = "Failed to scan " + parseResult.scanFile + ": " + e.getMessage();
                    Slog.w(TAG, errorMsg);
                } finally {
                    Trace.traceEnd(TRACE_TAG_PACKAGE_MANAGER);
                }
            } else if (throwable instanceof PackageManagerException) {
                PackageManagerException e = (PackageManagerException) throwable;