安卓8.0合并ODEX工具

编译过程:

Clone this repository
Install Android NDK if you want to cross-compile for Android devices
Invoke make.sh bash script with desired build target
$ ./make.sh – if CC not defined from env use gcc by default
$ ./make.sh gcc – compile with gcc
$ ./make.sh clang – compile with clang
$ ./make.sh cross-android – cross-compile (armeabi-v7a, arm64-v8a, x86 & x86_64) for Android with NDK
Executables are copied under the bin directory
For debug builds use $ DEBUG=true ./make.sh


使用方法:

$ bin/vdexExtractor -h
vdexExtractor ver. 0.4.1
Anestis Bechtsoudis <anestis@census-labs.com>
Copyright 2017 – 2018 by CENSUS S.A. All Rights Reserved.

-i, –input=<path>   : input dir (search recursively) or single file
-o, –output=<path>  : output path (default is same as input)
-f, –file-override  : allow output file override if already exists (default: false)
–no-unquicken       : disable unquicken bytecode decompiler (don’t de-odex)
–deps               : dump verified dependencies information
–dis                : enable bytecode disassembler
–ignore-crc-error   : decompiled Dex CRC errors are ignored (see issue #3)
–new-crc=<path>     : text file with extracted Apk or Dex file location checksum(s)
-v, –debug=LEVEL    : log level (0 – FATAL … 4 – DEBUG), default: ‘3’ (INFO)
-l, –log-file=<path>: save disassembler and/or verified dependencies output to log file (default is STDOUT)
-h, –help           : this help

下载地址:

隐藏内容: ********, 打赏¥2查看/下载

另外,还有一个方案实现odex以及vdex合并成dex的方案,基于oat2dex baksmali改的,所以是java程序,安装jre即可跑。
实测可以合并成dex,但dex文件明显比vdexExtractor合并出来的小,dex能输出smali,但jadx打不开dex文件

发表评论

邮箱地址不会被公开。 必填项已用*标注