1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

AndroidTarget: Skip ungrantable Android permission

Don't throw an error if attempting to grant a permission that
is not manageable.
This commit is contained in:
Marc Bonnici 2023-09-06 16:10:41 -05:00
parent 9f71c818c4
commit b8bf2abf3b

View File

@ -2110,6 +2110,8 @@ class AndroidTarget(Target):
pass # Ignore if not requested pass # Ignore if not requested
elif 'Operation not allowed' in e.message: elif 'Operation not allowed' in e.message:
pass # Ignore if not allowed pass # Ignore if not allowed
elif 'is managed by role' in e.message:
pass # Ignore if cannot be granted
else: else:
raise raise