summaryrefslogtreecommitdiff
path: root/plugins/python/androperms/db.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/python/androperms/db.py')
-rw-r--r--plugins/python/androperms/db.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/python/androperms/db.py b/plugins/python/androperms/db.py
index 625d400..7014915 100644
--- a/plugins/python/androperms/db.py
+++ b/plugins/python/androperms/db.py
@@ -53,7 +53,7 @@ class PermsDataBase:
self._used[p] = []
- def check_call(self, addr, line):
+ def check_call(self, addr, line, reladdr):
"""Check if a call requires some rights."""
found = False
@@ -69,23 +69,23 @@ class PermsDataBase:
#if line.find(c) > -1:
if c.find(line) > -1:
- self._used[p].append([addr, c + "()"])
- #found = True
+ self._used[p].append([reladdr, c + "()", addr])
+ found = True
- if not found:
+ # if not found:
- func = line.split('.')[-1]
+ # func = line.split('.')[-1]
- for p in self._perms:
+ # for p in self._perms:
- for c in self._perms[p]:
+ # for c in self._perms[p]:
- if line.find("Wall") > -1:
- print " <> ", c, " vs ", func
+ # if c.find(func) > -1:
- if c.find(func) > -1:
- self._used[p].append([addr, line + "()"])
- break
+ # #print ">>> %s found in %s" % (func, c)
+
+ # self._used[p].append([reladdr, line + "()", addr])
+ # break
def get_used_permissions(self):