Android source code general structure (1) Summary of basic knowledge

Source: Internet
Author: User

–makefile (Global Makefile file)
–bionic (bionic meaning bionic, which is some basic C library source code)
–bootloader (boot loader)
The content in the build directory is not the code used by the target, but the scripts and tools needed to compile and configure it
–build (the content in the build directory is not the code used by the target, but the scripts and tools needed to compile and configure)
– CTS (Android Compatibility test suite standard)
–libcore (Core library related)
Dalvik virtual Machine optimized Java for embedded devices


Java Virtual machine)
–dalvik (Dalvik virtual machine, Java Virtual machine optimized for embedded devices)
–development (templates and tools needed to create the application)
Qcom
–device (some compilation scripts and libraries related to specific devices, such as Htc,qcom,samsung, etc.)
–external (some external open source frameworks and libraries used by Android)
(Application's framework layer, SDK
The interface of the SDK is basically implemented here)
–frameworks (the framework layer of the application, the interface of the SDK is basically implemented here)
–hardware (Hardware-related libraries)
Linux2.6
–kernel (Kernel source code for Linux2.6)
–NDK (Local Development Kit--C Language Development Kit)
--c
Android for various applications)
–packages (Android for various applications)
–prebuilt (Android pre-built script compiled on various platforms)
–SDK (SDK and simulator)
Some libraries on the bottom of Android)
–system (some libraries at the bottom of Android)
' –vendor (vendor-Private code)

Summary of knowledge points, the DEX (class.dex) file is a file format that can be run directly on a Dalvik virtual machine on an Android system.

Java source code is compiled into Smali language by ADT This is an optimization process, relative to the. class file, it is small in size, efficient in operation, and low in readability after compilation, and Smali to Class.dex itself is a process of shell protection.

Dex files if not well protected, hackers through anti-compilation can make the source completely exposed, can use reading source to find the design process of the app, through the process of understanding the program will be easy to piracy, malicious tampering, malicious code injection and other dangerous behavior.

In this special thank you love encryption provides encryption services to me the application of reinforcement provides protection: Http://www.ijiami.cn/AppProtect

Android source code general structure (1) Summary of basic knowledge

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.