final ContentProviderClient client = context.getContentResolver()
.acquireContentProviderClient(ExternalStorageProvider.AUTHORITY);
try {
((ExternalStorageProvider) client.getLocalContentProvider()).updateVolumes();
} finally {
ContentProviderClient.releaseQuietly(client);
}