Get a list of available Content Providers
Solution 1:
It should be possible by calling PackageManager.getInstalledPackages() with GET_PROVIDERS
.
EDIT: example:
for (PackageInfo pack : getPackageManager().getInstalledPackages(PackageManager.GET_PROVIDERS)) {
ProviderInfo[] providers = pack.providers;
if (providers != null) {
for (ProviderInfo provider : providers) {
Log.d("Example", "provider: " + provider.authority);
}
}
}
Solution 2:
From the command line, run:
adb shell dumpsys | grep Provider{
Note the opening brace. This will give you a short list of all the providers installed through various packages.