Overview Android system porting and driver development

Source: Internet
Author: User

The first chapter mainly outlines the Android system porting and driver development and our previous lesson content is similar, Android system architecture is divided into four layers: the Linux kernel (Android using LINUX2. Series as the kernel), C + + code base, Android SDK API (Java-written library), applications.

While Android migration is divided into system porting and application porting, Android does not need to make too many changes between different CPU architectures (sometimes it still needs some tweaking), but also to allow Android to support different hardware platforms, and of course we need to do Linux drive porting. A hardware Abstraction Layer HAL (Hardware Abstraction Layer) is added to the Android system, and Android accesses the Linux driver through the HAL. If you add a new driver or make changes to the original driver, you need to make changes to the HAL. In the case of Linux drive porting, the main consideration is the Linux kernel version, the same driver of the Linux kernel version can be replaced with each other (driver is compatible with HAL).

Linux divides memory and peripherals into three main categories, character devices, block devices, and network devices. The communication between the Linux kernel and the network device is completely different from that of the character device and the block device, and the network device is designed for packet reception and transmission. Character devices and block devices can be categorized as a unit that can be read and stored sequentially/randomly, the network device is the driver of the special device, it is responsible for receiving and sending frame data, either physical or IP packets, these features are network-driven decisions.

The second chapter introduces the installation method of two kinds of JDK in the Book of Building Android development environment.

Overview Android system porting and driver development

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.