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

Commit 7d3ea931 authored by Eugene Susla's avatar Eugene Susla
Browse files

Use getPackageUidAsUser in TextClassificationManagerService

Bug: 119921159
Test: verify old api behaved as described in b/119921159
Change-Id: I1400bb1a72aec109dcfc5e5d88f1d1be52960dff
parent 05fa5e1c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -402,7 +402,7 @@ public final class TextClassificationManagerService extends ITextClassifierServi
            throws RemoteException {
        try {
            final int uid = context.getPackageManager()
                    .getPackageUid(packageName, 0);
                    .getPackageUidAsUser(packageName, UserHandle.getCallingUserId());
            Preconditions.checkArgument(Binder.getCallingUid() == uid);
        } catch (IllegalArgumentException | NullPointerException |
                PackageManager.NameNotFoundException e) {