4 Android executable file

APK is the Android Package acronym, a zip-extracting file to open. Each file contains a APK class.dex file (except through odex APK file). class.dex file system is the Android Dalvik virtual machine executable files

Way Android works packaged in two ways:

1. Eclipse integrated development environment directly generated by the export of APK files

2. Ant tool using the command line package generated APK files

 

APK packaging process:

1. Package resource files, files generated R.java  

2. Aidl processing file, generates corresponding Java files

3. Compile the project source code to generate the corresponding class file

4. Convert all the class files generated file classes.dex

5. Package generated Apk file

6. The APK file signatures

a) signature Apk two cases

                 i. be signed at the time of the debugger

                ii. sign when packaged and released, you need to provide a signature file documents in line with the development of Android

  1. Signature files in two ways

a) using the JDK tool jarsinger

b) in the source code using Android tool signapk

7. APK signature file for the alignment process, so that all the resource files apk package is offset from the file starting an integral multiple of 4 bytes

 

Android application installation process

Four kinds of installation:

1. Installation: Installation boot, no installation interface

2. Network Installation via Android Market, there is no installation interface: installed through the Android Market

3. Adb Tools installation: adb install path is not installed interface

4. The phone comes with installation: mounting interface

 

Guess you like

Origin www.cnblogs.com/heixiang/p/10964106.html