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

Commit 699cbd98 authored by Keun young Park's avatar Keun young Park
Browse files

Use caller's user id for recent caller info

- retrieveServiceLocked used target service's user id and brought
  permission failure for persistent single-user services.

Bug: 185483916
Test: boot up car products and check no bind failure
Change-Id: I9b6ff17201f0cd93e2bb3ad219a5d71db34c98a6
parent ac6f5ee9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3039,7 +3039,7 @@ public final class ActiveServices {
            try {
                r.mRecentCallerApplicationInfo =
                        mAm.mContext.getPackageManager().getApplicationInfoAsUser(callingPackage,
                                0, userId);
                                0, UserHandle.getUserId(callingUid));
            } catch (PackageManager.NameNotFoundException e) {
            }
            if (!mAm.validateAssociationAllowedLocked(callingPackage, callingUid, r.packageName,