Loading services/core/java/com/android/server/am/ActiveServices.java +5 −0 Original line number Diff line number Diff line Loading @@ -3420,6 +3420,11 @@ public final class ActiveServices { throw new SecurityException("BIND_EXTERNAL_SERVICE failed, " + className + " is not an isolatedProcess"); } if (!mAm.getPackageManagerInternal().isSameApp(callingPackage, callingUid, userId)) { throw new SecurityException("BIND_EXTERNAL_SERVICE failed, " + "calling package not owned by calling UID "); } // Run the service under the calling package's application. ApplicationInfo aInfo = AppGlobals.getPackageManager().getApplicationInfo( callingPackage, ActivityManagerService.STOCK_PM_FLAGS, userId); Loading Loading
services/core/java/com/android/server/am/ActiveServices.java +5 −0 Original line number Diff line number Diff line Loading @@ -3420,6 +3420,11 @@ public final class ActiveServices { throw new SecurityException("BIND_EXTERNAL_SERVICE failed, " + className + " is not an isolatedProcess"); } if (!mAm.getPackageManagerInternal().isSameApp(callingPackage, callingUid, userId)) { throw new SecurityException("BIND_EXTERNAL_SERVICE failed, " + "calling package not owned by calling UID "); } // Run the service under the calling package's application. ApplicationInfo aInfo = AppGlobals.getPackageManager().getApplicationInfo( callingPackage, ActivityManagerService.STOCK_PM_FLAGS, userId); Loading