{"action":"closed","issue":{"url":"https://api.github.com/repos/androguard/androguard/issues/114","labels_url":"https://api.github.com/repos/androguard/androguard/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/androguard/androguard/issues/114/comments","events_url":"https://api.github.com/repos/androguard/androguard/issues/114/events","html_url":"https://github.com/androguard/androguard/issues/114","id":94773620,"number":114,"title":"AnalyzeAPK Fails with \"AttributeError: 'dict' object has no attribute 'AOSP_PERMISSIONS'\"","user":{"login":"ptroxell","id":4895884,"avatar_url":"https://avatars.githubusercontent.com/u/4895884?v=3","gravatar_id":"","url":"https://api.github.com/users/ptroxell","html_url":"https://github.com/ptroxell","followers_url":"https://api.github.com/users/ptroxell/followers","following_url":"https://api.github.com/users/ptroxell/following{/other_user}","gists_url":"https://api.github.com/users/ptroxell/gists{/gist_id}","starred_url":"https://api.github.com/users/ptroxell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptroxell/subscriptions","organizations_url":"https://api.github.com/users/ptroxell/orgs","repos_url":"https://api.github.com/users/ptroxell/repos","events_url":"https://api.github.com/users/ptroxell/events{/privacy}","received_events_url":"https://api.github.com/users/ptroxell/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-13T17:45:26Z","updated_at":"2015-07-17T08:17:12Z","closed_at":"2015-07-17T08:17:12Z","body":"Trying to analyze an app as follows:\r\n\r\n> androlyze.py -s\r\nAndrolyze version 3.0\r\nIn [1]: a,d,dx = AnalyzeAPK(\"../com.whatsapp.apk\")\r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\n/Library/Python/2.7/site-packages/androguard-3.0-py2.7.egg/EGG-INFO/scripts/androlyze.py in <module>()\r\n----> 1 a,d,dx = AnalyzeAPK(\"../com.whatsapp.apk\")\r\n\r\n/Library/Python/2.7/site-packages/androguard-3.0-py2.7.egg/androguard/misc.pyc in AnalyzeAPK(filename, raw, decompiler)\r\n     55     androconf.debug(\"APK ...\")\r\n     56     a = APK(filename, raw)\r\n---> 57     d, dx = AnalyzeDex(a.get_dex(), raw=True, decompiler=decompiler)\r\n     58     return a, d, dx\r\n     59 \r\n\r\n/Library/Python/2.7/site-packages/androguard-3.0-py2.7.egg/androguard/misc.pyc in AnalyzeDex(filename, raw, decompiler)\r\n     84 \r\n     85     androconf.debug(\"GVMAnalysis ...\")\r\n---> 86     gx = GVMAnalysis(dx, None)\r\n     87 \r\n     88     d.set_vmanalysis(dx)\r\n\r\n/Library/Python/2.7/site-packages/androguard-3.0-py2.7.egg/androguard/core/analysis/ganalysis.pyc in __init__(self, vmx, apk)\r\n   3206         #                                            j.get_class_name(), j.get_name(), j.get_descriptor())\r\n   3207 \r\n-> 3208         list_permissions = self.vmx.get_permissions([])\r\n   3209         for x in list_permissions:\r\n   3210             for j in list_permissions[x]:\r\n\r\n/Library/Python/2.7/site-packages/androguard-3.0-py2.7.egg/androguard/core/analysis/analysis.pyc in get_permissions(self, permissions_needed)\r\n   1967         permissions = {}\r\n   1968 \r\n-> 1969         permissions.update( self.get_tainted_packages().get_permissions( permissions_needed ) )\r\n   1970         permissions.update( self.get_tainted_variables().get_permissions( permissions_needed ) )\r\n   1971 \r\n\r\n/Library/Python/2.7/site-packages/androguard-3.0-py2.7.egg/androguard/core/analysis/analysis.pyc in get_permissions(self, permissions_needed)\r\n   1174         pn = set(permissions_needed)\r\n   1175         if permissions_needed == []:\r\n-> 1176             pn = set(self.AOSP_PERMISSIONS_MODULE.AOSP_PERMISSIONS.keys())\r\n   1177 \r\n   1178         classes = self.__vm.get_classes_names()\r\n\r\nAttributeError: 'dict' object has no attribute 'AOSP_PERMISSIONS'\r\n\r\nIn [2]: \r\n\r\n\r\nTried other APKs with same result. Thoughts?"}}