Official Android Technical Documentation translation-Apk splitting mechanism, androidapk
This article is translated from the official androd technical document Apk Splits. Original address: http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits.
URL: http://blog.csdn.net/maosidiaoxian/article/details/41692535. Indicate the source for reprinting
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
Androidmanifest. xmlProgramGlobal configuration file
Classes. Dex Dalvik bytecode
Resources. ARSC compiled binary resource file
One, using Apktool to Decompile1, first inHttp://code.google.com/p/android-apktool/downloads/listDownload two files: apktool1.4.3.tar.bz2 and apktool-install-windows-r04-brut1.tar.bz22, unzip the first file to get Apktool1.4.3.jar put into C:\Windows, the second file contains Aapt.exe and apktool.bat two files are also placed in the C:\WINDOWS folder.3, you can see some help information by typing Apktool at the command line.4. Enter Apktool D c:\***\***.apk
on Android project, Android Tools-->export signed application package ...(2) If the system does not have a digital certificate, you can select "Create new KeyStore" to fill in the format of the digital certificate storage path and password.(3) Fill out the details of the digital certificate.(4) Specify the storage path of the APK installation package after the signature is generated.Once the signing certificate is finished, you can sign it directly w
Android Add-in APK resource resources introductionHow do I load a resource file from an APK that is not installed? We found from the source code of Android.content.res.AssetManager.java, it has a private method addassetpath, just need to pass the APK path as a parameter, we can get the corresponding Assetsmanager object, then we can use a The Ssetsmanager object,
Android APK decompilation is as simple as this (with the picture), androidapk
In the process of learning Android development, you will often learn how other people's applications are developed. Those beautiful animations and exquisite la S may make you easy to understand. As a developer, you may want to know how these effects are implemented. In this case, you can decompile and view the modified APK. The fo
Android APK decompilation tool usage and tool download (mac), androidapk
Tool Name, introduction and:
Apktool (obtain resource files)
Purpose: Obtain resource files. You can extract image files and layout files for viewing.
: Http://download.csdn.net/detail/xue_wei_love/8633211
Dex2jar (obtain the source code file)
Purpose: decompile the apk into the java source code (classes. dex is converted into a jar f
Gradle compiled and packaged Android apk detailed introduction
Understanding the Gradle build process and interpreting the configuration of the Android Gradle plug-in
Read this article must be used to generate APK gradle, the article will not tell how to install the running Gradle, if necessary, you can read the article at the end of the reference.
The APK pac
One: Scene analysisProject an Android App admin template to start the app's add interface as follows:operation, only to find that this operation is cumbersome, unfriendly. So check the information, see how others do, just know upload apk file, you can parse the apk file, from the APK can get version number, version name, package name, permissions, supported Andro
This article is the tenth article of the Android Core Development series, the previous stage, we focused on learning and analyzing the Android system startup process, then, from this article, we are ready to introduce how to add, modify, delete system-level app from Android source. As a starting point, let's start with a simple theory and introduce what the APK file in the Android system really is. How is it installed into the system?When we learn and
The most lazy way to build the APK is:As long as you run an Android project, you can find the APK file with the same name as the project in the Bin folder of the working directory, which is signed by the debug user by default.If you want to sign the APK yourself:1. The meaning of the signatureIn order to guarantee the legal ID of each application developer, to pr
Android obtains information about installed and not installed apk.
PackageManager is the most important class for obtaining apk resources. We can use this class to get all kinds of things we want. First, we can get the basic information of installed apk, including label, and icons:
PackageManager pm = getPackageManager (); List
ApkInfos = pm. getInstalledPa
The application has been developed, the next step we need to think about the promotion of work. So how do you get more users to know and use our apps? In the field of mobile phone----, the most common practice is to publish the program to an app store so that users can find our app through the store and then easily download and install it.When it comes to the App store, it can really be said in the Android world, in addition to Google's official launch of Google Play, in the country there are 91
This period of time learning Android application development, in the thought that since it is developed with Java should be very good anti-compilation to get the source bar, Google a bit, is really easy, the following is my practice process.In this solemn declaration, the purpose is not to crack people's software, is completely a learning attitude, just as if through such a way can also go to the Chinese some foreign software.This article Android anti-compilation tutorial, test environment:Win7
有时候,我们上传apk或者是ipa文件的时候,是需要读取到里面的一些信息的,比如软件的包名,以及其版本信息等。在网上搜索了一下资料 , 找了很多版本,对于apk文件的版本号,一直读取不到,在这里,笔者自己总结了,读取apk、ipa文件的一些代码,大家可以参考下,去其糟粕,取其精华。以便适用于自己的需求。下面会提供源码给大家,我用的开发工具是eclipse,直接导入就可以,jar包也是我已经下载好的,大家可以免积分拿去。本来里面是有2个apk、2个ipa文件提供测试的,但是由于文件太大,上传不了源码,所以就删除了一个最大的ipa包APK jar
Command to package the so file into the apkUse the original code of the android SDK to develop the APK and package the so file into the apk. This can only provide the user with an apk.1. Meaning full-code so packaging.A) create a project and use local calls. The java file is as follows:Package test. jni;Import android. app. Activity;Import android. OS. Bundle;Imp
Android Studio Packaging App The default generated apk name is: app-release.apk, if we want to let the generated apk name with our version of the package name, then we will have to customize the generated apk nameYou need to add the following in the Build.gradle (module:app) file android{}://apk name defAndroid.applica
Android apk Remove signatures and re-sign methods
An important part of Android development is the use of their own key to apk file signature, unsigned apk files are generally not installed, even if the last is also a failure to install.
Online spread of the "Check to allow the installation of unknown sources of application" in fact, and signed no signature does
Anti-compilation tool : Summed up the Linux, Windows, Mac version, put together on the CSDN download;-- CSDN :[Email protected]:~/decompiler$ tree-l 2.├──linux│├──apktool│├──dex2jar-0.0.9.15│└──jd-gui├──mac│├──apk tool│├──dex2jar-0.0.9.15│└──jd-gui-0.3.5.osx.i686.dmg├──windows│├──apktool│├──dex2jar-0.0.9.15│└──jd- gui.exe└── Source └──apktool-source.zip10 directories, 4 filesI. decompile to Java source code1. Introduction of ToolsDex2jar Introducti
In learning the process of Android development you, you tend to learn how other people's application is developed, those beautiful animations and exquisite layout may let you put it down, as a developer, you may want to know how these effects interface is to achieve, at this time, You can then reverse-compile the app's apk. Here is a brief tutorial on some of the articles I've consulted.(Note: Anti-compilation is not to let developers go to an applica
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.