Android architecture has 4 layers:
1. Linux Kernel: It is the heart of android architecture that exists at the root of android architecture. Linux kernel is responsible for device drivers, power management, memory management, device management and resource access.
2. Libraries: This layer provides libraries which are written in C/C++.
3. Application Framework: This framework provides set of API by which we can use system services and its component
4. Application: All…