Chapter 7

Modifying the Behavior of Android Applications without Source Code

This chapter builds on Chapter 6. We begin by discussing potential use cases for recompiling/modifying the behavior of applications. We show how to analyze and debug Android application binaries. We cover the .dex file format and show how to decompile and recompile Android applications without having access to source code, thus changing the application’s behavior. We demonstrate how an attacker can change an application’s behavior by decompiling the application, changing the smali code, and recompiling it.

7.1 Introduction

The techniques covered in this chapter are not generally used by a typical user or developer. A person using the techniques covered here is probably ...

Get Android Security 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.