preface

Before the beginning of learning Android, sometimes want to study the source code, research some underlying principles of Android, can only go to the book, or to consult other companies, a question sometimes card for several days.

Knowing the four components, views, and web requests was all it took to get a lucrative offer. Back then, it was easy to get into a big factory if you were familiar with Java basics, how to handle OOM, component lifecycle principles, and Android source code and architecture.

Now, that’s all you know. Get out there, okay?

Interviews are becoming more demanding for Android developers! Especially ali, toutiao, Tencent and other large factories, many of the interview questions are principles.

How to learn the Android Framework

Approaching September, and to the peak of the interview job, recently there are a lot of net friends are seeking big factory interview questions. As it happens, I have this arrangement in the computer before, so I sent it to share with you.

These are the questions netizens were asked when they went to baidu, Xiaomi, LeEco, Meituan, 58, Cheetah, 360, Sina, Sohu and other first-tier Internet companies to interview. Familiarity with the points listed in this article will greatly increase your chances of passing the first two rounds of technical interviews. I hope I can help you and wish you a smooth job search

This note focuses on the main modules of the Framework:

In-depth analysis of Binder

Binder, as an IPC mechanism provided by Android system, should be familiar with both system development and application development, which is the most important component of Android system and the most difficult knowledge point to understand. The best way to learn more about Binder mechanisms is to Read The Source Code, to paraphrase Linus Torvalds, The father of Linux: Read The Fucking Source Code.

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

Second, in-depth parsing Handler message mechanism

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.

Dalvik VM process system

  • Andorid system starts
  • The Init process
  • Zygote
  • SystemServer Startup process
  • Service startup phase

Fourth, in-depth analysis of WMS

  • Summary of WMS

Window management frame system animation frame View working principle

  • The birth of the WMS

5. Start PackageMS

  • Packagems-related framework classes
  • PackageMS Startup process

Due to the length, this handwritten note has been organized into a PDF document. If you need a complete document of notes for AndroidFramework development, you can click the link below to get it for free. I hope you can be happy and successfully get your desired offer!

Finally remind: all the above sorted PDF, are free to share, friends in need,[Click here]Into the group! Contact the administrator for free! Join our circle to receive information, and learn to communicate with us! ~