Friday, February 15, 2013

Dial/Accept phone call using command line in Android

  • To dial phone number using service call
  • adb shell service call phone 2 s16 "+123456789"

  • To dial call using activity manager
  • adb shell am start -a android.intent.action.CALL -d tel:123456789

  • To accept incomming call
  • adb shell input keyevent 5
  • To disconnect call
  • adb shell input keyevent 6
  • 1 comment: