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

Commit 7b3ffa72 authored by Songchun Fan's avatar Songchun Fan Committed by Android Build Coastguard Worker
Browse files

Revert "[ADI][23/N] allow verifier to see all session infos"

FLAG: EXEMPT just revert
BUG: 422535876
Test: n/a just revert

This reverts commit f4790709.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8f502a3aa8206a523af59408069059384bc845c3)
Merged-In: I3ab858b73e27ee22f157bf1dfac7bbc6c46c7f66
Change-Id: I3ab858b73e27ee22f157bf1dfac7bbc6c46c7f66
parent 4f87be55
Loading
Loading
Loading
Loading
+0 −7
Original line number Original line Diff line number Diff line
@@ -1392,13 +1392,6 @@ public class PackageInstallerService extends IPackageInstaller.Stub implements
        if (info == null) {
        if (info == null) {
            return false;
            return false;
        }
        }
        if (Flags.verificationService() && mVerifierController.getVerifierPackageName() != null) {
            // Developer verifier can always access session infos
            if (snapshot.getPackageUid(mVerifierController.getVerifierPackageName(), /* flags= */ 0,
                    UserHandle.getUserId(uid)) == uid) {
                return false;
            }
        }
        return uid != info.getInstallerUid()
        return uid != info.getInstallerUid()
                && !snapshot.canQueryPackage(uid, info.getAppPackageName());
                && !snapshot.canQueryPackage(uid, info.getAppPackageName());
    }
    }