also includes the interests of users, to their own reputation will also cause a certain harm! Looking back, let's guess how my app was planted with malicious ads at the beginning of the paragraph. Personally, it is to use the above method to decompile, the already written and generated Smali file into my package, and then in the manifest file configuration, and modify the package name, and finally RePack (to get this result is based on, I have two times packaged
packaging), or by some criminals use, the loss is not their own, The company also includes the interests of users, to their own reputation will also cause a certain harm! Looking back, let's guess how my app was planted with malicious ads at the beginning of the paragraph. Personally, it is to use the above method to decompile, the already written and generated Smali file into my package, and then in the manifest file configuration, and modify the package name, and finally RePack (to get this r
, can not be viewed directly. Second, download APK anti-compilation tool Dex2jar, is to convert the Classes.dex in the apk into a jar fileSpecific steps:(1) Download Dex2jarDex2jar:Http://sourceforge.net/projects/dex2jar/files/?source=navbar(2) To unzip the apk file to get the Classes.dex, which is the Java file compiled and then packaged with the DX tool(3) Navi
1. The integrated APK must confirm whether it is a release version or it will cause the CTS test to fail.Workaround: Decompile The APK, view the Manifest.xml file, and see if A value of True is the debug version. The value is false or not set, which is the release version2, the integrated
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 name, how to do it.We only need to add the Build.gradle (module:ap
When publishing an APK is a burden, you must enter the automation mode.
This article uses ant for compilation, signature, alignment, and release.
1 download sun-java6-jdk
Refer to here for download.
Export java_home =/usr/lib/JVM/Java-6-sun
2. Generate ant build. XML for an existing project
Run the command line to the root directory of the current project and run the following command:
android update proj
in the Ant installation directory.3. Set the ANT environment variable: ant_home, the variable value points to the ant directory.4, increase in the environment variable path:%ant_home%/bin;%ant_home%/lib;5, set up after the verification. Open cmd Input ant-version command The following feedback indicates that the ant installation was successfulThird, configure the packaging projectUnity Export Android proje
offset are valid.
Dependencies and limitations
The optimized Dex contains a list of DEX files it trusts, and adds CRC-32 and modification time. The file list contains the file path under the Dalvik-cache directory and the corresponding SHA-1 signature. However, the timestamp of files on the device cannot be trusted or used. There are also VM version numbers.If the DEX currently depends on is updated, we also need to update the current Dex. If we
Reference-keep public class COM. android. vending. licensing. ilicensingservice-keepclasseswithmembernames class * {native /examples .) Make proguard. CFG works very easily, that is, the default automatically generated in eclipse. add "proguard. config = proguard. cfg. the properties file should be as follows: # This file is automatically generated by Android tools. # Do not modify this file -- your change
Read database + database version updateAttention:A, place the database with the APK released under the/res/raw path under Android engineering.b, when the database file is stored on the phone, the path is/data/data/your package name/databases, and the other path will go wrong.Sqliteopenhelper is inherited when you need to create a new database directly in the proj
(1), get the application package name code/*** Get the version number of the current application * *@return */ PrivateString getversion () {Try{Packagemanager Manager= Getpackagemanager ();//Get package Management ServicePackageInfo Clientinfo =Manager. Getpackageinfo (Getpackagename (),0);//get information about a package returnClientinfo.versionname; } Catch(Exception e) {//TODO auto-generated Catch blockE.printstacktrace (); retur
Download and use Android APK decompilation toolsOverview
Android APK decompilation is an interesting thing. We can perform Chinese-based cracking on APK decompilation.
Android APK decom
One. Anti-compilation apk get Java source codeReprinted from: http://hi.baidu.com/%CB%BF%D4%B5%CC%EC%CF%C2/blog/item/2284e2debafc541e495403ec.htmltool Download : Need to Dex2jar and Jd-gui these 2 toolsDex2jar:http://code.google.com/p/dex2jar/downloads/listJd-gui:Windows Edition Jd-gui:http://java.decompiler.free.fr/?q=jdguiLinux version jd-gui:http://laichao.googlecode.com/files/jd-gui-0.3.2.linux.i686.tar
[Preface]We usually develop Android applicationsProgramGenerally, the integrated development environment of eclipse is used, so the generated APK has the signature permission for the debug version. However, if we want to release an application, if you want to run on a real machine, you need to sign it.
[Tools]Keytool and jarsigner in the Java Development Enviro
1. Download the anti-compilation tool dex2jar and Jd-gui from http://download.csdn.net/detail/dingyuming1991/9618125 (you can also download Google search);2. the APK package to be anti-compilation to the extension zip (apk package is actually a zip package), unzip the zip file;3. In the extracted folder there will be a classes.dex file (binary file of the program), in the download dex2jar and Jd-gui found
(Original article link: Click to open the link)
A few days ago, Google officially published the Android Wear message to trigger a blockbuster in the smart wearable market. Although this ambitious project can only be used on smart watches, Google's goal is already obvious and they will specifically optimize this Android version, use as many wearable devices as pos
Android Studio generates the signed APK
After opening the project, click the project, select the Build menu, and then select Generate Signed APK, as shown in:
Open the generate dialog box:
Select Create new... to generate a new Key. The new Key dialog box is displayed:
First, select the Key storage path.
There may be a BUG. In the pop-up select keystore file
on, are set in fixed parameter format. (Please refer to the examples and comments in The way to make proguard.cfg work is simply to add a "proguard.config=proguard.cfg" to the Eclipse Auto-generated default.properties file.The complete default.properties file should be as follows:[HTML]View Plaincopy
# This file was automatically generated by Android Tools.
# Do not modify the This file--YOUR changes'll be erased!
#
# This file must is chec
Now Android development, generally adopt CS mode, then APK upgrade, naturally need to have server side support. In general, we put the upgraded version and a configuration file that records the upgraded version (in the Jsonarray format in this article) on the server side. When client initializes, if the server side is
following:# This file was used to override default values used by the Ant build system.## This file must being checked in Version contro L Systems, as it is# integral to the build system of your project.# this file is only used by the Ant script.# you can use This to override default values such as# ' Source.dir ' for the location of the your Java source folder and# ' Out.dir ' For the location of your output folder.# your can also use it define h
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.