Loading services/core/java/com/android/server/am/ActiveServices.java +10 −0 Original line number Diff line number Diff line Loading @@ -2460,6 +2460,16 @@ public final class ActiveServices { && mAm.isValidSingletonCall(callingUid, sInfo.applicationInfo.uid)) { userId = 0; smap = getServiceMapLocked(0); ResolveInfo rInfoForUserId0 = mAm.getPackageManagerInternalLocked().resolveService(service, resolvedType, flags, userId, callingUid); if (rInfoForUserId0 == null) { Slog.w(TAG_SERVICE, "Unable to resolve service " + service + " U=" + userId + ": not found"); return null; } sInfo = rInfoForUserId0.serviceInfo; } sInfo = new ServiceInfo(sInfo); sInfo.applicationInfo = mAm.getAppInfoForUser(sInfo.applicationInfo, userId); Loading Loading
services/core/java/com/android/server/am/ActiveServices.java +10 −0 Original line number Diff line number Diff line Loading @@ -2460,6 +2460,16 @@ public final class ActiveServices { && mAm.isValidSingletonCall(callingUid, sInfo.applicationInfo.uid)) { userId = 0; smap = getServiceMapLocked(0); ResolveInfo rInfoForUserId0 = mAm.getPackageManagerInternalLocked().resolveService(service, resolvedType, flags, userId, callingUid); if (rInfoForUserId0 == null) { Slog.w(TAG_SERVICE, "Unable to resolve service " + service + " U=" + userId + ": not found"); return null; } sInfo = rInfoForUserId0.serviceInfo; } sInfo = new ServiceInfo(sInfo); sInfo.applicationInfo = mAm.getAppInfoForUser(sInfo.applicationInfo, userId); Loading