android odex版本调试_[ROM开发工具]Android 8.0 9.0合并ODEX工具

本文介绍了如何编译和使用一个名为vdexExtractor的工具,用于Android设备的ODEX版本调试。通过执行不同编译选项的make.sh脚本,可以为不同平台生成可执行文件。该工具支持从目录或单个文件中提取vdex,并提供多种选项,如跳过de-odexing、输出依赖信息等。此外,还提到了一个基于oat2dex和baksmali的Java程序,可用于将odex和vdex合并成dex文件,但生成的dex文件可能无法被某些反编译工具打开。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

编译过程:

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

Copyright 2017 - 2018 by CENSUS S.A. All Rights Reserved.

-i, --input= : input dir (search recursively) or single file

-o, --output= : 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= : 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=: save disassembler and/or verified dependencies output to log file (default is STDOUT)

-h, --help : this help

另外,还有一个方案实现odex以及vdex合并成dex的方案,基于oat2dex baksmali改的,所以是java程序,安装jre即可跑。

实测可以合并成dex,但dex文件明显比vdexExtractor合并出来的小,dex能输出smali,但jadx打不开dex文件

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值