Run autopep8 on verify-permissions.py
This commit is contained in:
@@ -47,7 +47,8 @@ for perm in root.findall('permission'):
|
|||||||
# Get name of permission
|
# Get name of permission
|
||||||
name = perm.get('{}name'.format(ANDROID_XML_NS))
|
name = perm.get('{}name'.format(ANDROID_XML_NS))
|
||||||
# Get the protection levels on the permission
|
# Get the protection levels on the permission
|
||||||
levels = set(perm.get('{}protectionLevel'.format(ANDROID_XML_NS)).split('|'))
|
levels = set(
|
||||||
|
perm.get('{}protectionLevel'.format(ANDROID_XML_NS)).split('|'))
|
||||||
# Check if the protections include signature and privileged
|
# Check if the protections include signature and privileged
|
||||||
levels_masked = levels & privileged_permission_mask
|
levels_masked = levels & privileged_permission_mask
|
||||||
if len(levels_masked) == len(privileged_permission_mask):
|
if len(levels_masked) == len(privileged_permission_mask):
|
||||||
|
Reference in New Issue
Block a user