Removed redundant method ContentResolver.releasePersistableUriPermission()
Bug: 72055774 Test: manual verification Test: atest CtsAppSecurityHostTestCases:ScopedDirectoryAccessTest#testResetGranted Change-Id: Iab6dde04b0dc43f97e1a66f665cf5f6f3e078381
This commit is contained in:
@@ -2142,21 +2142,6 @@ public abstract class ContentResolver {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
public void releasePersistableUriPermission(@NonNull String toPackage, @NonNull Uri uri,
|
||||
@Intent.AccessUriMode int modeFlags) {
|
||||
Preconditions.checkNotNull(toPackage, "toPackage");
|
||||
Preconditions.checkNotNull(uri, "uri");
|
||||
try {
|
||||
ActivityManager.getService().releasePersistableUriPermission(
|
||||
ContentProvider.getUriWithoutUserId(uri), modeFlags, toPackage,
|
||||
resolveUserId(uri));
|
||||
} catch (RemoteException e) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return list of all URI permission grants that have been persisted by the
|
||||
* calling app. That is, the returned permissions have been granted
|
||||
|
||||
Reference in New Issue
Block a user