IOsipov / androguard

Automatically exported from code.google.com/p/androguard
Apache License 2.0
0 stars 0 forks source link

dex2jar output #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
dex2jar output is located in the same directory of the running process.
so decompiler.py fails to locate the jar file created.
Probably this code should be added:
        tmpfilename = os.path.basename(fdname) + "_dex2jar.jar"
        import shutil
        try :
            if os.os.path.exists(tmpfilename) :
                shutil.move(tmpfilename, pathtmp)
        except Exception, e:
                print "Failed to move file %s. Exception %s" %(tmpfilename, e)
                os.remove(tmpfilename) 

The idea is: if jar file exists, then mv into tmp dir, so the unzip works 
correctly.

Original issue reported on code.google.com by liadalex82@gmail.com on 17 Apr 2012 at 3:27

GoogleCodeExporter commented 9 years ago
where is your dex2jar install ?

Original comment by anthony....@gmail.com on 18 Apr 2012 at 1:00

GoogleCodeExporter commented 9 years ago
it was under my home...now moved under decompiler

Original comment by liadalex82@gmail.com on 18 Apr 2012 at 1:59

GoogleCodeExporter commented 9 years ago

Original comment by anthony....@gmail.com on 20 May 2012 at 9:19