Those wheels on Android

Source: Internet
Author: User

The whole AOSP code, Parcel Day parcel, from kernel,libc,gui,net ... It simply includes the entire field that most of the average programmer's career involves. In fact, the open source industry has already encountered and solved a lot of Android problems, but Google hates the GPL, or, Google in order to take care of more business companies, with a force, to re-create a lot of wheels. Shrinks below.

glibc <---->bionic

First, standard C's API is essential. In addition to Android built on Linux, the Linux implementation of the POSIX Api,linux proprietary system calls, also have to encapsulate a set. GNU developed the Glibc,google development bionic.

glib<---->system/core/libcutils+libsparse

C language lacks standard data structure implementations, such as linked lists, hash tables, dynamic arrays and other data structures that do not have any rules in standard C. The GTK organization developed glib as a support for its own graphics library, and Android naturally cannot lag behind, also to come up with a set of, and add, sparse matrices to this data structure.

stl/boost<--->system/core/libutils

Android's framework is implemented in C + +, using C + +, what smart pointers, thread,string,vector,hashmap,list and other basic data structures, must be prepared first. Stl/boost implementation of the set, Android this time is not a set, the principle is, how much to achieve, to achieve a streamlined stl/boost.

busybox<--->system/core/sh + toolbox + RootDir

With the Linux OS, the terminal (shell) is also an essential component. We need shell scripting interpreters, various common cmd, and file system builds. BusyBox's work, too, must be done again.

udev<--->system/vold

To handle the hot plug of the device, such as SD card, U disk and so on. We have to deal with user space also kernel communication, we have netlink socket. The choice given by the open source community is that the choice given by Udev,google is void.

xinetd<--->system/netd

XINETD the network daemon under Linux to handle various network services. Android gave another set of netd.

com/dbus/cobra<--->binder

In fact, IDL to describe the interface, is a long long ago. For example, Microsoft COM components, UNIX cobra, interprocess communication Components How many also, whether you are using the kernel virtual device driver, or socket domain, forward, we have to cross the process, do too much effort.

Those wheels on Android

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.