Android anti-compile Odex file

Source: Internet
Author: User

About Android's anti-compilation tool, I believe that everyone is not unfamiliar

such as Apk-tool,dex2jar

Apk-tool to decompile a layout file

Http://code.google.com/p/android-apktool/downloads/list

Dex2jar used to decompile Dex into a. jar Package

:http://code.google.com/p/dex2jar/downloads/list


Generated jar packages can be viewed with Jd-gui (provided the code is not obfuscated)

But if we extract the APK from ROM, we can't decompile the source code.

Because the Android system will extract Dex from the APK to Odex (both executables) in order to speed up the startup time of the built-in application

So that's why we need to convert Odex to Dex before we decompile.

This requires the following four files:

:http://code.google.com/p/smali/downloads/list

However, in the anti-compilation Odex when the source file is not enough, but also rely on the Odex ROM inside the framework, depending on the extent of the situation, the simplest way is to copy all the Odex under the framework.

The following is a red-rice ROM, for example, decompile the phone resource

Shown

Place the dependent Odex file under the system\framework.

Enter Java-jar baksmali-2.0.3.jar-d./system/framework-x phone.dex

The Out folder is generated normally

Re-enter java-jar smali-2.0.3.jar out/-o classes.dex

The Class.dex of the package generation is what we want.

Attached below is a test resource file

http://download.csdn.net/detail/geniuseoe2012/7352757


Heart than action, hurry to try it!


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.