Some time ago, the company developed the javaee project and the website provided download for Android applications. The results showed that the APK files downloaded by many 3G online users were changed to zip files, but the database is stored in the APK file path, recently cannot be understood, our company uses apache-
The Apache server's configuration file path is Conf/mime.typesAdd a row of data to the file, as follows:
The code is as follows
Copy Code
. application/vnd.android.package-archive apk
If your thing Apache server, find your Tomcat directory
Add the type of apk to the Conf/web.xml
extension:
The advantage is that when the program is upgraded, you do not need to download the main extension file again. You only need to download a small number of new files to save the user flow.
How to Use the apk editor? Let me know how to use some of his functions.
Previously downloaded and used! Good stuff! You can clear the paid plug-ins in mobile games! No moreAndroid
APK file Structure
Android apps are written in Java, compiled with the Android SDK, and packaged all the data and resource files into a apk (Android Package) file, This is a compressed file with a suffix named. apk, and the
Application ScenariosIf you need to batch parse the APK as well as the Classes.dex file in each apk file. How do you extract them? It is a viable option to change the APK name to a. zip file
Players are not familiar with APK. Do you know about APK modification? For example, you can perform Chinese-English Version modification, modify functions, Modify text descriptions, and remove advertisements. This article describes the basic knowledge, structure, unpackage, package, and signature of the APK file, as we
Detailed description of the Andriod APK file structure, andriodapk
APK file structure
The APK file is actually a zip package and can be unzipped.
The structure of the
APK.Jarsigner -.....--digestalg SHA1 ...JDK1.7 because the default signature algorithm changes, you need to specify the signature algorithm and the key algorithm. It's supposed to correspond to Keytool.-sigalg -keyalg Two parameters.===============Also about the SF RSA file name in the signed Meta-infoHowever, the default APK's meta-info name is CERT after the signature. SF and CERT. Rsa. I use Jarsigner signature is that This cert should not be Key
actual desired modifications inside the. apk file2. Sign the. apk3. Install the. apk on the device1. The resource in the. apkOpen the. apk file with WinRAR (IF-doesn ' t work, rename the file extension. apk to.
The apk file is actually in the zip format, but the suffix name is modified to APK, after decompression through unzip, you can see the Dex file, Dex is the full name of Dalvik VM executes, that is, Android Dalvik execution program, not Java The bytecode of me is the Dalvik b
and the same to ones when compiling. The codes are in a different coding --- smali which is also easy to read and modify.
This tool also supports re-compile the decompiled sources
Into an apk file, which enables us to modify the apk files. For more info, please refer the help info.
This is the most convenient way from my standpoint. It decod
application/vnd.android.package-archive:
Application/vnd.android.package-archive apk;
Restart Apache
server Nginx support for. apk File Download Settings
apk and. IPA are the extensions for Android apps and iOS apps respectively. NBSP automatically renames a zip
First, let's talk about the APK structure. APK is compressed in ZIP format, which can be easily decompressed.
The structure of an APK file is:
The META-INF \ JAR file is often seen
Res \ directory for storing resource files
in fact, an APK file is a. zip format of the compressed package, we can use the decompression tool to open any APK file, due to code obfuscation and encryption, the normal decompression tool to open the inside of the file or direc
1. decompile Apk to get the Java source code
Dex2jar and JD-GUI these two tools with learning android is too reliable, so put up to share with you, the advantages of open source is good things to share with you.
Dex2jar: http://laichao.googlecode.com/files/dex2jar-0.0.7-SNAPSHOT.zipJD-GUI:Windows JD-GUI: http://laichao.googlecode.com/files/jdgui.zipLinux JD-GUI: http://laichao.googlecode.com/files/jd-gui-0.3.2.linux.i686.tar.gzIt is worth noting that
Today, when I write a project, I import a jar file that I wrote, and I can't find the jar file error when I debug it:08-06 21:42:10.744:e/androidruntime (2578): java.lang.RuntimeException:Unable to instantiate activity componentinfo{ Com.example.iotlife/com.example.iotlife.mainactivity}: Java.lang.ClassNotFoundException:Didn ' t find class " Com.example.iotlife.MainActivity "on Path:dexpathlist[[
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.