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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user