+
Skip to content

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

@JoeyRedfield

Description

@JoeyRedfield

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载