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

Commit 3f4c7e3f authored by oleksii stepanian's avatar oleksii stepanian
Browse files

Send installerUid for verification when using PackageInstaller.

PackageManagerService when used by PackageInstaller
(installStage) does not send calling installer process id.
As a result Play Store application always triggers verification
of packages that are installed.
This causes unnecessary work on the UI thread for each new
install/update.

Bug: 22014920
Change-Id: I8cc9ba7b6fcbe26ee709a5dda284e6cdd11071f1
parent 9f49dcda
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9079,6 +9079,7 @@ public class PackageManagerService extends IPackageManager.Stub {
            String installerPackageName, int installerUid, UserHandle user) {
        final VerificationParams verifParams = new VerificationParams(null, params.originatingUri,
                params.referrerUri, installerUid, null);
        verifParams.setInstallerUid(installerUid);
        final OriginInfo origin;
        if (stagedDir != null) {