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

Commit 8e91f3c2 authored by Amit Mahajan's avatar Amit Mahajan Committed by Android Git Automerger
Browse files

am 9f91c905: am 306c6bea: am 86b8e33e: Add OrSelf to privileged permission check.

* commit '9f91c905':
  Add OrSelf to privileged permission check.
parents 9ce0f3c5 9f91c905
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1124,8 +1124,9 @@ public class TelecomServiceImpl {
        }

        try {
            mContext.enforceCallingPermission(READ_PRIVILEGED_PHONE_STATE, message);
            // SKIP checking run-time OP_READ_PHONE_STATE since using PRIVILEGED
            mContext.enforceCallingOrSelfPermission(READ_PRIVILEGED_PHONE_STATE, message);
            // SKIP checking run-time OP_READ_PHONE_STATE since caller or self has PRIVILEGED
            // permission
            return true;
        } catch (SecurityException e) {
            // Accessing phone state is gated by a special permission.