poliva/random-scripts — pull request #1 by anestisb (2014-07-15 10:10:29+00:00)
Title: Add multi-dex dump support

Thought you find that useful.

With a little more crafting you can extract the original filenames as well from OAT. :)

anestisb@deephole:[AndroScriptoVault]: ./oat2dex.sh system@framework@boot.oat
[+] Multiple DEX headers found at addresses:
0x0000e3bc
0x002cc5b4
0x0030d5f8
0x00351ed4
0x00357e64
0x004587ac
0x005a028c
0x00e0c138
0x00f71f34
0x0108f234
0x010b47ac
0x010d1500
0x01109f20
0x01412db8
0x0153db8c
[+] Dex file size: 2875896 bytes
[+] Dex file dumped to: system@framework@boot.oat.0x0000e3bc.dex
[+] Dex file size: 266308 bytes
[+] Dex file dumped to: system@framework@boot.oat.0x002cc5b4.dex
[+] Dex file size: 280796 bytes
[+] Dex file dumped to: system@framework@boot.oat.0x0030d5f8.dex
[+] Dex file size: 24464 bytes
[+] Dex file dumped to: system@framework@boot.oat.0x00351ed4.dex
[+] Dex file size: 1050952 bytes
[+] Dex file dumped to: system@framework@boot.oat.0x00357e64.dex
[+] Dex file size: 1342176 bytes
[+] Dex file dumped to: system@framework@boot.oat.0x004587ac.dex
[+] Dex file size: 8830636 bytes
[+] Dex file dumped to: system@framework@boot.oat.0x005a028c.dex
[+] Dex file size: 1465852 bytes
[+] Dex file dumped to: system@framework@boot.oat.0x00e0c138.dex
[+] Dex file size: 1168128 bytes
[+] Dex file dumped to: system@framework@boot.oat.0x00f71f34.dex
[+] Dex file size: 152952 bytes
[+] Dex file dumped to: system@framework@boot.oat.0x0108f234.dex
[+] Dex file size: 118100 bytes
[+] Dex file dumped to: system@framework@boot.oat.0x010b47ac.dex
[+] Dex file size: 231968 bytes
[+] Dex file dumped to: system@framework@boot.oat.0x010d1500.dex
[+] Dex file size: 3182232 bytes
[+] Dex file dumped to: system@framework@boot.oat.0x01109f20.dex
[+] Dex file size: 1224148 bytes
[+] Dex file dumped to: system@framework@boot.oat.0x01412db8.dex
[+] Dex file size: 737152 bytes
[+] Dex file dumped to: system@framework@boot.oat.0x0153db8c.dex