1st theme: philosophical thoughts on Android 1. simple shape, rich connotation, and unlimited repetition 2. Android IOC 3. APK and API 2nd theme: Revealing the secrets of Android Application Framework 1. CS structure: General Manager structure in the application framework 2. One-to-one correspondence between managers and services 3. Cross-process communication and aidl 3rd theme: opening a new app in Android 1. What is the calling process when we touch an app icon on the launcher on the android screen? 2. Where is the execution entry of the application? 3. How did a new Android Application Process generate? 4th topics: Dalvik VM 1. Dalvik VM features, comparison between Dalvik Vm and JVM 2. What are the root causes and solutions for Memory Distribution and out of memory (out of Memory) Of Dalvik VM? 3. Where Are preload classes, preload resources, and classloader? 4. Dalvik and Java and C/C ++ 5th topics: add services written in Java to applciation framework 1. iinterface and CTS 2. Binder 3. aidl 4. Java service and Manager 5. systemserver, servicemanager 6th topics: event-driven mechanism during Android framework porting 1. How does Android Service cope with hardware blocking? 2. open up new sub-threads and keep poll 3. Register listener 4. Callback 5. Handler, message, logoff, messagequeue, 6. event-driven instance 7th topics: Manager, service, and complete data flow 1. Principles of separation of manager and service 2. ANR Problems 3. Blocking and non-blocking operations 4. Use an example to describe the data stream from the bottom layer to the top layer in Android 8th theme: overall analysis of AMS in activitymanagerservice 1. Main Function Analysis of activitymanagerservice 2. Analysis of AMS setsystemprocess 3. Analysis of the installsystemproviders function of AMS 4. Analysis of AMS systemready 9th theme: startactivity Analysis of activitymanagerservice 1. activitymanager 2. Analysis of startactivityandwait function of AMS 3. startactivitylocked profiling 10th theme: Analysis of broadcast and broadcastreceiver in activitymanagerservice 1. registerreceiver Process Analysis 2. sendbroadcast Process Analysis 3. broadcast_intent_msg Message Processing Function 4. Analysis of Application Process processing Broadcast 11th theme: startservice Analysis of activitymanagerservice 1. startservice code profiling 2. startservice Flowchart |