Skip to content

Commit

Permalink
AndroidTarget: Skip ungrantable Android permission
Browse files Browse the repository at this point in the history
Don't throw an error if attempting to grant a permission that
is not manageable.
  • Loading branch information
marcbonnici committed Jan 9, 2024
1 parent 9f71c81 commit b8bf2ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions devlib/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -2110,6 +2110,8 @@ async def grant_package_permission(self, package, permission):
pass # Ignore if not requested
elif 'Operation not allowed' in e.message:
pass # Ignore if not allowed
elif 'is managed by role' in e.message:
pass # Ignore if cannot be granted
else:
raise

Expand Down

0 comments on commit b8bf2ab

Please sign in to comment.