I can intercept incoming and outgoing calls. My problem is that it does not work in version 2.3.x
here my code:
public class PhoneCallReceiver extend
MODIFY_PHONE_STATE permission is reserved for system use only, And ITelephony.silenceRinger() need MODIFY_PHONE_STATE permission. Use AudioManager if need to silent your phone at the time of call. But EndCall() will work fine.
MODIFY_PHONE_STATE
ITelephony.silenceRinger()
EndCall(