Book Image

Android Security Cookbook

Book Image

Android Security Cookbook

Overview of this book

Android Security Cookbook discusses many common vulnerabilities and security related shortcomings in Android applications and operating systems. The book breaks down and enumerates the processes used to exploit and remediate these vulnerabilities in the form of detailed recipes and walkthroughs. The book also teaches readers to use an Android Security Assessment Framework called Drozer and how to develop plugins to customize the framework. Other topics covered include how to reverse-engineer Android applications to find common vulnerabilities, and how to find common memory corruption vulnerabilities on ARM devices. In terms of application protection this book will show various hardening techniques to protect application components, the data stored, secure networking. In summary, Android Security Cookbook provides a practical analysis into many areas of Android application and operating system security and gives the reader the required skills to analyze the security of their Android devices.
Table of Contents (16 chapters)
Android Security Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Enumerating activities


drozer also offers a useful module for enumerating information about the activity components available on a target Android device. The following recipe demonstrates the use of this module.

How to do it...

You may at some point want to find out which activities are installed and exported on your device. The drozer framework makes this pretty easy, here's how to do it:

Fire off the following command from your drozer console:

dz> run app.activity.info

This command will list all the activities that are exported on your device.

There's more...

You may want to get a little more information about the activities on your device; for example, listing all applications that have a certain name or a certain string in their name, such as "browser" or "facebook", which applications have what permissions, or even search for unexported activities. Here's how to do that:

Search for activities based on name by executing the following command:

dz> run app.activity.info –-filter [activity...