Design and Implementation of Android: Volume I

Source: Internet
Author: User

Design and Implementation of Android: Volume I

Author: Yang yunjun Press: Machinery Industry Press ISBN: 9787111417132 mounting Date: April 2013 publication date: 16 open pages: 1 version: 1-1 category: computer> Software and program design> mobile development> more about Android, design and implementation of Android, volume I, computer books, Android design and implementation: volume I is a must-read step for Android Application Development engineers and Android system engineers. It is written by senior Android kernel experts and systematically, thoroughly and thoroughly analyzes the design ideas and implementation principles of the framework of the Android system from the perspective of source code, it provides theoretical guidance for Android Application engineers and System Engineers to solve various problems in their work. In order to reduce the reader's reading cost, the design and implementation of Android: Volume I uses a large number of simple UML class diagrams and sequence diagrams to display the calling process of class hierarchies and methods, this allows readers to quickly read the design and implementation of Android: Volume I and understand its essence! The "android Design and Implementation" series mainly focuses on the four-layer structure of the Android system, and analyzes the design ideas and implementation principles of each layer through the source code, volume I is mainly for the framework layer. There are 12 chapters in the book, which are divided into six parts: BASICS (1st ~ Chapter 2) describes in detail the architecture of Android, the establishment of the source code reading and debugging environment, and the basis of the entire framework ~ Chapter 4) deeply analyzes the mechanism and implementation principles of the android startup process to help readers fully understand the operating basis of system services at the framework layer ~ Chapter 6) focuses on the mechanisms and implementation of the binder in the native framework layer and the Java framework layer, allowing readers to have a deep understanding of the Communication Model Between processes; and the message communication chapter (chapter 7th) it focuses on analyzing the message-driven and asynchronous processing mechanisms of Android, allowing readers to deeply understand the communication model between threads. Package Manager (8th ~ Chapter 9) describes the mechanism and implementation of the Package Manager and the installation method and process of the APK ~ Chapter 12) elaborated on the activitymanagerservice operating mechanism, application and process startup process, and process management mechanism. Android Design and Implementation: Volume I is suitable for middle and senior Android Application Development engineers, Android system development engineers, and Android system architects, and engineers responsible for debugging and optimization of the Android system. Design and Implementation of Android: volume I preface part I basics Chapter 1 Android architecture and source code reading environment construction/1st Android development process/21.1 Android architecture/31.2.1 static architecture/31.2.2 Dynamic Architecture structure/71.3 download and compile the android source code/71.3.1 build the development environment/81.3.2 download the android upper-layer system source code/91.3.3 download the source code of the specified module/101.3.4 download the android Linux kernel source code/111.3.5 compile the android upper-layer system source code /111.3.6 compile the source code of the specified module/121.4 Android source code structure/141.5 Android source code development tool configuration and use/151.5.1 configure Android SDK/151.5.2 use eclipse to develop and debug the source code/161.5.3 use source insight to read source code/19.1.6 ndk Development Environment configuration/201.7 Chapter Summary/21 Chapter 2nd Framework basics JNI/222.1 JNI location in Android/222.2 JNI framework layer instance analysis/232.2.1 log system Java layer Analysis/242.2.2 log system JNI Layer/242.2.3 log system JNI method registration/252.3 JNI Manager: jnienv/272.4 call JNI Implementation Method in Java/292.4.1 convert Java data types and JNI data types/292.4.2 JNI method naming rules/302.4.3 JNI method signature rules/312.5 JNI operation Java object/322.5.1 access Java object/322.5.2 operation member variable (domain) and methods/332.5.3 global reference, weak global reference and local reference/342.6 JNI Exception Handling/362.7 JNI Application Layer instance analysis/382.7.1 Java layer analysis/382.7.2 JNI Layer Code and Exception Handling/392.8 this chapter summary/42 Part 2 boot Chapter 2 underlying implementation of the android startup process/3rd normal Android startup process/443.1 kernel startup process/443.2.1 kernel boot phase/453.2.2 kernel startup phase/443.2 init process Execution Process/493.4 init. RC file parsing process/533.4.1 Android initialization language/533.4.2 init. RC content/563.4.3 parse configuration file/573.4.4 parse service/603.4.5 parse action/633.5 trigger and start action and service/653.5.1 trigger action/653.5.2 execute action/663.5.3 start service/703.5.4 init pair attribute Service Processing/713.6 init loop listening handling events/753.7 summary of this chapter/77 Chapter 4th upper Implementation of the android startup process/784.1 configuration of the first Dalvik Virtual Machine zygote/794.1.1 zygote/794.1.2 execute zygote Service Program/804.2 zygoteinit startup process/mongo.2.1 create Dalvik Virtual Machine/834.2.2 register JNI method/854.2.3 open Java World/884.3 zygoteinit start five parts of Java World/894.3.1 register zygote socket/894.3.2 pre-load class and resource resources/894.3.3 start the system_server process/924.3.4 execute the run method of methodandargscaller/984.3.5 execute the runselectloopmode method/1024.4 zygote process the home startup request/1044.5 Summary/112 part 3 binder Chapter 1 Binder implementation at the native framework layer/5th binder and C/S architecture Overview/1145.1 servicemanager process initiation/1155.2.1 binder communication environment initialization/container 5.2.2 registration Context the Administrator/1185.2.3 waits for receiving and processing the IPC Communication Request/1205.3 server startup and service registration process/1285.3.1 creates the processstate object/1295.3.2 obtains the proxy object of servicemanager/1315.3.3 registers the service/1395.3.4 server process enable the thread pool/1455.4 Client client to use the service proxy object/1465.5 Service proxy to communicate with the service/1495.6 Summary/152 chapter 6th Implementation of binder at the Java framework layer/1536.1 creation of Java System Services process/1536.1.1 create javabbinderholder object/1556.1.2 javabbinder function/1566.1.3 gbinderoffsets structure parsing/1566.2 Java System Service Registration process/1596.2.1 call binderinternal. getcontextobject method/1606.2.2 call servicemanagernative. asinterface method/1656.2.3 call servicemanagerproxy. addservice method Register Service/1676.3 client side get Service Proxy/1696.3.1 get service binderproxy/1706.3.2 construct service proxy object/1726.3.3 construct service manager object/1736.4client side call Java System Service method/ 1746.5 Unified Communication Interface aidl/1776.5.1aidl instance/1776.5.2aidl syntax/1806.5.3 process transmission of Custom Data Types/1816.6 summary of this chapter/182 fourth part message communication Chapter 2 thread message communication and asynchronous Processing /1847.1 what is a logoff thread/1847.2 Step 1: logoff thread preparation stage/1857.2.1 create Java layer logoff object/1867.2.2 create Java layer messagequeue-Object/1867.2.3 create native layer nativemessage queue and logoff object/callback associate to messagequeue/1897.3 second step: create and initialize a message processor and send a message/7.3.1handler/7.3.2message/1137.3.3 send a message/Step 3: logoff thread loop stage/1987.4.1 record and obtain the identity information of the current thread/1987.4.2 listen for messages cyclically/1997.4.3 send messages to the processor/2057.4.4 recycle messages and update the message pool/2097.5 asynctask/2107.5.1asynctask implementation of/2117.5.2asynctask execution/2147.6 summary of this chapter/223 fifth part package manager Chapter 2 mechanism and implementation of Package Manager/8th Package Manager architecture/2278.1.1 L3 architecture/2278.1.2 Layer 3 the relationship/Startup Process of container/2318.2.1 create and initialize the settings object/2328.2.2 obtain the default system configuration/2368.2.3 start packagehandler/2378.2.4 create the data directory and initialize usermanager/2398.2.5 to parse the system permission and feature information /2428.2.6 parse packages file/quota optimization determination/2478.2.8 start fileobserver to monitor APK file directory/2508.2.9 call scandirli method to scan and install APK package/2528.2.10 update packages file/2538.3 packagemanagerservice used during startup core Components/commands in installer/2558.3.2installd on the 2548.3.1java Layer/2578.4 summary of this chapter/260 chapter APK installation process/9th install APK/2619.1.1 create packageparser/2629.1.2 to parse androidmanifest. XML file/2639.1.3 filter packageparser. package-type PKG object/2709.1.4 parse and install PKG/2749.2 use the ADB command to install the application/2829.2.1 use the message mechanism to install the specified APK/2839.2.2 call the handlestartcopy Method for installation/2869.2.3 call handlereturncode method Processing returned results/2909.3 summary in this chapter/293 Part 6 activity manager Chapter 2 mechanism and implementation of activity Manager/10th overview of activity Manager/29610.1 main work of activitymanagerservice in the system startup phase/29610.2 stage 1: start activity managerservice/29910.3.1 start athread thread/30010.3.2 create activitythread object/30210.3.3 create activitystack class/30910.3.4 call startrunning method/31010.4 Stage 2:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.