Pay attention to the details of Android decompilation-differentiate between jar packages and androidjar

Source: Internet
Author: User

Pay attention to the details of Android decompilation-differentiate between jar packages and androidjar

After obtaining the apk source code by using the decompilation tool, the next step is to copy the source code to restore the project. But what we get is the jar file. It is important to check the jar file and restore the android project. Next we will record the process of how to analyze the jar file.

 

1. decompile the apk to get the source code.

Here I have explained in detail in a previous blog: android decompilation Analysis

 

2. After obtaining the source code, you must have obtained several key files.

① Android manifest File

② Resource files under Res

③ Jar File

 

3. analyze the key jar File

(The obtained jar file)

At the beginning, I copied the source code of these class files and created the same package name class name in the android project. However, the source code is much larger. We can analyze the data carefully.

The Three Jar files framed in red are obviously different from the general source code files. In fact, they are five imported jar package files. They should be:

Android. annotation

Android. support. v4

Com. google. zxing

De. mindpipe. android. logging. log4j

Org. apache. log4j

 

The real source code is: com. xunlei. remotedownload. The remaining five jar packages are directly downloaded from the internet and then imported in import.

 

The problem is very simple, but I didn't see it clearly at the time. I spent some time adding third-party jar packages that I don't need to read for now, so I wrote a prompt for everyone.

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.