Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sivaK003 opened this issue Oct 22, 2021 · 2 comments
Open

Comments

@sivaK003
Copy link

[+] 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
Copy link

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.

@movementx
Copy link

I am also getting this same AttributeError, and the report is not being generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants