Android : Fake incoming call

on Friday, August 22, 2014


I am looking for a way how to automate incoming calls for testing with MonkeyTalk. That means I can run some external scripts. In our Continuous Integration tool I need something capable of running in the headless mode.


WHAT I TRIED



  1. DDMS

  2. Telnet

  3. ADB


DDMS from Eclipse is not the way to go as it supports only GUI.


Telnet seemed like a good choice but it's a pain in the ass to write some command line scripts for it. In Windows I didn't make it. There exists some ways in Linux though.


ADB offers only outgoing calls by using the famous



adb shell am start -a android.intent.action.CALL tel:1112223333


With ADB I also tried to invoke a broadcast with extra state ringing but NO...


QUESTION


How can I fake an incoming call to an emulator using a script? I need to set my own number, of course.


Thank you for any help and time you gonna dedicate to answer this Question!


Zat


0 comments:

Post a Comment