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

Question about dx.get_permissions(a.get_effective_target_sdk_version()) #1005

Open
JoeyRedfield opened this issue Feb 29, 2024 · 0 comments
Open

Comments

@JoeyRedfield
Copy link

Describe what you wanted to do

I read the analysis.py and run the get_permissions(self, apilevel=None) example code:

from androguard.misc import AnalyzeAPK
a, d, dx = AnalyzeAPK("test1.apk")

for meth, perm in dx.get_permissions(a.get_effective_target_sdk_version()):
    print("Using API method {} for permission {}".format(meth, perm))
    print("used in:")
    for _, m, _ in meth.get_xref_from():
        print(m.full_name)

finally the command line output this:
2024-02-29 22:26:36.718 | WARNING | androguard.core.androconf:load_api_specific_resource_module:265 - API mapping for API level 31 was not found! Returning default, which is API level 16

Describe what you expected

How to fix this WARNING?

System Information

  • Androguard Version: v4.1.0
  • Python Version: 3.11.7
  • Operating System: Windows 11
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

1 participant