As we all know, Android is an operating system based on Linux implementation. But to the Linux kernel, Android is just another application running on top of the kernel, no different than any other application running on top of the kernel.
Therefore, Android also needs a runtime environment, which requires the Linux kernel to load the resources required by the Android Framework after startup. The appropriate APK application can only be started after the Framework has been initialized.
Framework is so important, so how do we learn?
About how to learn the knowledge of Android Framework development, I recently had the honor to pick up the advanced development notes of Android Framework in the hands of the former Technical director of Ali. Part of the knowledge chapter was published on Zhihu and got 1000+ likes. Today, I will share it with you.
This note explains the main modules of the Framework, from the deployment of the environment to the application of technology, and then to the actual project, so that we can not only learn the use of the Framework technology, but also learn how to use the Framework to solve the actual problem, from simple to deep, detailed analysis of the Framework, so that you can simply and efficiently learn this knowledge!
Chapter 1: In-depth analysis of Binder
Binder mechanisms as a means of interprocess communication permeate almost all of the Andorid framework layer. The basic communication mechanism of Android Binder must be understood first. Binder mechanisms as a means of interprocess communication permeate almost all of the Andorid framework layer. The basic communication mechanism of Android Binder must be understood first.
Knowledge in this chapter
-
Binder series – Introduction
-
Binder Driver a preliminary
-
Binder Driver revisited
-
Binder start ServiceManager
-
Get ServiceManager
-
Registration Service (addService)
-
GetService (getService)
-
The Framework layer analysis
-
How to use Binder
-
How do I use AIDL
-
Binder to summarize
-
Binder interview questions
Chapter 2: Parsing Handler in depth
There are so many articles on the web analyzing the principles of the Handler mechanism, why do we need to add to this note? It is not that the articles written by the former people are not good, I just feel that they are not fine, some points are not clear, logic is difficult to flow smoothly, every time I learn something when this situation is sad.
This chapter first macro theoretical analysis and Message source code analysis, and then to MessageQueue source code analysis, Looper source code analysis, handler source code analysis, handler mechanism implementation principle summary. Finally, we also sorted out and handled all the interview questions.
Handler is a long, step-by-step chapter that I’m sure won’t disappoint you if you stick with it.
Chapter 3: Dalvik VM process system
Andorid system startup, init process, Zygote, SystemServer startup process, application creation and use, Activity creation, destruction Handler and Looper.
Chapter 4 analyzes WMS in depth
Window management frame system animation frame View working principle.
The fifth chapter PackagerManagerService
Package management services, resource management related classes.