Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff5c6fde authored by Roshan Pius's avatar Roshan Pius Committed by Android Git Automerger
Browse files

am 2ce65bdd: am cf01fd0f: Merge "Catch & log security exception in telephonymanager" into mnc-dev

* commit '2ce65bdd':
  Catch & log security exception in telephonymanager
parents 67091577 2ce65bdd
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line Diff line number Diff line
@@ -4230,7 +4230,7 @@ public class TelephonyManager {
        } catch (RemoteException e) {
        } catch (RemoteException e) {
            Log.e(TAG, "Error calling ITelephony#canChangeDtmfToneLength", e);
            Log.e(TAG, "Error calling ITelephony#canChangeDtmfToneLength", e);
        } catch (SecurityException e) {
        } catch (SecurityException e) {
            Log.w(TAG, "Permission error calling ITelephony#canChangeDtmfToneLength", e);
            Log.e(TAG, "Permission error calling ITelephony#canChangeDtmfToneLength", e);
        }
        }
        return false;
        return false;
    }
    }
@@ -4248,6 +4248,8 @@ public class TelephonyManager {
            }
            }
        } catch (RemoteException e) {
        } catch (RemoteException e) {
            Log.e(TAG, "Error calling ITelephony#isWorldPhone", e);
            Log.e(TAG, "Error calling ITelephony#isWorldPhone", e);
        } catch (SecurityException e) {
            Log.e(TAG, "Permission error calling ITelephony#isWorldPhone", e);
        }
        }
        return false;
        return false;
    }
    }
@@ -4265,6 +4267,8 @@ public class TelephonyManager {
            }
            }
        } catch (RemoteException e) {
        } catch (RemoteException e) {
            Log.e(TAG, "Error calling ITelephony#isTtyModeSupported", e);
            Log.e(TAG, "Error calling ITelephony#isTtyModeSupported", e);
        } catch (SecurityException e) {
            Log.e(TAG, "Permission error calling ITelephony#isTtyModeSupported", e);
        }
        }
        return false;
        return false;
    }
    }
@@ -4283,6 +4287,8 @@ public class TelephonyManager {
            }
            }
        } catch (RemoteException e) {
        } catch (RemoteException e) {
            Log.e(TAG, "Error calling ITelephony#isHearingAidCompatibilitySupported", e);
            Log.e(TAG, "Error calling ITelephony#isHearingAidCompatibilitySupported", e);
        } catch (SecurityException e) {
            Log.e(TAG, "Permission error calling ITelephony#isHearingAidCompatibilitySupported", e);
        }
        }
        return false;
        return false;
    }
    }