Merge "Catch exceptions thrown by TelephonyManager" into udc-dev

This commit is contained in:
Aishwarya Mallampati
2023-05-10 23:14:43 +00:00
committed by Android (Google) Code Review

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);
}