首页
社区
课程
招聘
[分享]baksmali 参数使用说明
发表于: 2016-8-11 11:24 4846

[分享]baksmali 参数使用说明

2016-8-11 11:24
4846
baksmali

-a,--api-level <API_LEVEL>

The numeric api-level of the file being disassembled. If notspecified, it defaults to 15 (ICS).
设置解析的api 不设默认15.

-b,--no-debug-info

don't write out debug info (.local,.param, .line, etc.)
不写调试信息。

-c,--bootclasspath <BOOTCLASSPATH>

A colon-separated list of bootclasspath jar/oat files to use for analysis. Add an initial colon  to specify that the jars/oats should be appended to the default bootclasspath instead of replacing it
设置bootclasspath 变量。

-d,--bootclasspath-dir <DIR>

the base folder to look for the
bootclasspath files in. Defaults to
the current directory
bootclasspath 默认当前目录寻找。

-e,--dex-file <DEX_FILE>

looks for dex file named DEX_FILE, defaults to classes.dex
查找dex文件,默认为class.dex.

-f,--code-offsets

add comments to the disassembly containing the code offset for each address
为反编译内容添加偏移地址。

-i,--resource-id-files <FILES>

the resource ID files to use, for
analysis. A colon-separated list of
prefix=file pairs.  For example
R=res/values/public.xml:android.R=$A
NDROID_HOME/platforms/android-19/dat
a/res/values/public.xml

设置使用的资源文件。

-j,--jobs <NUM_THREADS>

The number of threads to use.
Defaults to the number of cores
available, up to a maximum of 6
设置线程数量,最多为6.

-k,--check-package-private-access

When deodexing, use the
package-private access check when
calculating vtable indexes. It
should only be needed for 4.2.0
odexes. The functionality was
reverted for 4.2.1.

-l,--use-locals

output the .locals directive with
the number of non-parameter
registers, rather than the .register
directive with the total number of
register
输出本地无参寄存器数量

-m,--no-accessor-comments

don't output helper comments for
synthetic accessors
不输出帮助注释

-n,--normalize-virtual-methods

Normalize virtual method references
to the reference the base method.
规范的虚拟方法引用

-o,--output <DIR>

the directory where the disassembled
files will be placed. The default is
out
输出文件

-p,--no-parameter-registers

use the v<n> syntax instead of the
p<n> syntax for registers mapped to
method parameters
使用v<n>语法

-r,--register-info <REGISTER_INFO_TYPES>

print the specificed type(s) of register information for each instruction. "ARGS,DEST" is the default if no types are specified.Valid values are: ALL: all pre- and post-instruction registers. ALLPRE: all pre-instruction registers ALLPOST: all post-instruction registers ARGS: any pre-instruction registers used as arguments to the instruction DEST: the post-instruction destination register, if any MERGE: Any pre-instruction register has been merged from more than 1 different post-instruction register from its predecessors FULLMERGE: For each register that would be printed by MERGE, also show the incoming register types that were merged
打印的特定类型

-s,--sequential-labels

create label names using a
sequential numbering scheme per
label type, rather than using the
bytecode address
创建标签名称使用

-t,--implicit-references

Use implicit (type-less) method and
field references
使用隐式方式和引用

-v,--version
显示版本号

-x,--deodex

deodex the given odex file. This
option is ignored if the input file
is not an odex file
编译odex2dex

-X,--experimental

enable experimental opcodes to be
disassembled, even if they aren't
necessarily supported in the Android
runtime yet
使实验操作码分解,即使他们不一定支持Android运行

[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)

收藏
免费 0
支持
分享
最新回复 (0)
游客
登录 | 注册 方可回帖
返回
//