Chapter One overview of Android system porting and driver development notes

Source: Internet
Author: User

1. To run Android on your device, you must develop specific software for your device, which is called "porting" to a specific device that customizes Android.

The 2.Android system architecture is divided into: the bottom Linux kernel, and other Linux systems are very small differences, the next layer is the C/S code base, and the next layer is the Android SDK API, this layer is written in Java library; The top is the application, All users of this layer are exposed to all Android apps.

3.Android migration is divided into application porting and system porting, the main work is porting the Linux driver and porting HAL (Hardware abstraction layer, the Android SDK directly accesses the Linux driver through the HAL, the application cannot directly access the driver).

4. Enter the uname-a or cat/proc/version command in the terminal to view the kernel version.

5. The drive targets the memory and peripherals into three major classes of:1> character devices 2> block devices 3> network devices.

6. Any Linux driver has a load function and an unload function, which can be specified by Mobule_init and mobule_exit macros, respectively.

Learning about Linux drives is not related to Linux systems, but only to the Linux kernel. As long as the kernel is the same, the driver can be used directly. Read the first chapter, re-understand the Android system porting and drive development of the overall impression, so that I learn more direction. The kernel used by Android adds a HAL. Learning to drive development can customize their own equipment, self-help to achieve home electric lights such as automation and mobile phone control functions, think let people excited.

Chapter One overview of Android system porting and driver development notes

Related Article

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.