Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d06f060 authored by Mateus Azis's avatar Mateus Azis Committed by Android (Google) Code Review
Browse files

Merge "Disclose the name of the permission that fails to be granted." into main

parents e967197e c9f01224
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -1654,7 +1654,14 @@ public final class UiAutomation {
            mUiAutomationConnection.grantRuntimePermission(packageName,
                    permission, userHandle.getIdentifier());
        } catch (Exception e) {
            throw new SecurityException("Error granting runtime permission", e);
            throw new SecurityException(
                    "Error granting runtime permission "
                            + permission
                            + " to package "
                            + packageName
                            + " for user "
                            + userHandle,
                    e);
        }
    }