Loading src/com/android/server/telecom/TelecomServiceImpl.java +12 −2 Original line number Diff line number Diff line Loading @@ -399,7 +399,12 @@ public class TelecomServiceImpl { enforceRegisterMultiUser(); } enforceUserHandleMatchesCaller(account.getAccountHandle()); final long token = Binder.clearCallingIdentity(); try { mPhoneAccountRegistrar.registerPhoneAccount(account); } finally { Binder.restoreCallingIdentity(token); } } catch (Exception e) { Log.e(this, e, "registerPhoneAccount %s", account); throw e; Loading @@ -418,7 +423,12 @@ public class TelecomServiceImpl { enforcePhoneAccountModificationForPackage( accountHandle.getComponentName().getPackageName()); enforceUserHandleMatchesCaller(accountHandle); final long token = Binder.clearCallingIdentity(); try { mPhoneAccountRegistrar.unregisterPhoneAccount(accountHandle); } finally { Binder.restoreCallingIdentity(token); } } catch (Exception e) { Log.e(this, e, "unregisterPhoneAccount %s", accountHandle); throw e; Loading Loading
src/com/android/server/telecom/TelecomServiceImpl.java +12 −2 Original line number Diff line number Diff line Loading @@ -399,7 +399,12 @@ public class TelecomServiceImpl { enforceRegisterMultiUser(); } enforceUserHandleMatchesCaller(account.getAccountHandle()); final long token = Binder.clearCallingIdentity(); try { mPhoneAccountRegistrar.registerPhoneAccount(account); } finally { Binder.restoreCallingIdentity(token); } } catch (Exception e) { Log.e(this, e, "registerPhoneAccount %s", account); throw e; Loading @@ -418,7 +423,12 @@ public class TelecomServiceImpl { enforcePhoneAccountModificationForPackage( accountHandle.getComponentName().getPackageName()); enforceUserHandleMatchesCaller(accountHandle); final long token = Binder.clearCallingIdentity(); try { mPhoneAccountRegistrar.unregisterPhoneAccount(accountHandle); } finally { Binder.restoreCallingIdentity(token); } } catch (Exception e) { Log.e(this, e, "unregisterPhoneAccount %s", accountHandle); throw e; Loading