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

Commit ef9de790 authored by Aishwarya Mallampati's avatar Aishwarya Mallampati
Browse files

Catch exceptions thrown by TelephonyManager

Bug: 281623169
Test: atest CtsTelephonyTestCases
      Basic sanity,
      Flashed device on raven-userdebug: calls/sms/mms are working
Change-Id: I19561200b98fa1a087c1083f2f603b47aca7b0e0
parent b7a3e01b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -862,9 +862,12 @@ public final class TelephonyPermissions {
                        + " destAddr is emergency number");
                return true;
            }
        } catch(Exception e) {
            Log.e(LOG_TAG, "Cannot verify if destAddr is an emergency number: " + e);
        } finally {
            Binder.restoreCallingIdentity(token);
        }

        return checkSubscriptionAssociatedWithUser(context, subId, callerUserHandle);
    }