Loading src/com/android/server/telecom/TelecomServiceImpl.java +3 −2 Original line number Diff line number Diff line Loading @@ -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) { Loading Loading
src/com/android/server/telecom/TelecomServiceImpl.java +3 −2 Original line number Diff line number Diff line Loading @@ -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) { Loading