The Wayback Machine - https://web.archive.org/web/20240927110238/https://www.geeksforgeeks.org/android-system-architecture/
Open In App

Android System Architecture

Last Updated : 02 Dec, 2022
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

The Android software stack generally consists of a Linux kernel and a collection of C/C++ libraries that are exposed through an application framework that provides services, and management of the applications and run time.

Linux Kernel

Android was created on the open-source kernel of Linux. One main reason for choosing this kernel was that it provided proven core features on which to develop the Android operating system. The features of the Linux kernel are:

1. Security: The Linux kernel handles the security between the application and the system.

2. Memory Management: It efficiently handles memory management thereby providing the freedom to develop our apps.

3. Process Management: It manages the process well and allocates resources to processes whenever they need them.

4. Network Stack: It effectively handles network communication.

5. Driver Model: It ensures that the application works. Hardware manufacturers can build their drivers into the Linux build.

Libraries:

Running on top of the kernel, the Android framework was developed with various features. It consists of various C/C++ core libraries with numerous open-source tools. Some of these are:

1. The Android Runtime: The Android runtime consists of core libraries of Java and ART(the Android RunTime). Older versions of Android (4.x and earlier) had Dalvik runtime.

2. Open GL(graphics library): This cross-language, cross-platform application program interface (API) is used to produce 2D and 3D computer graphics.

3. WebKit: This open-source web browser engine provides all the functionality to display web content and simplify page loading.

4. Media frameworks: These libraries allow you to play and record audio and video.

5. Secure Socket Layer (SSL): These libraries are there for Internet security.

Android Runtime

It is the third section of the architecture. It provides one of the key components which is called Dalvik Virtual Machine. It acts like Java Virtual Machine which is designed especially for Android. Android uses its own custom VM designed to ensure that multiple instances run efficiently on a single device.

The Dalvik VM uses the device’s underlying Linux kernel to handle low-level functionality, including security, threading, and memory management.

Application Framework

The Android team has built on a known set of proven libraries, built in the background, and all of it is exposed through Android interfaces. These interfaces wrap up all the various libraries and make them useful for the Developer. They don’t have to build any of the functionality provided by the android. Some of these interfaces include:

1. Activity Manager: It manages the activity lifecycle and the activity stack.

2. Telephony Manager: It provides access to telephony services as related subscriber information, such as phone numbers.

3. View System: It builds the user interface by handling the views and layouts.

4. Location manager: It finds the device’s geographic location.

Applications:

Android applications can be found at the topmost layer. At the application layer, we write our application to be installed on this layer only. Examples of applications are Games, Messages, Contacts, etc.


Previous Article
Next Article

Similar Reads

Difference between System Architecture and Software Architecture
1. System Architecture : System architecture is a conceptual model that describes the structure and behavior of multiple components and subsystems like multiple software applications, network devices, hardware, and even other machinery of a system. It is Architecture Description Language (ADL) which helps to describe the entire system architecture.
3 min read
Lambda Architecture vs. Kappa Architecture in System Design
Lambda and Kappa Architectures are popular data processing models used in big data systems to handle real-time and batch processing. While Lambda Architecture separates batch and real-time processing for fault tolerance and scalability, Kappa Architecture simplifies the process by focusing solely on stream processing for real-time analytics. This a
6 min read
Difference between System Design and System Architecture
When it comes to software development and engineering there can be some confusion, between the two terms "System Design" and "System Architecture." Although they are related they actually refer to stages and responsibilities in creating scalable and efficient systems. It is important to grasp the differences, between System Design and System Archit
3 min read
System Design of Uber App | Uber System Architecture
Getting the hassle-free transportation service(Uber, Ola) is very easy but is it also simple to build these gigantic applications that have hundreds of software engineers working on them for a decade? surely not. These systems have much more complex architecture and there are a lot of components joined together internally to provide riding services
13 min read
MVC Architecture vs. Microservices Architecture
In the world of system design, choosing the right architecture for your project is crucial. Two prominent contenders are Microservices and Model-View-Controller (MVC). While both offer distinct advantages, understanding their core differences is essential for making an informed decision. Important Topics for MVC vs. Microservices Architecture Micro
3 min read
Event-Driven Architecture vs Data-Driven Architecture
In System Design, architecture plays a crucial role in determining how systems handle and process information. Two prominent architectural paradigms are Event-Driven Architecture (EDA) and Data-Driven Architecture (DDA). Both approaches offer distinct methods for managing data and interactions within systems, and understanding their differences can
4 min read
Event-Driven Architecture vs. Microservices Architecture
In system design, choosing the right architecture is crucial for building scalable and efficient systems. Two popular approaches, Event-Driven Architecture (EDA) and Microservices Architecture, each offer unique benefits. This article explores their definitions, differences, use cases, and more. Table of Content What is Event-Driven Architecture?Wh
4 min read
Android Architecture Patterns
When developers work on a real mobile application whose nature is dynamic and will expand its features according to the user's need, then it is not possible to write core logic in activities or fragments. To structure the project's code and to give it a modular design(separated code parts), architecture patterns are applied to separate the concerns
5 min read
Difference Between MVC, MVP and MVVM Architecture Pattern in Android
Developing an android application by applying a software architecture pattern is always preferred by the developers. An architecture pattern gives modularity to the project files and assures that all the codes get covered in Unit testing. It makes the task easy for developers to maintain the software and to expand the features of the application in
6 min read
MVC (Model View Controller) Architecture Pattern in Android with Example
Developing an android application by applying a software architecture pattern is always preferred by the developers. An architecture pattern gives modularity to the project files and assures that all the codes get covered in Unit testing. It makes the task easy for developers to maintain the software and to expand the features of the application in
8 min read
MVP (Model View Presenter) Architecture Pattern in Android with Example
In the initial stages of Android development, learners do write codes in such a manner that eventually creates a MainActivity class which contains all the implementation logic(real-world business logic) of the application. This approach of app development leads to Android activity gets closely coupled to both UI and the application data processing
12 min read
MVVM (Model View ViewModel) Architecture Pattern in Android
Developers always prefer clean and structured code for projects. Organizing the codes according to a design pattern helps in the maintenance of the software. By having knowledge of all crucial logic parts of the android application, it is easier to add and remove app features. Further, design patterns also assure that all the codes get covered in U
7 min read
Difference Between MVC and MVP Architecture Pattern in Android
Developing an android application by applying a software architecture pattern is always preferred by the developers. An architecture pattern gives modularity to the project files and assures that all the codes get covered in Unit testing. It makes the task easy for developers to maintain the software and to expand the features of the application in
3 min read
Jetpack Architecture Components in Android
Android Jetpack is a set of software components, libraries, tools, and guidance to help in developing robust Android applications. Launched by Google in 2018, Jetpack comprises existing android support libraries, android architecture components with an addition of the Android KTX library as a single modular entity. Nowadays, nearly 99% of the apps
10 min read
ViewModel in Android Architecture Components
ViewModel is part of the android architecture component. Android architecture components are the components that are used to build robust, clean, and scalable apps. Android architecture components hold some classes to manage UI components and Data persistence. The ViewModel class is designed to store and manage UI-related data in a lifecycle-consci
5 min read
LiveData in Android Architecture Components
LiveData is one of the android architecture components. LiveData is an observable data holder class. What is the meaning of observable here the observable means live data can be observed by other components like activity and fragments (Ui Controller). The most important thing about LiveData is it has the knowledge about the Life cycle of its observ
5 min read
Overview of WorkManager in Android Architecture Components
Android WorkManager could be thought of as a backgrounding library that is employed to execute background tasks that should run in a guaranteed way but not necessarily immediately. With WorkManager we'll enqueue our backgrounding even when the app isn't running and even when the device is rebooted for a couple of reasons. WorkManager also lets us d
4 min read
Overview of Data Binding in Android Architecture Components
This article describes the idea behind the Data Binding and MVVM design pattern and its components. If you would like to experiment with it hands-on, open an old project with spaghetti code. If you don’t have one, you'll get one from GitHub. Then, attempt to use the MVVM components introduced during this article. In some ways, software development
4 min read
Overview of Room in Android Architecture Components
Room is one of the Jetpack Architecture Components in Android. This provides an abstract layer over the SQLite Database to save and perform the operations on persistent data locally. This is recommended by Google over SQLite Database although the SQLite APIs are more powerful they are fairly low-level, which requires a lot of time and effort to use
5 min read
Overview of Navigation in Android Architecture Components
Navigation basically in mobile development refers to the interaction between different screens or pieces of contents within the application. Android Jetpack's architecture Component the Navigation is so powerful, providing a consistent and predictable user experience. The navigation component helps to implement the Navigation between activities and
5 min read
Overview of Paging in Android Architecture Components
The Paging library allows you to load and show pages of data from a bigger dataset that is stored locally or over the network. This method helps your program to make better use of both network bandwidth and system resources. The Paging library's components are built to fit into the suggested Android app architecture, interface well with other Jetpa
3 min read
Android MVP Architecture Extension with Interactors and Repositories
Nature's truth is evolution, and new developments are led by natural selection. As a result, there are many diverse species with numerous similarities, and they all adapt best to their environment. The concept that one is superior to the other is only applicable under limited circumstances when one is more suited for survival. When the circumstance
5 min read
Transitioning to x64 Architecture in Android
If your app solely utilizes code written in Java or Kotlin, including any libraries or SDKs, it is already ready for 64-bit devices. If your app utilizes native code, or if you are unclear whether it does, you must evaluate it and take action. But why are we actually transitioning? Google plans to transition to a 64-bit app ecosystem in the next ye
4 min read
How to Build SIP Calculator Android App using MVP Architecture?
SIP, the Systematic Investment Plan. One of the methods to invest in Mutual Funds is weekly, monthly quarterly, or half-yearly. The SIP calculator is the tool to get an idea for investors about their investment returns. However, the returns of mutual funds vary on various factors. For example, the SIP calculator does not calculate the Absolute retu
10 min read
Build Modular Android App Architecture with Example
Modules are piece of code that is independently created and maintained and can be used in a different system. In Android apps modules can be a simple feature like Search or it may be purchased on demand. For eg. In gaming apps like PUBG, skins of the guns and the character are also a module. There are several modules namely they are, Application mo
4 min read
What is Clean Architecture in Android?
With the growing period of technology, it is critical to get the architecture right if you want to build a fantastic software program, which is why it’s so essential. If you’re interested in creating android apps with the help of clean architecture, then you have arrived at the right place. Here, we aren’t just providing you the MVVM (Model View-Vi
5 min read
Android - Build a Movie App using Retrofit and MVVM Architecture with Kotlin
Model — View — ViewModel (MVVM) is the industry-recognized software architecture pattern that overcomes all drawbacks of MVP and MVC design patterns. MVVM suggests separating the data presentation logic(Views or UI) from the core business logic part of the application. The separate code layers of MVVM are: Model: This layer is responsible for the a
5 min read
Build a Recipe App using MVVM Architecture with Kotlin in Android
In this article, we will make a recipe app that displays a list of Indian recipes using the retrofit library and MVVM architecture. Model — View — ViewModel (MVVM) is the industry-recognized software architecture pattern that overcomes all drawbacks of MVP and MVC design patterns. MVVM suggests separating the data presentation logic(Views or UI) fr
7 min read
How to Build a Food and Their Price List Android App using MVVM Architecture with Kotlin?
In this article, we will food app that displays a list of foods and their price using the retrofit library and MVVM architecture. Model — View — ViewModel (MVVM) is the industry-recognized software architecture pattern that overcomes all drawbacks of MVP and MVC design patterns. MVVM suggests separating the data presentation logic(Views or UI) from
5 min read
Difference Between MVC and MVVM Architecture Pattern in Android
Developing an android application by applying a software architecture pattern is always preferred by the developers. An architecture pattern gives modularity to the project files and assures that all the codes get covered in Unit testing. It makes the task easy for developers to maintain the software and to expand the features of the application in
5 min read
Article Tags :