Loading src/com/android/server/telecom/InCallController.java +6 −1 Original line number Diff line number Diff line Loading @@ -1288,7 +1288,12 @@ public class InCallController extends CallsManagerListenerBase { * Unbinds an existing bound connection to the in-call app. */ private void unbindFromServices() { try { mContext.unregisterReceiver(mPackageChangedReceiver); } catch (IllegalArgumentException e) { // Ignore this -- we may or may not have registered it, but when we bind, we want to // unregister no matter what. } if (mInCallServiceConnection != null) { mInCallServiceConnection.disconnect(); mInCallServiceConnection = null; Loading src/com/android/server/telecom/TelecomServiceImpl.java +23 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ import android.os.Build; import android.os.Bundle; import android.os.Process; import android.os.UserHandle; import android.provider.BlockedNumberContract; import android.provider.Settings; import android.telecom.Log; import android.telecom.PhoneAccount; Loading Loading @@ -1508,6 +1509,28 @@ public class TelecomServiceImpl { } } @Override public void stopBlockSuppression() { try { Log.startSession("TSI.sBS"); enforceModifyPermission(); if (Binder.getCallingUid() != Process.SHELL_UID && Binder.getCallingUid() != Process.ROOT_UID) { throw new SecurityException("Shell-only API."); } synchronized (mLock) { long token = Binder.clearCallingIdentity(); try { BlockedNumberContract.SystemContract.endBlockSuppression(mContext); } finally { Binder.restoreCallingIdentity(token); } } } finally { Log.endSession(); } } @Override public TelecomAnalytics dumpCallAnalytics() { try { Loading Loading
src/com/android/server/telecom/InCallController.java +6 −1 Original line number Diff line number Diff line Loading @@ -1288,7 +1288,12 @@ public class InCallController extends CallsManagerListenerBase { * Unbinds an existing bound connection to the in-call app. */ private void unbindFromServices() { try { mContext.unregisterReceiver(mPackageChangedReceiver); } catch (IllegalArgumentException e) { // Ignore this -- we may or may not have registered it, but when we bind, we want to // unregister no matter what. } if (mInCallServiceConnection != null) { mInCallServiceConnection.disconnect(); mInCallServiceConnection = null; Loading
src/com/android/server/telecom/TelecomServiceImpl.java +23 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ import android.os.Build; import android.os.Bundle; import android.os.Process; import android.os.UserHandle; import android.provider.BlockedNumberContract; import android.provider.Settings; import android.telecom.Log; import android.telecom.PhoneAccount; Loading Loading @@ -1508,6 +1509,28 @@ public class TelecomServiceImpl { } } @Override public void stopBlockSuppression() { try { Log.startSession("TSI.sBS"); enforceModifyPermission(); if (Binder.getCallingUid() != Process.SHELL_UID && Binder.getCallingUid() != Process.ROOT_UID) { throw new SecurityException("Shell-only API."); } synchronized (mLock) { long token = Binder.clearCallingIdentity(); try { BlockedNumberContract.SystemContract.endBlockSuppression(mContext); } finally { Binder.restoreCallingIdentity(token); } } } finally { Log.endSession(); } } @Override public TelecomAnalytics dumpCallAnalytics() { try { Loading