Index: build/android/devil/android/apk_helper.py |
diff --git a/build/android/devil/android/apk_helper.py b/build/android/devil/android/apk_helper.py |
index 8b2d9179653bdd44f6aece6011badeed50de77bd..0159ad100c09baa2487e49ba86dd370ba001f6fc 100644 |
--- a/build/android/devil/android/apk_helper.py |
+++ b/build/android/devil/android/apk_helper.py |
@@ -111,6 +111,13 @@ class ApkHelper(object): |
return self._package_name |
raise Exception('Failed to determine package name of %s' % self._apk_path) |
+ def GetPermissions(self): |
+ manifest_info = self._GetManifest() |
+ try: |
+ return manifest_info['manifest']['uses-permission']['android:name'] |
+ except KeyError: |
+ return [] |
+ |
def GetSplitName(self): |
"""Returns the name of the split of the apk.""" |
if self._split_name: |