Enumerating content providers
Much like enumerating activities and packages, drozer also provides some modules for listing all of the content providers and some information on them. The following recipe talks about how to do this using the app.provider.info
module.
How to do it...
Let's get started enumerating content providers.
Execute the following command from your drozer terminal:
dz> run app.provider.info
This will return the following information about a content provider:
Authorities – the names of the classes implementing their SQLite frontends
Read permission
Write permission
Grant URI permissions
Paths
How it works...
Let's take a look at the code for the app.provider.info
module.
Note
The following code is available at https://github.com/mwrlabs/drozer/blob/766329cacde6dbf1ba05ca5dee36b882041f1b01/src/drozer/modules/app/provider.py.
def execute(self, arguments): if arguments.package == None: for package in self.packageManager().getPackages (common.PackageManager.GET_PROVIDERS...