安卓8.0合并ODEX教程和工具

编译过程:

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

使用方法:

  1. $ bin/vdexExtractor -h
  2.               vdexExtractor ver. 0.4.1
  3.     Anestis Bechtsoudis <anestis@census-labs.com>
  4.   Copyright 2017 – 2018 by CENSUS S.A. All Rights Reserved.
  5. -i, –input=<path>   : input dir (search recursively) or single file
  6. -o, –output=<path>  : output path (default is same as input)
  7. -f, –file-override  : allow output file override if already exists (default: false)
  8. –no-unquicken       : disable unquicken bytecode decompiler (don’t de-odex)
  9. –deps               : dump verified dependencies information
  10. –dis                : enable bytecode disassembler
  11. –ignore-crc-error   : decompiled Dex CRC errors are ignored (see issue #3)
  12. –new-crc=<path>     : text file with extracted Apk or Dex file location checksum(s)
  13. -v, –debug=LEVEL    : log level (0 – FATAL … 4 – DEBUG), default: ‘3’ (INFO)
  14. -l, –log-file=<path>: save disassembler and/or verified dependencies output to log file (default is STDOUT)
  15. -h, –help           : this help

下载地址:

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

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

本文摘自 宅科技极客社区-bbs.zecoki.com

您可能还喜欢...

3 条回复

  1. 大喜说道:

    这里真心不错,每次来都有新收获!

  2. 948说道:

    三天两头过来看一看,每次看完都有新体验!

  3. 罗拉套图说道:

    转眼已到年中,时间过的真快,忙里偷闲,看看博客,散散心!

发表评论

邮箱地址不会被公开。