From b8bf2abf3b384e2e8754a82730154df7448f9eb0 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Wed, 6 Sep 2023 16:10:41 -0500 Subject: [PATCH] AndroidTarget: Skip ungrantable Android permission Don't throw an error if attempting to grant a permission that is not manageable. --- devlib/target.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devlib/target.py b/devlib/target.py index ae2d559..1d56b0e 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -2110,6 +2110,8 @@ class AndroidTarget(Target): 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