amirbijani / androguard

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

Androdd.py Uppercase output formats specified in the wiki cause a crash #100

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. androdd.py -i my.apk -o output_dir -f JPG

What is the expected output? What do you see instead?
androdd should exits silently. Instead the following backtrace happens : 

  File "/usr/local/lib/python2.6/dist-packages/androguard-1.5-py2.6.egg/androguard/core/bytecode.py", line 206, in method2format
    getattr(d, "write_" + _format)( output )
AttributeError: 'Dot' object has no attribute 'write_JPG'

What version of the product are you using? On what operating system?
Androdd version 1.9

Please provide any additional information below.

The following line should be replaced:
 getattr(d, "write_" + _format)( output )

For example:
 getattr(d, "write_" + _format.lower())( output )

Original issue reported on code.google.com by i...@consortium-of-pwners.net on 4 Jan 2013 at 8:35

GoogleCodeExporter commented 8 years ago

Original comment by anthony....@gmail.com on 4 Jan 2013 at 4:23

GoogleCodeExporter commented 8 years ago

Original comment by anthony....@gmail.com on 12 Jan 2013 at 8:37