Preface
The knowledge of Android Framework is widely used in various fields, and its importance is self-evident. In addition, the Framework, as the Android framework layer, provides many APIs for the App to call, but many mechanisms are packaged by the Framework for the App to use. If you do not know the principles of these mechanisms, it will be difficult to optimize the App on this basis. .
Therefore, to facilitate your learning, this time I will share with you a study note compiled by a Samsung project manager: "Getting Started Guide to Android Framework Source Code Development". From getting started to practical project implementation .
This note comprehensively summarizes Framework enterprise-level application solutions, including system startup process analysis, cross-process communication IPC, Handler source code, AMS analysis, WMS analysis, Surface source code, PKMS source code, etc., with more depth, breadth, and practicality ! We hope to provide a complete learning solution for Franework developers.
Long press and scan the QR code below to get it for free now
What makes this note unique
Depth : Compared with other Android Framework books, this notebook has more in-depth exploration and solutions to single-point problems. For example, the team has a deeper understanding and new solutions for cross-process and thread communication, which are major challenges in the industry.
Breadth : For front-line technical leaders and developers, most of the questions and challenges facing enterprise-level application scenarios can be answered in this book.
Practicality : This book has a solid practical foundation. We strive to convey the main ideas and key implementations in the practice process through cases and actual code, but at the same time we adhere to the principle that it is better to teach a person to fish than to teach him to fish.
Adhering to these three dimensions, this book is comprehensive, top-down and carefully designed to fill some gaps in the market. I hope that everyone can gain deeper professional understanding through reading and fully master the methods to solve various problems.
Who should read this book
Focus on front-line technical managers of Framework systems
A mobile developer who loves to study
Practitioners engaged in Framework system development
Teachers and students in related majors who are interested in Android Framework knowledge
Wonderful things to watch "freshly"
This note explains the core knowledge points of Android Framework from the shallower to the deeper, and also includes advanced and in-depth content. The whole book combines knowledge points, explains it with relevant cases and practices, and draws inferences about other cases through the guidance of ideas.
Chapter 1 System Startup Process Analysis
Section 1 Android Startup Overview
Section 2 init.rc analysis
Section 3 Zygote
Section 4 Interview Questions
Chapter 2 Cross-process Communication IPC Analysis
Chapter 1 Sercice can still be understood this way
Section 2 Binder Basics
Section 3 Binder Application
Section 4 AIDL Application (Part 1)
Section 5 AIDL Application (Part 2)
Section 6 Messenger Principles and Applications
Section 7 Server Callback
Section 8 Obtaining Services (IBinder)
Full analysis of Binder interview questions in Section 9
Chapter 3 Handler Analysis
Section 1 Source Code Analysis
Section 2 Difficult Questions
Section 3 Handler frequently asked interview questions
Chapter 4 AMS Analysis
Section 1 Introduction
Section 2 Android Architecture
Section 3 Communication Methods
Section 4 System Startup Series
Section 5 AMS
Section 6 AMS Interview Questions Analysis
Chapter 5 WMS Analysis
Section 1 WMS and activity startup process
Section 2 WMS Drawing Principle
Section 3 WMS roles and instantiation process
Section 4 Working Principle of WMS
…
Long press and scan the QR code below to get it for free now
Chapter 6 Surface Source Code Analysis
Creation process and software and hardware drawing
Double buffering and SurfaceView analysis
Android graphics system review
Chapter 7 SurfaceFlinger source code analysis based on Android12.0
Section 1 Application Establishes a Communication Bridge with SurfaceFlinger
Section 2 SurfaceFlinger startup and message queue processing mechanism
Section 3 SurfaceFlinger VSync (Part 1)
Section 4 SurfaceFlinger VSync (Part 2)
Section 5 VSync of SurfaceFlinger (Part 2)
Chapter 8 PKMS source code analysis
PKMS calling method
PKMS startup process analysis
Scanning of APK
APK installation
PKMS permission scanning
silent installation
requestPermissions source code process analysis
PKMS interview questions
Chapter 9 InputManagerService source code analysis
Android Input input event processing flow (1)
Android Input input event processing flow (2)
Android Input input event processing flow (3)
Chapter 10 DisplayManagerService source code analysis
DisplayManagerService starts
Creation of DisplayAdapter and DisplayDevice
DMS partial on-off screen process
Dimming
Proximity Sensor screen off principle
Updates to Logical Display and Physical Display configurations
At the same time, a WeChat group chat robot based on chatGPT has been built here to answer difficult technical questions for everyone 24 hours a day .
Scan the QR code on WeChat to invite you into the group to experience the style of ChatGPT
Get Framework source code notes and interview questions for free
PS : From September 25th to 26th, we specially invited teachers Avlin and Lance from Tencent Classroom to bring you a free live class called "Source Code is Practice, In-depth Analysis and Implementation of Design Ideas in Framework Communication System" to lead you in-depth Understand the Android Framework system communication system and the actual implementation plan of the project.