ABSTRACT

This book presents the Android plug-in technology used in Android development. This technology is widely used by a majority of Chinese internet companies, and is becoming more widely used worldwide. The book fully describes the history of Android plug-in technology, the installation and startup process, and new features of the Android plug-in technology. It also explores plug-in solutions for peripheral technologies. The book is designed to help Android app developers better understand the underlying technology of the Android system.

Features

  • Introduces Android system knowledge, including the communication between AMS and four components
  • Describes the Hook technique by Proxy.newProxyInstance and reflection, to modify Android system behavior, for example, to launch an activity not declared in the AndroidManifest.
  • Shows how to use the Hook apk packaging process in Gradle
  • Covers how to merge the resources in the plugin app and the host app, and how to merge dex of the host app and all the plugin apps
  • Presents the SO technique and how to launch SO files dynamically

chapter

Introduction

chapter Chapter 1|12 pages

Plug-Ins from the Past to the Future

chapter Chapter 2|65 pages

The Underlying Knowledge of Android

chapter Chapter 3|26 pages

Reflection

chapter Chapter 4|10 pages

Proxy Pattern

chapter Chapter 5|29 pages

Hooking startActivity()

chapter Chapter 6|14 pages

The Basic Concepts of Plug-In Techniques

chapter Chapter 7|21 pages

Resources in Plug-In

chapter Chapter 8|67 pages

The Plug-In Solution of Four Components

chapter Chapter 9|57 pages

A Plug-In Solution Based on Static-Proxy

chapter Chapter 10|98 pages

Related Plug-In Techniques

chapter Chapter 11|6 pages

Summary of Plug-In Technology