Merge "Fix failures for Webview tests in sandbox"

This commit is contained in:
Shiwangi Shah
2022-12-17 05:04:27 +00:00
committed by Android (Google) Code Review

View File

@@ -3872,8 +3872,8 @@ public final class ActiveServices {
throw new SecurityException("BIND_EXTERNAL_SERVICE failed, "
+ className + " is not an isolatedProcess");
}
if (AppGlobals.getPackageManager().getPackageUid(callingPackage,
0, userId) != callingUid) {
if (!mAm.getPackageManagerInternal().isSameApp(callingPackage, callingUid,
userId)) {
throw new SecurityException("BIND_EXTERNAL_SERVICE failed, "
+ "calling package not owned by calling UID ");
}