Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the tools and methods for decompiling classes.dex

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article will share with you about the tools and methods of decompiling classes.dex. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Dex is a file format in Android systems that can be run directly on a Dalvik virtual machine. The java source code is converted into Dex files after complex compilation by ADT, which is a step-by-step optimization process. The instruction code of the Dex file is a set of instructions proprietary to the Dalvik virtual machine, which is specially optimized for the embedded system. Compared with the standard java .class file, it is smaller and more efficient. Pure hand fight!

Tools and methods for decompiling classes.dex

Two tools, baksmali.jar and smali.jar, are required. The computer needs to be configured with a java environment.

Smali,Baksmali refers to the assembler and disassembler of .dex format files used by the Java Virtual Machine (Dalvik) in Android.

You can download it here or download the attachment to this post: http://code.google.com/p/smali/downloads/list

Method: if you put the downloaded baksmali.jar and smali.jar in the F disk dry directory, please copy this code to notepad and save as decompiled .bat [Note: the compiled / decompiled bat file is included in the attachment to this post, you can omit this step]

[url=home.php?mod=space&uid=31513] @ echo[ / url] off

F:

Java-jar baksmali.jar classes.dex

Copy the code

Then copy and save the following code as a compiler. bat

@ echo off

F:

Cd f:

Java-jar smali.jar out

Copy the code

Then you put the classes.dex that needs to be decompiled into the root directory of F disk, and click decompile .bat. You will see a pop-up DOS window, which automatically closes after a few seconds and generates an out file under the F disk. There are a lot of .smali text files, in which the non-standard resources we want to Sinicize are hidden. After you modify the translation, click compile .bat. Wait a moment, the new compiled file out.dex will be generated in the root directory of F disk. You can rename it to classes.dex, package it into apk, and sign it.

Thank you for reading! This is the end of this article on "what are the tools and methods for decompiling classes.dex?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report