I will not write android, this is my first to crack android example, time-consuming close to the day, I hope the great God do not laughed at!
This program for commercial software, inconvenient to publish APK program.
Do not send me a message, I do not return, there is a problem, direct replies can be.
Preparatory work
Before you begin, the following preparations are made:
(1) Install the JDK, as for the version, choose it, at present I am using JDK1.6 version , can go to the official website to download the installation, and environmental configuration;
(2) Install simulator, APK software to run the test, the need for the environment, simulator is a good thing, I use the hippocampus play simulator , do not know the line does not work;
(3) apk editor download, now I am still the tool party, can only rely on tools, I use the apk change the reason , I do not know why to take such a name.
As for, the three software, which version of the most with each other, and now I do not know, can only be summed up in the learning process later found.
Limit test
Now get to the point, in view, compile the APK, you have to let the original program run on the emulator, on the one hand, you can check whether the apk file is valid, I have a lot of small partners often take the problem of the data there to test, in order to inexplicable mistakes Baidu is rotten; The following is logged in with the default account, and then the "This hardware device is not authorized!" appears. "Error message. In fact, this software needs to place a LIC license file in the root directory, but we do not have this Lic license file ...
Anti-Compiler program
The APK program loaded into the APK change version 3.2, the following error, decisively changed 2.5 version, the successful anti-compilation.
Note that the file name cannot be in Chinese, otherwise it cannot be properly deserialized.
Search Key
Here is the main interface, the left tree is the project file, the middle is the main view form, the middle of the following is the Log window, the right is the search panel. Now I have to search our important clue. "This hardware device is not authorized", no results found in the search panel on the right! Caught in the deadlock ..., notice that the code here is not Java code, but a language called Smali, not so good understanding, because jump more, a bit of a headache! To understand and modify the code, the syntax can refer to the link at the end of the article.
But later found that the string in the Smali is Unicode encoding, so, copied a paragraph can be converted into Chinese characters.
Later found that you can see the Java source code, open any *.smali file, the editing toolbar, open the Java source code can be used, in this can be done in Chinese search, now found the key position.
Analyze code
Because the code is very troublesome, so do not analyze how to specifically modify the Smali code, the following is the Java source, mainly to determine the I value, in the Smali syntax, If-nez is not equal to the 0......,IF-EQZ representation equals 0 ...
Compiling the program
After the modification is complete, save, the menu bar "compile"-"compile build", you can compile the build program.
If the signature is unsuccessful, the menu bar "Tools"-"Configuration and Options", modify the signature tool for Jarsigner attempt.
Run Tests
Install the test on the simulator and, if successful, get it on the tablet for field testing. Of course, do not look at this article in a single write, in the simulation of the test, more than two times, several attempts, always success!
?
Reference:
Smali Grammar Learning and Dex file Description: http://www.apkbus.com/android-181396-1-1.html
Android apk anti-compilation Basics: http://www.jb51.net/softjc/119036.html
APK disassembly Smali Syntax: http://bbs.pediy.com/showthread.php?p=1117963
APK change manager (apk IDE) Use FAQ: http://bbs.angeeks.com/thread-2617106-1-1.html
Android cracked Lic file encryption Program (first)