Gyoonus/deoptfuscator

ART: Invalid ELF Header

jaisonerick opened this issue · 1 comments

I'm getting the following error written to .stderr by OTool:

/home/ubuntu/deoptfuscator/android/bin/OTest: error while loading shared libraries: /home/ubuntu/deoptfuscator/android/bin/../lib/libartd.so: invalid ELF header

I tried to run on an Ubuntu 18.04 64 bits machine, and in a docker image (using the Dockerfile provided). I got the same error in both. I'm running launch.sh and the environment variables are being configured in the right way.

Below is an excerpt of how the error appears while running deoptfuscator. That "Error" line, is where the .stderr is written.

I: Using Apktool 2.4.1 on base.apk
I: Copying raw resources...
I: Copying raw classes.dex file...
I: Copying raw classes10.dex file...
I: Copying raw classes11.dex file...
I: Copying raw classes12.dex file...
I: Copying raw classes13.dex file...
I: Copying raw classes14.dex file...
I: Copying raw classes15.dex file...
I: Copying raw classes16.dex file...
I: Copying raw classes2.dex file...
I: Copying raw classes3.dex file...
I: Copying raw classes4.dex file...
I: Copying raw classes5.dex file...
I: Copying raw classes6.dex file...
I: Copying raw classes7.dex file...
I: Copying raw classes8.dex file...
I: Copying raw classes9.dex file...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
I: Copying META-INF/services directory
.apk/classes.dex
Error : .apk/classes.dex
/mydir/tools/redex-all: 1: /mydir/tools/redex-all: version: not found
/mydir/tools/redex-all: 2: /mydir/tools/redex-all: oid: not found
size: '668076952': No such file
$TOOLS/redex-all .apk/const/const.dex -o .apk/const
mv: cannot stat '.apk/const/classes.dex': No such file or directory
.apk/classes10.dex

It's problem with GIT LFS while downloading library.
why don't you redownload [https://github.com/Gyoonus/deoptfuscator/blob/master/android/lib/libartd.so] and run
and check your library is executable.