anestisb / vdexExtractor

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

how can i get a vdexExtractor.exe #17

Closed LiuchengGit closed 6 years ago

LiuchengGit commented 6 years ago

when i use “ ./make.sh gcc - compile with gcc ” in ubuntu,it return some error like -unrecognized command line option std=c11 make*** [dex.o] Error. so,how can i get a vdexExtractor.exe ? i cant comile your source

anestisb commented 6 years ago

Are you looking for Windows cross-compile from a Linux box or a native Windows build?

At any case Windows binaries are not currently supported so someone has to write the corresponding makefiles. I don't think any source code changes will be required.

russel5 commented 6 years ago

use cygwin for compiling .exe on windows. works perfect

bursoft-git commented 6 years ago

vdexExtractor.exe compiled succesfully with cygwin-gcc-core 64-bit but if i compile it with cygwin gcc 32-bit, i got errors

$ ./make.sh gcc make: Entering directory '/cygdrive/c/vdexExtractor/src' rm -f .o rm -f /*.o rm -f vdexExtractor make: Leaving directory '/cygdrive/c/vdexExtractor/src' make: Entering directory '/cygdrive/c/vdexExtractor/src' gcc -c -O2 -std=c11 -D_GNU_SOURCE -Wall -Wextra -Werror -c out_writer.c -o out_writer.o gcc -c -O2 -std=c11 -D_GNU_SOURCE -Wall -Wextra -Werror -c vdex.c -o vdex.o gcc -c -O2 -std=c11 -D_GNU_SOURCE -Wall -Wextra -Werror -c utils.c -o utils.o gcc -c -O2 -std=c11 -D_GNU_SOURCE -Wall -Wextra -Werror -c dex.c -o dex.o gcc -c -O2 -std=c11 -D_GNU_SOURCE -Wall -Wextra -Werror -c dex_instruction.c -o dex_instruction.o gcc -c -O2 -std=c11 -D_GNU_SOURCE -Wall -Wextra -Werror -c vdexExtractor.c -o vdexExtractor.o gcc -c -O2 -std=c11 -D_GNU_SOURCE -Wall -Wextra -Werror -c log.c -o log.o gcc -c -O2 -std=c11 -D_GNU_SOURCE -Wall -Wextra -Werror -c vdex/vdex_010.c -o vdex/vdex_010.o gcc -c -O2 -std=c11 -D_GNU_SOURCE -Wall -Wextra -Werror -c vdex/vdex_backend_010.c -o vdex/vdex_backend_010.o In file included from vdex/vdex_common.h:26:0, from vdex/vdex_010.h:27, from vdex/vdex_backend_010.h:26, from vdex/vdex_backend_010.c:25: vdex/vdex_backend_010.c: In function ‘decodeUint32WithOverflowCheck’: vdex/../common.h:60:13: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] u8 v1 = (u8)(c1); \ ^ vdex/../common.h:68:24: note: in expansion of macro ‘CHECK_IMPL’

define CHECK_LT(a, b) CHECK_IMPL((a), <, (b))

                    ^~~~~~~~~~

vdex/vdex_backend_010.c:62:3: note: in expansion of macro ‘CHECK_LT’ CHECK_LT(*in, end); ^~~~

~ same errors here ~

cc1: all warnings being treated as errors make: *** [Makefile:42: vdex/vdex_backend_010.o] Error 1 make: Leaving directory '/cygdrive/c/vdexExtractor/src' [-] build failed

how can i compile vdexExtractor.exe 32-bit? thanks!

LiuchengGit commented 6 years ago

Hi ,anestisb:

Can you provided your vdexExtractor.exe for android P?

I used a tool (maybe compiled by you src code in the link https://bitbucket.org/superr/superrs-kitchen/downloads/?tab=downloads ## window tool) ,then in the process when i try to extract a dex from the xxx.vdex ,it print as below 🥇

[INFO] Processing 1 file(s) from /tmp/BasicDreams.vdex [ERROR] Unsupported Vdex version [WARNING] Invalid Vdex header - skipping '/tmp/BasicDreams.vdex' [INFO] 0 out of 0 Vdex files have been processed [INFO] 0 Dex files have been extracted in total [INFO] Extracted Dex files are available in '/tmp'

anestisb commented 6 years ago

@bursoft-git the 32bit issue has been fixed in https://github.com/anestisb/vdexExtractor/commit/5504c6dd707a994369f4d7143eed2fb5e073df1a

@LiuchengGit Android P support is still under development (see https://github.com/anestisb/vdexExtractor/issues/11)

whalesplaho commented 6 years ago

Im trying to deodex my services.jar but no success. I couldnt get any help using vdexExtractor, I'm using Windows 10 Pro. I saw dat bursoft fixed the issue in latest version but its paid version. Please any help will be appreciated. Thanks.

anestisb commented 6 years ago

@whalesplaho please open a new issue with the error message if you have issues using the tool. I have no idea what you mean by paid version the tool is open source, just download and compile it.

whalesplaho commented 6 years ago

@anestisb it works bro... Was thinking one have to donate cos theres donate version before it will work!!! Thanks.