Mac Build APK anti-compilation environment [GO]

Source: Internet
Author: User

Apktool

Purpose: Get resource files such as Mainifest.xml res

Download: http://ibotpeaches.github.io/Apktool/install/

Use: Apktool d test.apk


Dex2jar

Purpose: Get the project source jar package

Download: Https://github.com/pxb1988/dex2jar

Usage:

1. Unzip apk to get Classes.dex file

2, through the command./dex2jar-2.0/d2j-dex2jar.sh classes.dex to generate a Class.jar package that can be viewed with the Jd-gui tool

Note: After extracting the Dex2jar.zip file, you need to modify the executable file properties

chmod +x d2j-dex2jar.sh d2j_invoke.sh


Jd-gui

Purpose: View. Jar package Source Code tool

Download: http://jd.benow.ca/


Attached: Anti-compilation apk batch File

Directory structure:

[OBJC]View PlainCopy
    1. Apktool Src_dex2jar-2.0.zip
    2. Apktool.jar Test
    3. Decode-apk.sh Test-dex2jar.jar
    4. Dex2jar test.apk
    5. Jd-gui-0.3.5.osx.i686.dmg

decode-apk.sh file, using the./decode-apk.sh test.apk

[JavaScript]View PlainCopy
  1. Echo starts to decompile [email protected]
  2. [Email protected]
  3. filepath=${fullpath% '. apk '}
  4. Echo begins extracting resource files ...
  5. Apktool d [email protected]
  6. #java-xmx512m-djava.awt.headless=true-jar apktools/apktool.jar-f d-o "${filepath}" [Email protected]
  7. Echo begins to decompress classes.dex ...
  8. Unzip-od "${filepath}" [Email protected] Classes.dex
  9. Echo starts to decompile Classes.dex for Classes_dex2jar.jar ...
  10. Dex2jar/d2j-dex2jar.sh "${filepath}/classes.dex"-f-o "${filepath}/classes.jar"
  11. Echo Congratulations, anti-compilation complete, please go to ${filepath} directory to view




Reference:

Http://www.bkjia.com/Androidjc/938414.html

http://blog.csdn.net/ttdevs/article/details/42297905

Mac Build APK anti-compilation environment [GO]

Related Article

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.