Merge "Catch exceptions thrown by TelephonyManager" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3691b22d66
@@ -862,9 +862,12 @@ public final class TelephonyPermissions {
|
|||||||
+ " destAddr is emergency number");
|
+ " destAddr is emergency number");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} finally {
|
} catch(Exception e) {
|
||||||
|
Log.e(LOG_TAG, "Cannot verify if destAddr is an emergency number: " + e);
|
||||||
|
} finally {
|
||||||
Binder.restoreCallingIdentity(token);
|
Binder.restoreCallingIdentity(token);
|
||||||
}
|
}
|
||||||
|
|
||||||
return checkSubscriptionAssociatedWithUser(context, subId, callerUserHandle);
|
return checkSubscriptionAssociatedWithUser(context, subId, callerUserHandle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user