Merge pull request #795 from krnick/master

add get_android_api_usage method in Analysis class
This commit is contained in:
reox 2020-04-19 13:33:06 +02:00 committed by GitHub
commit 0671e88528
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2041,6 +2041,18 @@ class Analysis:
if meth.permission_api_name in apis:
yield meth_analysis
def get_android_api_usage(self):
"""
Get all usage of the Android APIs inside the Analysis.
:return: yields :class:`MethodAnalysis` objects for all Android APIs methods
"""
for cls in self.get_external_classes():
for meth_analysis in cls.get_methods():
if meth_analysis.is_android_api():
yield meth_analysis
def is_ascii_obfuscation(vm):
"""