Atlas, the Greek god of heaven, is a robot from Boston Dynamics, and with the help of a search engine, we were able to discover many meanings behind the term. In mobile Taobao, Atlas is a componentized container framework rooted in Android client. Compared with the mythical Titan Titan that supports the sky with hands and heads, Atlas carries the operation of rich business on Taobao without being known to the public, accompanied by countless functions in…
Recognize Android directions have insight into the plug-in brings great convenience, has been also don’t have time to make a detailed set of memory, here, only in the form of source code analysis of plug-in framework to consolidate, corpus will be concrete analysis in the source code, the frame structure, operation principle, etc., in addition to deepen our memory, also let us progress together.
With the rapid growth of mobile Taobao business and the continuous expansion of collaborative RESEARCH and development teams, the technology also faces more challenges: on the one hand, the rapid increase of code volume leads to too many methods, which limits the normal output of packaging; Another aspect of the business line of development and integration needs to be on a apk, mutual coupling between business is serious, integrated development work efficiency is low, this big background, the need to do a from building, integration, delivery of the technical transformation, then the Atlas for operation of the vessel was born as a hand, it is flexible to solve the various during the independent decoupling of business development, It also provides independent dynamic capability for each module line.
What is Atlas?
Atlas is an Android client container framework that provides componentization, dynamic and decoupling support. Support all kinds of problems during coding period, Apk operation period and subsequent operation and repair period.
- During the engineering period, realize the independent development and debugging function of the project and the independence of the project module.
- At runtime, complete component lifecycle mapping, class isolation, and so on are implemented.
- During operation and maintenance, rapid incremental update and repair functions are provided.
Atlas is a framework for both the engineering period and the running period. It tries to put some work in the engineering period, so as to ensure the simplicity and stability of the running period.
The overall design of Atlas is divided into five layers:
The first layer is called Hack layer, including OS Hack Toolkit and Verifier, which extends system capabilities and then performs security verification.
The second layer is the Bundle Framework, which is the container infrastructure. It provides Bundle management, loading, lifecycle, security and other basic capabilities.
The third layer is the runtime management layer, which includes the manifest, which lists all bundles and their capabilities in a list that can be easily looked up when called. The other is version management, which manages the versions of all bundles. Another is the proxy, which is similar to some plug-in framework mechanisms in the industry. It will proxy the operating environment of the system and make the Bundle run on the container framework. Then there are debugging and monitoring tools, is to facilitate the development and debugging during the project.
The fourth layer is the business layer, which exposes interfaces to the business side, such as the framework lifecycle, configuration files, tool libraries, and so on.
The top layer is the application access layer, is the business code.
Therefore, Atlas, as a framework, provides relatively complete capabilities. The development of the business layer can do some customized actions in each link of the framework life cycle, and can also freely call the capabilities released by the system, the framework, and even other components
Atlas is the open source Android container framework.
Open Source Android container framework Atlas developer guide
(This course focuses on the use of the Atlas framework.)
More excellent courses:
7 days to play cloud server
Redis version of the cloud database using tutorial
Play cloud storage object storage OSS introduction
Ali Cloud CDN use tutorial
Load Balancing Introduction and Product Usage Guide
Official website of Ali Yun University (Official website of Ali Yun University, Innovative Talent Workshop under cloud Ecology)