Home | History | Annotate | Download | only in privapp_permissions

Lines Matching refs:permissions

15 # See the License for the specific language governing permissions and
20 privapp_permission.py: Generates privapp-permissions.xml file for
41 BASE_XML_FNAME = "privapp-permissions-platform.xml"
44 # Parse base XML files in /etc dir, permissions listed there don't have to be re-added
49 # Extract signature|privileged permissions available in the platform
59 priv_perms = get_priv_permissions(pkg_info['permissions'], platform_priv_permissions)
60 # Compute diff against permissions defined in base file
77 <permissions>"""
80 print ' <!-- Additional permissions on top of %s -->' % BASE_XML_FNAME
81 print ' <privapp-permissions package="%s">' % package_name
84 print ' </privapp-permissions>'
87 print "</permissions>"
98 Return only permissions that are in priv_perms set
104 Extract package name and requested permissions.
118 Extract package name and requested permissions.
120 perm_dir = os.path.join(ANDROID_PRODUCT_OUT, 'system/etc/permissions')
135 Extract package name and list of requested permissions from the
138 aapt_args = ["d", "permissions", apk_path]
141 permissions = []
149 permissions.append(name)
155 return {'package_name': package_name, 'permissions' : permissions}
159 Extract list signature|privileged permissions from the dump of
203 nodes = dom.getElementsByTagName("privapp-permissions")
205 permissions = node.getElementsByTagName("permission")
210 for p in permissions: