title: How to "control" a call in android?
body: <p>im developing an app where one should be able to call and "reject" a call from the desktop using a small socket program to communicate with the phone over USB.</p>
  
  <p>I got most of it in place, I can call a number from my desktop application, however, when a call is being made it is not under control of the application.</p>
  
  <p>I run a service which starts a server socket thread, and then I bind the local listen port to my computer with <code>adb forward tcp</code>. When I send a <code>CALL:123123</code> it will start a new call intent that calls the number "123123".</p>
  
  <p>How would I go about making a call and then at some point ending it again?</p>