Skip to content

Commit 664969b

Browse files
muhomorrthestinger
authored andcommitted
gmscompat: add stub for ContentResolver.acquireUnstableProvider()
1 parent ae333ed commit 664969b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/java/android/content/ContentResolver.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2573,7 +2573,11 @@ public final IContentProvider acquireUnstableProvider(Uri uri) {
25732573
if (auth != null) {
25742574
GmsDynamiteClientHooks.maybeInit(auth);
25752575

2576-
return acquireUnstableProvider(mContext, uri.getAuthority());
2576+
try {
2577+
return acquireUnstableProvider(mContext, uri.getAuthority());
2578+
} catch (SecurityException e) {
2579+
GmsCompat.catchOrRethrow(e);
2580+
}
25772581
}
25782582
return null;
25792583
}

0 commit comments

Comments
 (0)