question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I got error when I analysis apk ('list' object has no attribute 'get_methods')

See original GitHub issue

Hello, I have I have tried to analysis an app that I download it from the google store. I test them as follow:

$./androlyze.py -s
$ a,d,dx = AnalyzeAPK("/Volumes/BOOTCAMP/26-2-2018/Device_ID_Without_Permi
   ...: stion/Log_API_log/base2.apk")

The problem is when I execute the next command is “d.get_methods()” I got an error:

In [2]: d.get_methods()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/Users/khalidalkhattabi/Downloads/androguard-master/androlyze.py in <module>()
----> 1 d.get_methods()

AttributeError: 'list' object has no attribute 'get_methods'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
reoxcommented, Mar 16, 2018

d is now a list of dex files. So either do something like

for dex in d:
    print(d.get_methods())

or use the method get_methods() on the dx object.

0reactions
reoxcommented, Mar 16, 2018

you’re welcome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

'list' object has no attribute 'get' - python - Stack Overflow
A view needs to return a HttpResponse. from django.http import HttpResponse def my_view(request): return HttpResponse('hello').
Read more >
AttributeError: 'list' object has no attribute 'get' - Odoo
When the list is empty, there is no error. When there is non-empty lot then I am getting the eror. Ineed some assistance....
Read more >
Restrictions on non-SDK interfaces - Android Developers
Starting with Android 9 (API level 28), each API level has non-SDK interfaces that are restricted when an app targets that API level....
Read more >
SWIG-3.0 Documentation
If you have PCRE headers and libraries but not pcre-config itself or, ... What this error means is that the extension module created...
Read more >
Python get methods - ProgramCreek.com
def get_instance_public_methods(instance): """Retrieves an objects public methods :param instance: The instance of the class to inspect :rtype: dict ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found