Functions of various files in the android source package.

Source: Internet
Author: User
1. Structure of the android File System
After the android source code is compiled, the system. IMG, ramdisk. IMG, and userdata. IMG image files are obtained. Ramdisk. IMG is the file system of emulator. IMG includes the main packages, libraries, and other files, userdata. IMG includes some user data. After the emulator loads these three image files, it loads system and userdata to the system and userdata directories in the ramdisk file system respectively. Therefore, we can copy all the files in ramdisk. IMG and decompress system. IMG and userdata. IMG to system and
Under the userdata directory.

2. Separate the android File System
The system. IMG, ramdisk. IMG, and userdata. IMG image files are packaged using cpio and compressed using gzip. You can run the file command to verify that:
File ramdisk. IMG, output:
Ramdisk. IMG: gzip compressed data, from UNIX, last modified: Wed mar 18 17:16:10 2009
After the android source code is compiled, in addition to system. IMG and userdata. IMG, the system and userdata folders are generated, so you do not need to decompress them. After the android source code is compiled, the root folder is generated. In fact, the files under root are the same as those in ramdisk. IMG. But here we will introduce how to decompress ramdisk. IMG:
Copy ramdisk.imgto another directory, change its name to ramdisk.img.gz, and run the command
Gunzip ramdisk.img.gz
Create a folder named ramdisk.
Cpio-I-f ../ramdisk. img
Now you can see and operate the content in ramdisk.

Copy the files in system and userdata generated after compiling the android source code to ramdisk/system and ramdisk/userdata. In this way, a file system is obtained.

? Repo? It is mainly used to synchronize and manage a series of files used

? Bionic? Some libraries required for Android Compilation

? Bootable? Files for startup and backup

? Build? Some of the most important makefiles and compilation configuration files

? Dalvik? Java Virtual Machine optimized by Google

? Development? Development folders, including simulators and tools

? External? External function library introduced in Android Project

? Frameworks? Middleware

? Hardware? Hardware-related support files, including WiFi and telecom modules

? Kernel? Linux Kernel optimized and modified

? Packages? All upper-layer application packages

? Prebuild? Directory of Android compilation tool

? System? Some system-level files

1. Structure of the android File System
After the android source code is compiled, the system. IMG, ramdisk. IMG, and userdata. IMG image files are obtained. Ramdisk. IMG is the file system of emulator. IMG includes the main packages, libraries, and other files, userdata. IMG includes some user data. After the emulator loads these three image files, it loads system and userdata to the system and userdata directories in the ramdisk file system respectively. Therefore, we can copy all the files in ramdisk. IMG and decompress system. IMG and userdata. IMG to system and
Under the userdata directory.

2. Separate the android File System
The system. IMG, ramdisk. IMG, and userdata. IMG image files are packaged using cpio and compressed using gzip. You can run the file command to verify that:
File ramdisk. IMG, output:
Ramdisk. IMG: gzip compressed data, from UNIX, last modified: Wed mar 18 17:16:10 2009
After the android source code is compiled, in addition to system. IMG and userdata. IMG, the system and userdata folders are generated, so you do not need to decompress them. After the android source code is compiled, the root folder is generated. In fact, the files under root are the same as those in ramdisk. IMG. But here we will introduce how to decompress ramdisk. IMG:
Copy ramdisk.imgto another directory, change its name to ramdisk.img.gz, and run the command
Gunzip ramdisk.img.gz
Create a folder named ramdisk.
Cpio-I-f ../ramdisk. img
Now you can see and operate the content in ramdisk.

Copy the files in system and userdata generated after compiling the android source code to ramdisk/system and ramdisk/userdata. In this way, a file system is obtained.

? Repo? It is mainly used to synchronize and manage a series of files used

? Bionic? Some libraries required for Android Compilation

? Bootable? Files for startup and backup

? Build? Some of the most important makefiles and compilation configuration files

? Dalvik? Java Virtual Machine optimized by Google

? Development? Development folders, including simulators and tools

? External? External function library introduced in Android Project

? Frameworks? Middleware

? Hardware? Hardware-related support files, including WiFi and telecom modules

? Kernel? Linux Kernel optimized and modified

? Packages? All upper-layer application packages

? Prebuild? Directory of Android compilation tool

? System? Some system-level files

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.