diff options
author | Roshan Pius <rpius@google.com> | 2015-07-09 14:15:25 -0700 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2015-07-13 13:11:09 -0700 |
commit | 7e9cb0d094043bd8bdb7544c2356abd5479b7aee (patch) | |
tree | f506ccdfcdc3d7932d932dd4c78930b0134e2c16 | |
parent | 0bd08fc22ae457791d95a4d557051e6601516bd0 (diff) | |
download | frameworks_base-7e9cb0d094043bd8bdb7544c2356abd5479b7aee.zip frameworks_base-7e9cb0d094043bd8bdb7544c2356abd5479b7aee.tar.gz frameworks_base-7e9cb0d094043bd8bdb7544c2356abd5479b7aee.tar.bz2 |
Catch & log security exception in telephonymanager
BUG: 22225068
Change-Id: I9b0053cf1041c81f409ace556b810ef79de88599
-rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 89e9d2e..0bb04f8 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -4230,7 +4230,7 @@ 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); + Log.e(TAG, "Permission error calling ITelephony#canChangeDtmfToneLength", e); } return false; } @@ -4248,6 +4248,8 @@ public class TelephonyManager { } } catch (RemoteException e) { Log.e(TAG, "Error calling ITelephony#isWorldPhone", e); + } catch (SecurityException e) { + Log.e(TAG, "Permission error calling ITelephony#isWorldPhone", e); } return false; } @@ -4265,6 +4267,8 @@ public class TelephonyManager { } } catch (RemoteException e) { Log.e(TAG, "Error calling ITelephony#isTtyModeSupported", e); + } catch (SecurityException e) { + Log.e(TAG, "Permission error calling ITelephony#isTtyModeSupported", e); } return false; } @@ -4283,6 +4287,8 @@ public class TelephonyManager { } } catch (RemoteException e) { Log.e(TAG, "Error calling ITelephony#isHearingAidCompatibilitySupported", e); + } catch (SecurityException e) { + Log.e(TAG, "Permission error calling ITelephony#isHearingAidCompatibilitySupported", e); } return false; } |