1. Dex vs. jar Decompile

Source: Internet
Author: User


Java source Code
Hello {
public int foo (int a,int b) {
(A + B) * (a);
}

public static void Main (string[] argc) {
Hello hello = new Hello ();
System.out.println (Hello.foo (5,3));
}
}

Compiling Java files: Javac Hello.java
Convert class file to Dex file dx--dex--output=hello.dex hello.class
View Java Anti-compilation code javap-c-classpath. Hello


Use Dexdump to view the Dex decompile code, or you can use other tools to view the tool as a tool under the Android SDK, which is an open source dexdump-d hello.dex

If the DX tool version in the SDK is too low, you can weaken the target version of the Javac compilation, such as: Javac-source 1.6-target 1.6 Hello.java




From for notes (Wiz)

1. Dex vs. jar Decompile

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.