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

Commit 323706ab authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[Archiving] fix app links restoration" into main

parents 194dab15 ee27adfc
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -573,6 +573,9 @@ final class InstallPackageHelper {
                    (scanFlags & SCAN_DONT_KILL_APP) != 0 /* retainImplicitGrantOnReplace */);
            mPm.addAllPackageProperties(pkg);

            // Only verify app links for non-archival installations, otherwise there won't be any
            // declared app links.
            if (!request.isArchived()) {
                if (oldPkgSetting == null || oldPkgSetting.getPkg() == null) {
                    mPm.mDomainVerificationManager.addPackage(pkgSetting,
                            request.getPreVerifiedDomains());
@@ -580,6 +583,7 @@ final class InstallPackageHelper {
                    mPm.mDomainVerificationManager.migrateState(oldPkgSetting, pkgSetting,
                            request.getPreVerifiedDomains());
                }
            }

            int collectionSize = ArrayUtils.size(pkg.getInstrumentations());
            StringBuilder r = null;