Enumerating services

You may also want to know about the services that are installed on your device. drozer has a module called app.service.info that extracts some useful information about services.

How to do it...

Execute the following command from your drozer console:

dz> run app.service.info –-package [package name]

Running this command with no arguments lists all the services installed on the target device. It will look something like the following screenshot when run:

How to do it...

You can also use the following filters to narrow down your search:

  • Search based on permissions:
    dz> run app.service.info –p [permission label]
    dz> run app.service.info –-permission ...

Get Android Security Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.