Android Deep Exploration Summary

Source: Internet
Author: User

Android Deep Explore top four chapters summary

Through these chapters of learning the concept of "porting": the process of customizing Android for a particular device, but the most developed in the porting process is the Linux driver that supports a variety of hardware devices, this chapter provides an overview of Android and Linux. Then introduced the Android four layer architecture: Linux kernel; c + + code base; Android SDK API; application. With the introduction of Android transplant, Android transplantation includes two parts: application porting, System porting. and add a new module for the hardware platform, you must add a new driver for this module, or modify the original program.

Learning Linux needs to be done: the Linux operating system Ubuntu, a Development board, learning GNU C, related hardware knowledge. Linix divides the memory and peripherals into three parts: Character devices (touch screen, tape drive, mouse, keyboard), network devices, block devices (HDD, floppy drive)

Finally, the introduction of Linux driver, LED lamp Core code contains a lot of system functions and structures, understand that any one driver need to have a load function and unload function, they are specified by Module_init and Module_exit macros respectively. This is the most basic Linux driver. Linux driver programming is only related to the Linux kernel, it is not related to the Linux system used by the user, can be used to view the kernel version of the system using the command, and as long as the kernel version of the same driver can be common.

Android apps and Android NDK programs are required to test Linux drivers, so the tools needed must be well equipped. And there are some requirements for the version of the tool, Jdk,eclipse,adt,cdt,android sdk,android NDK, cross-compilation environment, Linux kernel source code, Android source code, tool for debugging the Development Board serial Port Minicom, Of course the Development Board is also required. The truth is that git is important because you want to get source code for open source, you have to use Git, and the Linux kernel is completely managed by git. Git is the source code to manage, before using to install Linux in three ways to view the document:

1. Use man directly to view the help document for the specified command, which can be exited by Q after the query is completed

2. View the specified document Usage command as text:

(1) Git help <sub-command>

(2) Git get git-(plus the command that needs to be queried)

3. View the commands used in the HTML form of the document:

The book shows a complete example of how large git can be, including how to create a repository, submit source code, create a branch, upload source code to a remote server, and get source code from a distant server.

Speaking of the Git hosting server, the first time you listen to this noun, the book uses GitHub to host the. txt file you just created, you need to register a free user on the Http://github.com/signup/free page before using it, and then create an open source project by prompting Then to upload the source code to GitHub, the upload requires SSH verification, to use the command ssh-keygen-t rsa-c "", the double quotation mark is written in the registered mailbox number, and then generate a key file and a public key file, after the file exists, need to back up, followed by a hint, However, Ubuntu successfully completed the above operation still cannot pass the test, need to add RSA identity to proxy authentication. You can see the uploaded files on the GitHub page, and you can find the URI for uploading. In short this is a source code tour, learned how to download and compile the Android source code and the Linux kernel source code. And also introduced a lot of instructions, for the Linux kernel learning is very helpful, and further understand the content of the study, it is really a book read hundred of its self-righteousness.

http://www.cnblogs.com/xxyue/

Android Deep Exploration Summary

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.