Discussion: Android top-level source code structure

Source: Internet
Author: User

As an underlying developer, especially the underlying Android development, the most basic thing is to be familiar with the android source code. The android source code directory is very large, including the android compilation script, target code, host compilation tool, and simulation environment.

Top-level directory:

| -- Makefile

Global makefile.

| -- Bionic

Bionic libc library

| -- Bootable

Boot Loader, recovery system, which contains U-boot, that is, bootloader, which is used to guide the operating system to run. Programs run first after the machine is powered on.

| -- Build

Compile and configure the required scripts and tools.

| -- Dalvik

For Java virtual machines, many people do not understand why Java virtual machines are required because the operating system is written in C language and the android program is written in Java. Therefore, the runtime environment must be provided for Java, and provides most of the functions of the core library of Java programming language. Oh, are you sure you have any questions? Isn't Android an operating system? If you think so, it's wrong! Android is a mobile device software heap that includes the operating system, favorite parts, and key applications. Android is based on the Linux operating system.

| -- Development

Templates and tools required for program development.

| -- External

External library.

| -- Frameworks

Android Application Framework.

| -- Hardware

Hardware-related libraries.

| -- Kernel_xxx

Linux2.6 kernel source code, xxx indicates the corresponding development board model.

| -- Packages

Application.

| -- Prebuilt

Pre-compiled host and target machine programs and tools.

| -- SDK

SDK.

| -- System

Android root directory.

| -- Device

Various vendors configure, compile scripts, and disable source binary.

Due to the time relationship, we will introduce the top-level source code for the moment.

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.