maaaaz / androwarn

Yet another static code analyzer for malicious Android applications
GNU Lesser General Public License v3.0
473 stars 159 forks source link

AttributeError: 'MethodAnalysis' object has no attribute 'get_code' #33

Open sivaK003 opened 2 years ago

sivaK003 commented 2 years ago

[+] Androwarn version 1.6

[+] Loading the APK file... Requested API level 31 is larger than maximum we have, returning API level 28 instead. Traceback (most recent call last): File "/home/shan/.local/bin/androwarn", line 8, in sys.exit(main()) File "/home/shan/.local/lib/python3.8/site-packages/androwarn/androwarn.py", line 86, in main data = perform_analysis(options.input, a, d, x, options.with_playstore_lookup) File "/home/shan/.local/lib/python3.8/site-packages/androwarn/warn/analysis/analysis.py", line 65, in perform_analysis ( 'device_settings_harvesting', gather_device_settings_harvesting(x) ), File "/home/shan/.local/lib/python3.8/site-packages/androwarn/warn/search/malicious_behaviours/device_settings.py", line 102, in gather_device_settings_harvesting result.extend( detect_log(x) ) File "/home/shan/.local/lib/python3.8/site-packages/androwarn/warn/search/malicious_behaviours/device_settings.py", line 44, in detect_log for registers in data_flow_analysis(structural_analysis_results, x): File "/home/shan/.local/lib/python3.8/site-packages/androwarn/warn/core/core.py", line 412, in data_flow_analysis registers = backtrace_registers_before_call(x, parent_method, calling_offset) File "/home/shan/.local/lib/python3.8/site-packages/androwarn/warn/core/core.py", line 214, in backtrace_registers_before_call bc = method.get_code().get_bc() AttributeError: 'MethodAnalysis' object has no attribute 'get_code'

123zhanglei commented 2 months ago

Hello, I am facing a similar problem as you did. Could you please tell me how you solved it back then? Could you help me out? Thank you very much.