Android project package apk and apk decompile, androidapk

Source: Internet
Author: User

Android project package apk and apk decompile, androidapk
I. general principles and disadvantages of Project Packaging

(1) develop a simple project and release it as an APK file. If we do not use the signature method, find * in the bin directory *. the apk file is very convenient, but when we use it, it may be overwritten and installed by other programs. The specific explanation is as follows:


(2) We have created a new project, such as the testdirectory structure, and mounted the plug-in to the simulator. We have to package the file test.apk.


(3) then, we are looking at the file directory information in the simulator. The installed applications will be installed in the data ---- data --- specific installation folder on the android machine. For example, mine is: com. example. test



Com. example. test Is In The AndroidManifest. xml file under the project directory, so we can modify the file name.


(4) At this point, if you encounter the same installation directory name, it may overwrite our application, causing malicious damage!


Ii. Packaging Method with Digital Signature

(5) Then we need to use the signature method to package our software. The procedure is very simple. Right-click the project --- Android-Tools --- Export Android Application -- and we will not introduce it later! Follow your own needs!


Iii. Implementation Process of apk Decompilation

(6 steps in progress, we have produced a signed APK file test.apk, And then we use the decompression software to decompress it,


Both the decompressed directory and various configuration files are stored, that is, our source files and R classes are missing.

(7) the classes. dex file is the source code compilation under the src directory in our project. The second resources. arsc is the compilation file in our R class.

(8) Now we start decompilation to view the source files and R classes.

(9) preparation tools dex2jar and JD-GUI these two tools online a lot, search download (http://yunpan.cn/cfpRvDD8QJcKi extraction code c156)

(10) Start: copy the classes. dex file to the dex2jar file directory of our tool:



(11) Delete the address in the address bar and press cmd to press enter (in this way, we can directly locate the directory! Or manually find the directory!


(12) execute dex2jar. bat and add the file calsses. dex to be decompiled just now.


(13) then, a jar file will be generated under the dex2jar tool (here, this jar file is only required to use the next tool for the class file)


(14) then drag the generated class_dex2jar.jar file into the second tool JD-GUI and you will see


(15) In addition, we can also click file -- save all sources to generate the source code file. This won't happen, and the rest of the source code is to scrape it with you.

(16) So far, the decompilation of the software has been completed, so that we can easily read others' source code!


Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.