Loading services/core/java/com/android/server/am/ActivityManagerService.java +19 −6 Original line number Diff line number Diff line Loading @@ -12048,14 +12048,17 @@ public class ActivityManagerService extends IActivityManager.Stub if (providerRunning) { cpi = cpr.info; String msg; checkTime(startTime, "getContentProviderImpl: before checkContentProviderPermission"); if (r != null && cpr.canRunHere(r)) { checkTime(startTime, "getContentProviderImpl: before checkContentProviderPermission"); if ((msg = checkContentProviderPermissionLocked(cpi, r, userId, checkCrossUser)) != null) { throw new SecurityException(msg); } checkTime(startTime, "getContentProviderImpl: after checkContentProviderPermission"); checkTime(startTime, "getContentProviderImpl: after checkContentProviderPermission"); if (r != null && cpr.canRunHere(r)) { // This provider has been published or is in the process // of being published... but it is also allowed to run // in the caller's process, so don't make a connection Loading @@ -12066,6 +12069,7 @@ public class ActivityManagerService extends IActivityManager.Stub holder.provider = null; return holder; } // Don't expose providers between normal apps and instant apps try { if (AppGlobals.getPackageManager() Loading @@ -12075,6 +12079,15 @@ public class ActivityManagerService extends IActivityManager.Stub } catch (RemoteException e) { } checkTime(startTime, "getContentProviderImpl: before checkContentProviderPermission"); if ((msg = checkContentProviderPermissionLocked(cpi, r, userId, checkCrossUser)) != null) { throw new SecurityException(msg); } checkTime(startTime, "getContentProviderImpl: after checkContentProviderPermission"); final long origId = Binder.clearCallingIdentity(); checkTime(startTime, "getContentProviderImpl: incProviderCountLocked"); Loading
services/core/java/com/android/server/am/ActivityManagerService.java +19 −6 Original line number Diff line number Diff line Loading @@ -12048,14 +12048,17 @@ public class ActivityManagerService extends IActivityManager.Stub if (providerRunning) { cpi = cpr.info; String msg; checkTime(startTime, "getContentProviderImpl: before checkContentProviderPermission"); if (r != null && cpr.canRunHere(r)) { checkTime(startTime, "getContentProviderImpl: before checkContentProviderPermission"); if ((msg = checkContentProviderPermissionLocked(cpi, r, userId, checkCrossUser)) != null) { throw new SecurityException(msg); } checkTime(startTime, "getContentProviderImpl: after checkContentProviderPermission"); checkTime(startTime, "getContentProviderImpl: after checkContentProviderPermission"); if (r != null && cpr.canRunHere(r)) { // This provider has been published or is in the process // of being published... but it is also allowed to run // in the caller's process, so don't make a connection Loading @@ -12066,6 +12069,7 @@ public class ActivityManagerService extends IActivityManager.Stub holder.provider = null; return holder; } // Don't expose providers between normal apps and instant apps try { if (AppGlobals.getPackageManager() Loading @@ -12075,6 +12079,15 @@ public class ActivityManagerService extends IActivityManager.Stub } catch (RemoteException e) { } checkTime(startTime, "getContentProviderImpl: before checkContentProviderPermission"); if ((msg = checkContentProviderPermissionLocked(cpi, r, userId, checkCrossUser)) != null) { throw new SecurityException(msg); } checkTime(startTime, "getContentProviderImpl: after checkContentProviderPermission"); final long origId = Binder.clearCallingIdentity(); checkTime(startTime, "getContentProviderImpl: incProviderCountLocked");