anestisb / vdexExtractor

Tool to decompile & extract Android Dex bytecode from Vdex files
Apache License 2.0
1k stars 215 forks source link

Deodexing Android Q support #51

Closed ingbrzy closed 4 years ago

ingbrzy commented 5 years ago

There is an error when deodexing apk from Android Q..

[ERROR] Unsupported Vdex version [WARNING] Invalid Vdex header - skipping

example Q apk Bluetooth_Q.zip

ingbrzy commented 5 years ago

vdex version is vdex021

IgorEisberg commented 5 years ago

Some more examples with DEX section (same version 002) from a Pixel 3 XL ROM. https://www.mediafire.com/file/cdx1f4j621whxzt/crosshatch-qpp5.190530.014.zip/file Note: The good thing is that it seems most (all?) APKs and JARs on Android Q already have their original classes.dex files, along with .vdex files (most of them don't have a DEX section). If using 019 method for 021, this is the output error:

[INFO] Processing 1 file(s) from MobileFeliCaMenuApp.vdex [ERROR] Verifier dependencies section points past the end of file (ae38931c + 65c > 165d8) [ERROR] Malformed Vdex file [ERROR] Failed to process Dex files - skipping 'MobileFeliCaMenuApp.vdex'

mooseIre commented 5 years ago

I had the same problem when I deal MI9 AndroidQ . Error:Unsupported Vdex version.vdex version is 021 but i can remove all oat except framework/arm &framework/arm64.

get rom: http://hugeota.d.miui.com/9.7.11/miui_CEPHEUS_9.7.11_50e56ce0f7_10.0.zip

IgorEisberg commented 5 years ago

I had the same problem when I deal MI9 AndroidQ . Error:Unsupported Vdex version.vdex version is 021 but i can remove all oat except framework/arm &framework/arm64.

get rom: http://hugeota.d.miui.com/9.7.11/miui_CEPHEUS_9.7.11_50e56ce0f7_10.0.zip

Already made a solution for us ROM makers: https://github.com/anestisb/vdexExtractor/pull/52

Although, it seems that APKs in Android Q ROMs all have their classes*.dex files already, but it's uncertain whether it will be the same with the final release of Android Q.

mooseIre commented 5 years ago

solution

I had used it , but always fail . it can not extract dex from 021vdex, but it didn't show 'Unsupported Vdex version'

IgorEisberg commented 5 years ago

solution

I had used it , but always fail . it can not extract dex from 021vdex, but it didn't show 'Unsupported Vdex version'

Most vdex files on that ROM don't have a DEX section, means no dex files to extract. The only vdex files with a DEX section in that ROM are:

mab.vdex SogouInput.vdex SystemHelper.vdex UPTsmService.vdex WebViewGoogle.vdex

Try one of them.

mooseIre commented 5 years ago

solution

I had used it , but always fail . it can not extract dex from 021vdex, but it didn't show 'Unsupported Vdex version'

Most vdex files on that ROM don't have a DEX section, means no dex files to extract. The only vdex files with a DEX section in that ROM are:

mab.vdex SogouInput.vdex SystemHelper.vdex UPTsmService.vdex WebViewGoogle.vdex

Try one of them.

thanks ,I get it.

anestisb commented 4 years ago

Hopefully will start working Android 10 support this weekend.

vagyula1 commented 4 years ago

Any news?

anestisb commented 4 years ago

Android 10 support implemented.

mooseIre commented 4 years ago

thanks

在 2019年12月30日,20:56,Anestis Bechtsoudis notifications@github.com 写道:

 Android 10 support implemented.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

shuidixu commented 4 years ago

Hi

It looks like your tool doesn't work on Android 10 with Samsung

[WARN]: Skipping 'vsimmanager' since no decompiled resources found
[WARN]: Skipping 'wifi-service' since no decompiled resources found
[INFO]: 0 binaries have been successfully deodexed

do you have any idea why it happened? Or how to fix this?

anestisb commented 4 years ago

@shuidixu please raise a different issue and share app samples if you have issues with the tool.

codingpoem commented 3 years ago

[WARN]: Skipping 'boot-okhttp' since no decompiled resources found [WARN]: Skipping 'boot-framework' since no decompiled resources found

please help me to analyse the warn

get vdex: https://hifun.lanzous.com/iM7kDh1renc