> For the complete documentation index, see [llms.txt](https://0xdecaf2bad.gitbook.io/red-team-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://0xdecaf2bad.gitbook.io/red-team-notes/84-mobile/smali_and_baksmali.md).

# smali\_and\_baksmali

SMALI AND BAKSMALI Smali and Baksmali are programs that are considered assemblers and disassemblers.

These programs will turn bytecode, which is almost unreadable into assembly code - Which is more human readable.

## Baksmali

Now lets take a look on how to turn a .dex file into a

java -jar baksmali-2.1.1.jar&#x20;

After running this command, the output results will be placed into a directory called out.

In the out folder, there will be files called  Open one of these files and you will see some code that is somewhat readable and similar to Java.

## Smali

This program is the opposite of Baksmali, this program will take smali code, and create a .dex file.

here is the command

java -jar smali-2.1.1.jar source-directory-containing-smali-code/
