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

Commit 308ac741 authored by Sanket Padawe's avatar Sanket Padawe Committed by android-build-merger
Browse files

Update permissions of isTTySupported as per its doc in TelecomManager. am: 45481b21

am: d96dc972

Change-Id: I9e3fc17a93f7728ae52bd73bc0a2169872bd1b73
parents f8cf4089 d96dc972
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -932,8 +932,9 @@ public class TelecomServiceImpl {
        public boolean isTtySupported(String callingPackage) {
            try {
                Log.startSession("TSI.iTS");
                if (!canReadPhoneState(callingPackage, "hasVoiceMailNumber")) {
                    return false;
                if (!canReadPhoneState(callingPackage, "isTtySupported")) {
                    throw new SecurityException("Only default dialer or an app with" +
                            "READ_PRIVILEGED_PHONE_STATE or READ_PHONE_STATE can call this api");
                }

                synchronized (mLock) {