summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorJay Shrauner <shrauner@google.com>2015-07-01 09:20:42 -0700
committerJay Shrauner <shrauner@google.com>2015-07-01 10:07:17 -0700
commit6ce5d68a58f10a3eb0caa64a1c37b09ba012e6b6 (patch)
tree42dbfe2296d0551fdd00018599620ffc826b8e52 /telephony
parentc58d1695307923c8074f5803a0e01cda1869d231 (diff)
downloadframeworks_base-6ce5d68a58f10a3eb0caa64a1c37b09ba012e6b6.zip
frameworks_base-6ce5d68a58f10a3eb0caa64a1c37b09ba012e6b6.tar.gz
frameworks_base-6ce5d68a58f10a3eb0caa64a1c37b09ba012e6b6.tar.bz2
Catch SecurityExceptions
Bug:22208649 Change-Id: I608be28095a2d7ee0e3dd739ed899eaae55e700e
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index ab2a98d..671f42a 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -4157,6 +4157,8 @@ public class TelephonyManager {
}
} catch (RemoteException e) {
Log.e(TAG, "Error calling ITelephony#canChangeDtmfToneLength", e);
+ } catch (SecurityException e) {
+ Log.w(TAG, "Permission error calling ITelephony#canChangeDtmfToneLength", e);
}
return false;
}