Objective
Package management mechanism is an important mechanism in Android, which is one of the knowledge points that need to be mastered in application development and system development.
Package refers to the APK, jar and so files, and so on, they are loaded into Android memory, from a package into executable code, which requires a mechanism for package loading, parsing, management and other operations, which is the package management mechanism. The package management mechanism consists of many classes, the core of which is Packagemanagerservice (PMS), which is responsible for managing the package, and if it is difficult to understand the PMS directly, we need a pointcut, which is the common apk installation.
Before you start the APK installation, learn about the Packagemanager, APK file structure, and how to install it.
Android package Management mechanism (i) Initialization of Packageinstaller