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
This commit is contained in:
Aishwarya Mallampati
2023-05-09 17:37:22 +00:00
parent b7a3e01bdf
commit ef9de7907c

View File

@@ -862,9 +862,12 @@ public final class TelephonyPermissions {
+ " destAddr is emergency number");
return true;
}
} finally {
} 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);
}