Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the code structure after Android compilation?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

Android compiled after the completion of the code structure, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

When the Android compilation is complete, an out folder is generated in the root directory, and all generated contents are placed in this folder. The out folder is as follows:

Out/ |-- CaseCheck.txt |-- casecheck.txt |-- host | |-- common | `--linux- x86`-- target |-- common`-- product

The two main directories are host, which represents the tools generated on the host (x86), and target, which represents what the target machine (the module thinks ARMv5) is running.

The structure of the host directory is as follows:

Out/host/ |-- common | `--obj (JAVA library)`-- linux-x86 |-- bin (binary program) |-- framework (JAVA library, * .jar file) |-- lib (shared library * .so) `--obj (target file generated in the middle)

The host directory is some of the tools used on the host, some are binary programs, and some are JAVA programs.

The structure of the target directory is as follows:

Out/target/ |-- common | |-- R (resource file) | |-- docs | `--obj (target file)`-- product `--generic

The common directory represents general content, while product is for product content.

In the obj of the common directory, there are two important directories:

The APPS contains the targets generated by the JAVA application, and each application corresponds to one of the subdirectories, and the APK package of the Android application is generated combined with the original files of each application.

JAVA_LIBRARIES contains libraries for JAVA, each of which corresponds to a subdirectory.

By default, Android compilation generates generic directories, and other directories can be generated if the selected product is selected. Generic contains the following:

Out/target/product/generic/ |-- android-info.txt |-- clean_steps.mk |-- data |-- obj |-- ramdisk.img |-- root |-- symbols |-- system |-- system.img |-- userdata- qemu.img`-- userdata.img

Various JAVA applications are included in the generic/obj/APPS directory, corresponding to common/APPS, but have been packaged into APK packages.

The system directory is the main file system, and the data directory is the file system where the data is stored.

All dynamic libraries are stored in obj/SHARED_LIBRARIES.

All static libraries are stored in obj/STATIC_LIBRARIES.

Several files ending in img are several target image files, where ramdisk is the root file system image of the memory disk, system.img is the image of the primary file system, this is a larger file, and data.img is the data content image. These image files are the ones you really need at run time.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report