Writing a drozer module – a device enumeration module

This recipe explains how you can actually develop drozer modules by demonstrating the practical steps that make up drozer module development. The following device information enumerator grabs information about some of the hardware and the OS build.

How to do it...

Let's get started writing a drozer device enumeration module:

  1. Open a text editor and type in the following code:
    from drozer.modules import Module class Info(Module): name = "Get Device info" description = "A module that returns information about the device and hardware features" examples = "run ex.device.info" date = "10-11-13" author = "Keith Makan" license = "GNU GPL" path = ["ex","device"] def execute(self,arguments): build = self.new("android.os.Build") ...

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.