Smali

Description

smali / baksmali is an assembler/disassembler for the dex format used by dalvik, Android’s Java VM implementation. The syntax is loosely based on Jasmin’s/dedexer’s syntax, and supports the full functionality of the dex format (annotations, debug info, line info, etc.)

Usage

Syntax

smali [options] [–] [<smali-file>|folder]*

Options

 -a,--api-level <API_LEVEL>     The numeric api-level of the file to generate,
                                e.g. 14 for ICS. If not specified, it defaults
                                to 15 (ICS).
 -f,--list-fields <FILE>        Lists all the field references to FILE
                                (<output_dex_filename>.fields by default)
 -j,--jobs <NUM_THREADS>        The number of threads to use. Defaults to the
                                number of cores available, up to a maximum of 6
 -m,--list-methods <FILE>       Lists all the method references to FILE
                                (<output_dex_filename>.methods by default)
 -o,--output <FILE>             the name of the dex file that will be written.
                                The default is out.dex
 -t,--list-types <FILE>         Lists all the type references to FILE
                                (<output_dex_filename>.types by default)
 -v,--version                   prints the version then exits
 -X,--experimental              enable experimental opcodes to be assembled,
                                even if they  aren't necessarily supported by
                                the Android runtime yet
 -x,--allow-odex-instructions   allow odex instructions to be compiled into the
                                dex file. Only a few instructions are supported
                                - the ones that can exist in a dead code path
                                and not cause dalvik to reject the class

Example

cyborg@cyborg:~$ smali malifolder -o new.dex
cyborg@cyborg:~$ cat new.dex 
dex╞ßùdndjTHÜ4
0 Comments

Leave a reply

CONTACT US

We're are building as a community and a team. Be a part of it.

Sending

©2017 Ztrela Knowledge Solutions Pvt. Ltd

Log in with your credentials

Forgot your details?