summaryrefslogtreecommitdiff
path: root/plugins/python/androperms
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/python/androperms')
-rw-r--r--plugins/python/androperms/Makefile.am2
-rw-r--r--plugins/python/androperms/android.pngbin0 -> 1102 bytes
-rw-r--r--plugins/python/androperms/androperms.py14
-rw-r--r--plugins/python/androperms/panel.py12
-rw-r--r--plugins/python/androperms/routine.pngbin0 -> 568 bytes
5 files changed, 23 insertions, 5 deletions
diff --git a/plugins/python/androperms/Makefile.am b/plugins/python/androperms/Makefile.am
index f44be3c..c9c8430 100644
--- a/plugins/python/androperms/Makefile.am
+++ b/plugins/python/androperms/Makefile.am
@@ -3,6 +3,7 @@ andropermsdir = $(datadir)/openida/plugins/python/androperms
androperms_DATA = \
__init__.py \
+ android.png \
androperms.db \
androperms.py \
defs.py \
@@ -10,6 +11,7 @@ androperms_DATA = \
panel.py \
parser.py \
reader.py \
+ routine.png \
stack.py \
string.py
diff --git a/plugins/python/androperms/android.png b/plugins/python/androperms/android.png
new file mode 100644
index 0000000..ce9c905
--- /dev/null
+++ b/plugins/python/androperms/android.png
Binary files differ
diff --git a/plugins/python/androperms/androperms.py b/plugins/python/androperms/androperms.py
index c9af7c4..a11c37d 100644
--- a/plugins/python/androperms/androperms.py
+++ b/plugins/python/androperms/androperms.py
@@ -96,18 +96,26 @@ class AndroPerms(Plugin):
locations = gtk.TreeViewColumn()
self._tree.append_column(locations)
+ cell = gtk.CellRendererPixbuf()
+ locations.pack_start(cell, False)
+ locations.add_attribute(cell, 'pixbuf', 0)
+
cell = gtk.CellRendererText()
locations.pack_start(cell, False)
- locations.add_attribute(cell, "text", 0)
+ locations.add_attribute(cell, 'text', 1)
functions = gtk.TreeViewColumn()
self._tree.append_column(functions)
+ cell = gtk.CellRendererPixbuf()
+ functions.pack_start(cell, False)
+ functions.add_attribute(cell, 'pixbuf', 2)
+
cell = gtk.CellRendererText()
functions.pack_start(cell, True)
- functions.add_attribute(cell, "text", 1)
+ functions.add_attribute(cell, 'text', 3)
- self._store = gtk.TreeStore(str, str)
+ self._store = gtk.TreeStore(gtk.gdk.Pixbuf, str, gtk.gdk.Pixbuf, str)
self._tree.set_model(self._store)
pi = PanelItem(name="Permissions", lname="Permissions", widget=self._scrolled_window, path="SE")
diff --git a/plugins/python/androperms/panel.py b/plugins/python/androperms/panel.py
index ca7bb90..ecbd762 100644
--- a/plugins/python/androperms/panel.py
+++ b/plugins/python/androperms/panel.py
@@ -3,6 +3,8 @@
import os
+import gtk
+
class PermsPanel:
"""Display all permissions found in the Manifest."""
@@ -71,7 +73,13 @@ class PermsPanel:
if len(self._used[p]) > 0:
- it = store.append(None, [p, None])
+ img = os.path.dirname(os.path.abspath(__file__)) + '/android.png'
+ buf = gtk.gdk.pixbuf_new_from_file(img)
+
+ it = store.append(None, [buf, p, None, None])
+
+ img = os.path.dirname(os.path.abspath(__file__)) + '/routine.png'
+ buf = gtk.gdk.pixbuf_new_from_file(img)
for f in self._used[p]:
- store.append(it, ["0x%08x" % f[0], f[1]])
+ store.append(it, [None, "0x%08x" % f[0], buf, f[1]])
diff --git a/plugins/python/androperms/routine.png b/plugins/python/androperms/routine.png
new file mode 100644
index 0000000..2ddc67a
--- /dev/null
+++ b/plugins/python/androperms/routine.png
Binary files differ