Android application frameworks overview

来自百问网嵌入式Linux wiki
Zhouyuebiao讨论 | 贡献2020年5月8日 (五) 23:14的版本 (创建页面,内容为“The diagram below gives an overview of the Android application frameworks (Linux user space components) that rely on Linux kernel…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

The diagram below gives an overview of the Android application frameworks (Linux user space components) that rely on Linux kernel.

This Linux kernel is based on the Android Common Kernel[1] following Google recommendation for its configuration[2].


It shows the main components grouped per functional domain, however it is not exhaustive.




The Android framework is structured in several layers:

  • hardware interfaces providing a standard way to configure the underlaying driver, based on the Android HIDL (Hardware Interface Definition Language) mechanism
  • the Android core (ART virtual machine, useful daemons including vold, adbd, and debuggerd, and system services)
  • Android services (providing interfaces to the application = SDK)
  • Android applications (including the launcher)

The Android services are often implemented partly in native cpp, and partly in Java. The JNI (Java Native Interface) IPC mechanism is available to allow communication between the two worlds.

In addition to the standard Android services, a proprietary coprocessor service for Android has been introduced (for development purposes only). The CoproService is composed of two parts:

  • firmware management (check running firmware, start/stop firmware, get/set the firmware name)
  • TTY management (open/close and read/write the TTY interface). You must implement your own protocol on top of this.

References

<securetransclude src="ProtectedTemplate:PublicationRequestId" params="12861 | 30Jul'19 |"></securetransclude>