Preface
Android dynamic loading (bottom) -- load the classes and resources in the installed APK.
StatementWelcome to repost, but please keep the original source of the article :) blog Park: http://www.cnblogs.com farmer UNCLE: http://over140.cnblogs.com
Android Chinese Wiki: http://wikidroid.sinaapp.com
Body
I. Objectives
Note that the called
Body
I. Objectives
Note that the called APK has been installed in the Android system.
Previous Article: Android app development enhancement series (4) -- Android dynamic loading (on) -- loading classes in APK Not Installed
Call another installed
anyway, even with errors. You will haveFix them manually before building.B [uild] [opts] [Build an APK from already decoded application located in It will automatically detect, whether files was changed and performNeeded steps only.If you omit If you omit Will be used.Opts:-F, -- force-allSkip changes detection and build all files.-D, -- debugBuild in debug mode. Check project page for more info.If | install-framework Install framework file to your s
://code.google.com/p/android-apktool/downloads/list ;files that need to be downloaded :-- Apktool jar package : apktool1.5.2.tar.bz2-- apktool boot tool (Linux) : apktool-install-linux-r05-ibot.tar.bz2-- apktool boot tool (MAC) : apktool-install-macosx-r05-ibot.tar.bz2-- apktool boot tool (wondows) : apktool-install-windows-r05-ibot.tar.bz22. Anti-compilationto place the downloaded file in a file :decompile : Put the
res folder contains the resource files used by the apk. They are all stored intact. We can extract them directly and read and modify the string file directly during Chinese conversion.
The AndroidManifest. xml file is a compiled configuration file used to declare the activity, service, and permissions contained in the program. Resources. arsc is a compiled resource description file, and the main concern is
the description is successful, you find that you have more than one test file under the folder and click to view all the resource files for that app.Open the resource file, you can see that there are res and Smali folder, res folder is placed in pictures and XML and other file resources, Smali inside the code, files are. smali format, inconvenient to read.If you want to repackage the anti-compiled files in
correct:Method 1: the android Development Network prompts that these problems are mainly caused by resource files. for Android development, check the files in the res folder one by one. This problem can be solved by upgrading the JDK and JRE versions of the system.Method 2: this is because the debug signature is implemented for the
Development Network prompts that these problems are mainly caused by resource files. for android development, check the files in the res folder one by one. This problem can be solved by upgrading the JDK and JRE versions of the system.Method 2: this is because the debug signature is implemented for the apk by default, so you cannot create a new signature. In thi
apk file Enter file changebackgroundwidget.apk here, eventually generate changebackgroundwidget_signed.apk for Android signed apk execution fileEnter the following command line:
Jarsigner-verbose-keystore Changebackgroundwidget.keystore-signedjar changebackgroundwidget_signed.apk changebackgroundwidget.apk Changebackgroundwidget.keystore
The abov
Learn and develop Android apps for a while, write a blog today summarizing Android apk file decompile. We know that after Android app development is complete, we will eventually package the app into an apk file and then let the user download it from the phone or tablet to in
Learn and develop Android apps for a while, write a blog today summarizing Android apk file decompile. We know that after Android app development is complete, we will eventually package the app into an apk file and then let the user download it from the phone or tablet to in
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 arti
is a Java bytecode file generated after Java source code compilation. Dex is the full name of Dalvik VM executes, that is, the android Dalvik execution program, not the Java me bytecode but the Dalvik bytecode.• Resources. ARSCThe compiled binary resource file.• META-INF catalogThe META-INF directory stores signature information to ensure the integrity of the APK package and system security. When eclipse c
of the system. Applications that are not signed are not recognized by the system and cannot be installed on the phone. When the APK is packaged, the Android SDK will save complete information about all the files in the APK, so that the app will be checked for integrity during installation, ensuring that the APK files
Installation Process: copy the APK installation package to the data/APP directory, decompress and scan the installation package, and save the DEX file (Dalvik bytecode) to the Dalvik-cache directory, and create the corresponding application data directory under the Data/data directory.
Uninstall process: delete the files and directories created under the preceding three directories during installation.
Android
", "Hello, from upper layer information ");To. setclassname (pkgname, clsname );To. setflags (intent. flag_activity_new_task );Startactivity ();
4. ToolsInstallutils. Java public static Boolean isapkinstalled (context, final string pkgname ){Try {Context. getpackagemanager (). getpackageinfo (pkgname, 0 );Return true;} Catch (namenotfoundexception e ){// E. printstacktrace ();}Return false;
5. Set the portal class of the installed program androidmanifest. XML:NoThe application will appear on the
1. Generate the android APK package signature certificate1) switch to the JDK bin directory in DocCd c: \ Program Files \ Java \ jdk1.6.0 _ 18 \ bin2) run the following commandKeytool-genkey-alias android123.keystore-keyalg RSA-validity 20000-keystore android123.keystore/* Explanation: keytool is a built-in certificate tool of Java JDK.-Genkey parameter: generate a certificate (security certificate for copy
Parse_failed_no_certificates]Others have encountered this problem: as the brother said,JDK1.7 Signature APK Exception http://blog.csdn.net/sgz_china/article/details/8060315The wrong signature is:C:\>jarsigner -verbose -keystore mydevel.keystore-storepass mydevel test.apk devel is adding: meta-inf/ DEVEL. SF is adding: meta-inf/devel. DSA is signing: Res/layout/main.xml is signing: Androidmanifest.x
The android.apk file is actually a zip file that can be opened directly with WinRAR.
As shown in:
Includes a META-INF directory
A res directory
An androidmanifest. xml
A classes. Dex
Androidmanifest. XML must be defined and contained by each application. It describes the application name, version, permission, referenced library file, and other information. For example, to upload an APK to Google market,
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.