I can't use AnalyzeAPK() any longer with Androlyze 1.6 though it used to work
perfectly well.
This seems to happen on any apk. Strange?
In [2]: a, d, dx = AnalyzeAPK(
'/home/axelle/prog/isemulator/bin/IsEmulator-debug.apk' )
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/home/axelle/softs/androguard/androlyze.py in <module>()
----> 1 a, d, dx = AnalyzeAPK(
'/home/axelle/prog/isemulator/bin/IsEmulator-debug.apk' )
/home/axelle/softs/androguard/androlyze.py in AnalyzeAPK(filename, raw,
decompiler)
111 """
112 androconf.debug("APK ...")
--> 113 a = APK(filename, raw)
114
115 d, dx = AnalyzeDex( a.get_dex(), raw=True, decompiler=decompiler )
/home/axelle/softs/androguard/androguard/core/bytecodes/apk.pyc in
__init__(self, filename, raw, mode, magic_file, zipmodule)
194 self.validAPK = True
195
195
--> 196 self.get_files_types()
197
198 def get_AndroidManifest(self) :
/home/axelle/softs/androguard/androguard/core/bytecodes/apk.pyc in
get_files_types(self)
286 self.files_crc32[ i ] = crc32( buffer )
287 else :
--> 288 m = magic.Magic(magic_file=self.magic_file)
289 for i in self.get_files() :
290 buffer = self.zip.read( i )
TypeError: __init__() got an unexpected keyword argument 'magic_file'
Original issue reported on code.google.com by axelle.a...@gmail.com on 25 Sep 2012 at 2:13
Original issue reported on code.google.com by
axelle.a...@gmail.com
on 25 Sep 2012 at 2:13