First, build the environment 1. Installing the JDK and Android SDK 2. Configure Environment variablesD:\android-sdk-windows\toolsC:\Program Files\java\jdk1.6.0_20\bin3. Example InformationProject directory: D:\ProjectDemoSDK Directory: D:\android-sdk-windows\platforms\android-8\Second, the command line to compile the
Address: http://www.eoeandroid.com/thread-25121-1-1.html
Today, I have developed a tool for packaging APK. I will share with you the example and upload it as an attachment for your reference. I hope this will help you.The attachment contains two bat batch processing files. I will explain the commands here and share them with you.Content of the createdex. BAT file:Aapt package-m-J Src-M androidmanifest. XML-s res
(Packagemanager.no_permission_package_list[index])! =-1) {+ Return packagemanager.install_failed_invalid_apk;+ }+ }+ res = Minstaller.install (packagename, UID, UID, seinfo);if (Res return res;}After scanning to the appropriate package name, a for loop and a disabled third-party package name are compared, if it contains a list of third-party disabled arr
in the META-INFO is interlocking, so as to ensure the security of the Android program. (It only prevents the developer's program from being modified by attackers. If the developer's public/private key pair is obtained by the attacker or the developer develops an attack program, the Android system cannot detect it .)Res (Various XML resource files)-- Drawable-- L
Company Yun-Dimensional asked me how to install the simulator on Windows, I you say you install simulator what? He said, "I install the simulator to view the app's package name for this information to do statistics."
I immediately thought, it is necessary to toss it?
And I loaded him with the Android SDK to get all the APK information by executing the command build-tools the Aapt.exe file below.
AAPT com
Decompiled smali by http://jf.andblogs.net/google:Smali/baksmali is an attacker/discycler for the dex format used by dalvik, Android's Java VM implementation. the syntax is loosely based on Jasmin's/dedexer's syntax, and supports the full functionality of the dex format (annotations, debug info, line info, etc .)The names "smali" and "baksmali" are the Icelandic equivalents of "Cycler" and "discycler" respectively. Why Icelandic you ask? Because dalvik was named for an Icelandic fishing village.
While learning how to program, it is inevitable to turn to reverse engineering, to learn the way that how others solve problem. there is no exception when learning development on Android platform. here we talk about three mainMethods to decompile an APK file.Android-apktool
Where to get:
1.Official Website
How to use:
Dowload the apktool.bz2 and decompress it with Bzip2 (might be other f
(Return if it is the same as the keystore secret): Rebind to the new password:
[Signature process]Token)
C: \ Documents and Settings \ f10000040 \ Desktop \ blog post> jarsigner-verbose-keystore Carey. keystore-signedjar HomeIP2-signed.apk HomeIP2-unsigned.apk Carey. keystoreEnter passphrase for keystore: Adding: META-INF/manifest. MFAdding: META-INF/carey_ke.sfAdding: META-INF/carey_ke.rsaSigning: Res/anim/fade_in.xmlSigning:
-language javascript
Basically. You can open create_project.py to view the source code, which contains the example of creation. You can also save the following code to txt, change the suffix to bat, and double-click it to run it, but in essence it still runs create_project.py.
@ Echo off set/p projectName = enter the project name (for example, test ): if "% projectName %" = "" goto inputError set/p packageName = enter the project package name (for example, org. cocos2dx. test): if "% packageNam
file to ensure the integrity of the package
Res folder is the APK to use the resource files, are preserved intact, we can directly extract, do the Chinese can read the string file directly and then modify
The Androidmanifest.xml file is a compiled configuration file that declares the Activity,service contained in the program and the capabilities of the program, that is, permissions. RESOURCES.ARSC is a c
This article from the CSDN blog, reproduced please indicate the source: http://blog.csdn.net/yili_xie/archive/2009/11/12/4803565.aspx
The pictures in Android apk are divided into 2D and 3D: 2D is implemented by Skia, that is, the SGL we see on the Framework diagram, SGL also calls some opengl content to achieve simple 3D effects. The 3D content is implemented by OpenGL | ES, and OpenGL | ES is an embedded
This text is mainly for Mac notebook anti-compilation apk tutorial, are the latest, the first need to list the tools:Apktool Dex2jar Jd-jui is the main 3 tools. Apktool function: Mainly used to decompile the XML file below Res. Dex2jar function: Mainly used to decompile apk view source code. Jd-jui function: View the Dex2jar back-compiled jar file. If the
there is a manifestplaceholders parameter, which is actually a few parameter variables and values, here the parameters can be used in the way of ${name} in Androidmanifest.xml. Originally wanted in the androidmanifest in the manifest node will be the package to parameterize to achieve the purpose of playing different packages name of the APK, that is:Manifestxmlns:android= "Http://schemas.android.com/apk/
APKYesandroidThe abbreviation of package, that isAndroid installation package. SetDirectly upload the APK FileAndroidSimulator or androidYou can install it on your phone. APKThe file is actually a zip file.Format, but the suffix is changed to APK, In WindowsYou can use WinRARAnd so on.
After the APK is decompressed, you can see the following directory structure:
Android plug-in (3) Loading Resource Resources in the plug-in apkHow can I load resource files not installed in apk? From android. content. res. assetManager. java source code shows that it has a private method addAssetPath. You only need to pass in the apk path as a paramet
This article briefly introduces how to use the ant script Android project to compile and package it into an APK file and install it on your mobile phone.
Main steps:
1. Generate the R. Java file: Use ant and command line to generate R. Java using the aapt. Ext program provided by Android SDK.2. Generate the. aidl file. Java class file: Use ant and the command lin
Android Basics Beginner Tutorial--1.10 anti-compilation apk wins replacement code Resourcestags (space delimited): Android Basics Beginner TutorialIntroduction to this section:
"Anti-compilation apk". It looks as if it's a very high-end look, in fact, it's through some anti-compilation software. Decompile our
let's talk about APK's anti-compilation process in detail today, but I haven't been completely clear about it before. First, the preparatory workThe first thing to do is to prepare three tools for anti-compilation. All three tools can be downloaded by Baidu. Is the three tools shown.These three tools have their respective functions:(1) The Apktool tool is used to decompile the files under Res in the APK, i.
JavaScriptBasic can. You can open create_project.py to view the source code, there are examples of the creation. You can also save the following code to txt, suffix to bat, double-click Run, but the essence is to execute create_project.py.@echo off set/p projectname= Enter the project name (for example: test): if "%projectname%" = = "goto inputerror set/p packagename= Please enter the project package name (for example: org.cocos2dx.test): if "%packagename%" = = "goto
Classes.dex in the apk into a jar file.Jd-gui: The Anti-compilation tool allows you to view the source code of the jar package directly.Apktool: The anti-compilation tool can be viewed directly by deserializing the APK in the XML file.Apktool-install-windows-r05-ibot: Secondary Windows Batch processing tool.:Dex2jar:http://code.google.com/p/dex2jar/downloads/listJd-gui:http://code.google.com/p/innlab/downl
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.