查了下帮助发现有个 -r参数:
-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
于是,我使用命令
java -jar baksmali.jar -r ALL -o smali/ classes.dex